1

I'm trying to create a dynamic sender profile where the from name and from email change if a value is present in a specific field of the data extension. I want the Lead First Name value and Lead Last Name values to appear. I'm trying to keep all the logic in the sender profile.

%%=IIF(EMPTY(AttributeValue("X")), "Bill", AttributeValue("LeadFirstName") AttributeValue("LeadLastName"))=%%

Not sure why, but doing the test, the script shows up as the sender and isn't resolving.

5
  • The above is missing an = – EazyE Apr 21 at 12:34
  • Thank you, it works with 1 value, but I want to pull in two values. So, if field is empty, show value 1 and value 2 – Mary Apr 21 at 13:02
  • Try using concat – EazyE Apr 21 at 13:05
  • Do you know how I could concat two attributes? – Mary Apr 21 at 13:40
  • @mary - yes, using the Concat function – Lukas Lunow Apr 21 at 18:48
1

Don't know if it's a typo in your question, but you forgot "=" when opening your Ampscript:

%%=IIF(EMPTY(AttributeValue("X")), "Bill", AttributeValue("LeadFirstName"))=%%

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.