QuestionQ81

Scripting and Automation

A developer needs to set a variable using a field from a Sendable Data Extension.

Which option can be used in an AMPscript block to set the variable to the First Name field from the Sendable Data Extension used to send the email?

  • A SET @firstName = “First Name”
  • B SET @firstName = %%First Name%%
  • C SET @firstName = AttributeValue(“First Name”)
Explanation

AttributeValue() returns the value of a named attribute using data sources related to the subscriber or contact, including fields in the sendable data extension associated with the message. Passing "First Name" retrieves that field’s value for the recipient.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!