Skip to main content

Send sms from Salesforce workflow action

📜 This job is an official example from OpenFn.

Metadata​

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
),
'.'
);
})
)
);