...
Case Property | Required | Description |
---|---|---|
contact_phone_number | Required for one-way SMS | This is the phone number to send messages to. It should be in international e.164 format, which generally means it should have the country code first (e.g., 1 for the USA or 91 for India) and then the rest of the phone number. Depending on the country, you may need to remove the leading zero from the national number before prepending the country code. It should not have any spaces, dashes or other punctuation. For example, both "15551234567" and "919812345678" are valid values. |
name | Required for SMS survey | This is the name of the case, excluding it when setting up a case may cause errors when sending an SMS to a case. |
commcare_email_address | Required for email | Set this to the contact's email address to send email content to them. |
time_zone | Optional | This specifies the time zone of the contact. If messages are sent to this case at a specific time, this time zone will be used to interpret those times. Otherwise, the project's time zone will be used. For example, to set US East Coast Time as the time zone, this should be set to "America/New_York". A full list of available time zones can be found by going to Project Settings and viewing the list available for "Default Timezone". |
language_code | Optional | If you translate the messages in your alerts, you can set the contact's preferred language here. This value should match the language codes that you define on the SMS Languages page. |
contact_backend_id | Optional | If you want to use a specific gateway for this contact and override any default gateway choosing behavior that the system would otherwise do, you can specify the name of that gateway here. |
Opt-Out Keywords
All end users are able to opt-out of messaging by replying "STOP" to any CommCare messaging. This cannot be modified or disabled.
Errors
If you happen to run into errors during the registration and testing of SMS messages, you can review our error message descriptions here.