Saltar al contenido principal
Esta página no tiene versión en español, así que te la mostramos en inglés.

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 almost 8 years ago
  • Updated over 3 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
)
)
);