Send sms from Salesforce workflow action
📜 This job is an official example from OpenFn.
Metadata​
- Name: Send sms from Salesforce workflow action
- Adaptor:
@openfn/language-telerivet
- Adaptor Version:
latest
- Created date unknown
- Updated date unknown
- Score: 100 (an indicator of how useful this job may be)
Key Functions​
dataValue
, field
, fields
, send
Expression​
send(
fields(
field(
'to_number',
dataValue(
'Envelope.Body.notifications.Notification.sObject.phone_number__c'
)
),
field('message_type', 'sms'),
field('route_id', ''),
field('content', function (state) {
return 'Hey there. Your name is '.concat(
dataValue('Envelope.Body.notifications.Notification.sObject.name__c')(
state
),
'.'
);
})
)
);