Concat dynamic value and static text on the FromEmail sender profile

268 views Asked by At

Let's say I would like to setup the FromEmailAddress of the sender profile with both dynamic value and static text. The FromEmailAddress would contain two parts : the account name which is dynamic and a static text '@email-3Dagency.com'. Here is an example of the output I would like for the Account named 'Digital Print' : [email protected]

The value of the field 'Account name' is filled by Salesforce Data when the journey runs. Indeed, account name is a data entry for the journey and the value comes from Salescloud. The account name is always filled in SF.

I had tried to create this Ampscript code in the from email field in the sender profile but the email is not sent when I run the journey: %%[ set @fromemail = CONCAT(@accountname, "@email-3Dagency.com") set @accountname = AttributeValue("Account:Name") endif ]%% %%=v(@fromemail)=%%

Do you know how I can resolve the issue and if the code above is accurate ?

0

There are 0 answers