How to build a Template for an action of sending SMS with variables

hi, i have created an action button at the end of my order cycle to send an sms(external) to the customer.

how do i pre-populate this message with certain info. like invoice no. date etcโ€ฆwhich are my column headersโ€ฆi want this to pick the data from that particular row from which i am clicking on the action button.

Can anyone help me in this regard.

Solved Solved
1 8 896
1 ACCEPTED SOLUTION

You can do that likeโ€ฆ
AND(
IN(USEREMAIL(),LIST(โ€œemail1@gmail.comโ€,โ€œemail2@gmail.comโ€)),
[status]=โ€œdispatchedโ€
)

View solution in original post

8 REPLIES 8

You can read the data from that record just with the [ColumnName] in โ€œMessageโ€ option. If you need more than just a columnโ€™s value, you can combine them like "Hi, this is the invoice date "&[InvoiceCreated]

hi,

also i am not getting multiple columns value in the message when i put info like below,

โ€œHi, your Order forโ€ &[Party] โ€œhas been dispatched vide Bill No.โ€ &[Bill No.] โ€œTruck noโ€ &[Truck No.] โ€œdriver phone noโ€ &[Driver Phone]

i am able to see the variable of only the last info. that is [drive phone], none of the other variables are automatically inserted.

can i limit an action to appear only to certain users

Your expression is missing some & characters. There should be an & between every quoted value and column reference. So this:

โ€œHi, your Order forโ€ &[Party] โ€œhas been dispatched vide Bill No.โ€ &[Bill No.] โ€œTruck noโ€ &[Truck No.] โ€œdriver phone noโ€ &[Driver Phone]

should be this:

โ€œHi, your Order forโ€ &[Party] &โ€œhas been dispatched vide Bill No.โ€ &[Bill No.] &โ€œTruck noโ€ &[Truck No.] &โ€œdriver phone noโ€ &[Driver Phone]

You could instead use CONCATENATE() to get the same result:

CONCATENATE(
  โ€œHi, your Order forโ€,
  [Party],
  โ€œhas been dispatched vide Bill No.โ€,
  [Bill No.],
  โ€œTruck noโ€,
  [Truck No.],
  โ€œdriver phone noโ€,
  [Driver Phone]
)

also can you help me how i can make this action button visible to only a select few user (s)

You can use something like IN(USEREMAIL(),LIST(โ€œemail1@gmail.comโ€,"email2@gmail.com")) with your actionโ€™s condition rule.

In action condition I already have stated it like to show when [status]=dispatched โ€ฆso how can I marry this rule with the one which u shared earlier

You can do that likeโ€ฆ
AND(
IN(USEREMAIL(),LIST(โ€œemail1@gmail.comโ€,โ€œemail2@gmail.comโ€)),
[status]=โ€œdispatchedโ€
)

Top Labels in this Space