Live webinar What's new in Sodium: Information Requests, plus Q&A. Thu 19 Nov, 12 noon Information Requests + Q&A, Thu 19 Nov Reserve your place

CreateTextBroadcastRequest

Request to create a draft bulk text (docs/features/BulkTextMessages/PLAN.md D2, D4, D8). The SMS text is a practice
text template or inline text, not both. The clients, and who at each is texted (at least one contact type), are
the audience request's: a saved view or an inline filter (not both), plus hand-picked additions, less exclusions.

Properties

Name Type Description
savedViewCodestring

The code of a saved client view whose filter selects which clients to include. The view's criteria are resolved
when recipients are resolved, so later changes to the view are picked up until the text is sent. Mutually
exclusive with Filter.

The code of a saved client view whose filter selects which clients to include. The view's criteria are resolved
when recipients are resolved, so later changes to the view are picked up until the text is sent. Mutually
exclusive with Filter.

filterEmailBroadcastFilterDto
excludedClientCodesarray of string

Client codes to exclude from the filter results

Client codes to exclude from the filter results

additionalClientCodesarray of string

Hand-picked client codes to add on top of the filter results

Hand-picked client codes to add on top of the filter results

recipientContactTypesarray of enum

The client contact types texted at each client, on their mobiles. A draft needs at least one; a summary with none
works out only the client and preference counts.

Main Billing Payroll Accounts Director Psc Secretary Trustee

The client contact types texted at each client, on their mobiles. A draft needs at least one; a summary with none
works out only the client and preference counts.

Main Billing Payroll Accounts Director Psc Secretary Trustee

sendOncePerNumberboolean

When true (the default), a number held by contacts at several clients is texted once, with the first client's
tokens; the other clients are skipped

When true (the default), a number held by contacts at several clients is texted once, with the first client's
tokens; the other clients are skipped

name*string

What the bulk text is called in the list, the client notes and Messages

What the bulk text is called in the list, the client notes and Messages

routingenum

SmsOnly KnownNumbers TryWhatsAppFirst

SmsOnly KnownNumbers TryWhatsAppFirst

templateCodestring

The practice text template whose body is the SMS text. Mutually exclusive with Body.

The practice text template whose body is the SMS text. Mutually exclusive with Body.

bodystring

The SMS text with Liquid tokens ({{ Client.Name }}, {{ Contact.FirstName }}, {{ Practice.Name }}, {{ Url }} …),
rendered for each client and recipient. Mutually exclusive with TemplateCode.

The SMS text with Liquid tokens ({{ Client.Name }}, {{ Contact.FirstName }}, {{ Practice.Name }}, {{ Url }} …),
rendered for each client and recipient. Mutually exclusive with TemplateCode.

whatsAppTemplateIdstring

The approved WhatsApp template sent where the routing chooses WhatsApp: required with KnownNumbers or
TryWhatsAppFirst, and must be omitted with SmsOnly. Refused when it has no approved live version.

The approved WhatsApp template sent where the routing chooses WhatsApp: required with KnownNumbers or
TryWhatsAppFirst, and must be omitted with SmsOnly. Refused when it has no approved live version.

contentVariablesobject

What fills each of the WhatsApp template's placeholders, by placeholder ("1", "2"…): a token expression such as
{{ Contact.FirstName }}, rendered per recipient. Every placeholder of the template's approved version must be
filled, and no other. Must be omitted with SmsOnly routing.

What fills each of the WhatsApp template's placeholders, by placeholder ("1", "2"…): a token expression such as
{{ Contact.FirstName }}, rendered per recipient. Every placeholder of the template's approved version must be
filled, and no other. Must be omitted with SmsOnly routing.

JSON Example

{
  "savedViewCode": "string",
  "filter": {
    "managerCodes": [
      "..."
    ],
    "partnerCodes": [
      "..."
    ],
    "associateCodes": [
      "..."
    ],
    "statuses": [
      "..."
    ],
    "types": [
      "..."
    ]
  },
  "excludedClientCodes": [
    "string"
  ],
  "additionalClientCodes": [
    "string"
  ],
  "recipientContactTypes": [
    "Main"
  ],
  "name": "string"
}

Used By Operations