The CreatorCon Call for Content is officially open! Get started here.

How to get the number field value and add it to the gs.getmessageLang syntax in business rule?

Divya K1
Tera Guru
Hi All,
 
I need to get the number field value and add it to the below message using business rule...please guide me
 
SNC.Notify.sendSMS('twilio number','' + current.u_contact_phone, ''+ gs.getMessageLang("dutch",'nl'),+current.number, current);
 
Eg : need to send SMS should be like this ABC : XXXXXXX reference number successfully
1 ACCEPTED SOLUTION

Thanks for your reply,

 

I have tried with the below syntax, it is working fine

 

SNC.Notify.sendSMS('+twilio number','' + current.u_mobile_phone,''+"abc "+':'+current.getValue('number')+''+ gs.getMessageLang("dutch",'nl')+ current.number,current);

View solution in original post

2 REPLIES 2

Kieran Anson
Kilo Patron
SNC.Notify.sendSMS(
	/** Phone Number */ <<twilioNumberHere>>,
	/** toPhone Number */ current.getValue('u_contact_phone'),
	/** messageBody */ gs.getMessageLang('ABC : {0} reference number successfully' , 'nl-NL' , [current.getValue('number')]),
	/** source */ current
)

assuming the "number" you're referring to is the number field on a record.

Thanks for your reply,

 

I have tried with the below syntax, it is working fine

 

SNC.Notify.sendSMS('+twilio number','' + current.u_mobile_phone,''+"abc "+':'+current.getValue('number')+''+ gs.getMessageLang("dutch",'nl')+ current.number,current);