The unique ID of the patient's SMS message in the external SMS delivery service.
object.ExternalKey
| Part | Attribute | Type | Description |
|---|---|---|---|
object |
Required | The object always implements the
ISPatientSMS interface |
string
Send a new SMS message, display its text and external key.
Dim aPatient
Dim aPhoneNumber
Dim aPatientSms
Dim aMessage
Set aPatient = Profile.SelectPatient
aPhoneNumber = aPatient.CellPhone
set aPatientSms = Profile.SendPatientSMS(aPatient.ID, aPhoneNumber, "Hello!")
if aPatientSms.DeliveryResult = 0 then 'ssdrSent
aMessage = "Text: " & aPatientSms.Text & " (external key: " &_
aPatientSms.ExternalKey & ")"
else
aMessage = "Text: " & aPatientSms.Text & " (" & aPatientSms.ErrorMessage & ")"
end if
Profile.MsgBox(aMessage) In Profile Client v8 on User Interface External Key cannot be found.