Skip to main content

2. SMS Balance Update to Customer

This job was provided by an OpenFn.org user via the job library API.

Metadata

  • Name: 2. SMS Balance Update to Customer
  • Adaptor: @openfn/language-telerivet
  • Adaptor Version: latest
  • Created over 6 years ago
  • Updated about 2 years ago
  • Score: 3 (an indicator of how useful this job may be)

Key Functions

dataValue, field, fields, send

Expression

send(
fields(
field('to_number',
dataValue('Envelope.Body.notification.Phone_Number__c')
),
field('message_type', 'sms'),
field('route_id', 'PN5d224d8136086997'),
field('content',
'Payment successful! Your updated contract balance is '
+ state.data.Envelope.Body.notification.AmountDue__c
)
)
);