0

I am actually using Marketing Cloud MobileConnect feature in order to make personalization on SMS campaigns. And i would like to print the mobile number of my customer using AMPScript inside an SMS. Do you think that this piece of code is going to work ?

SET @mn = MOBILE_NUMBER
v(@mn)

Thank you !

1 Answer 1

1

Should be something like this:

%%[
var @mn
set @mn = AttributeValue("MOBILE_NUMBER") 
]%%
%%[ if not empty(@mn) then ]%%
  Your mobile number is: %%=v(@mn)=%%
%%[ else ]%%
  Mobile number not found.
%%[ endif ]%%

Reference

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .