MCE-Con-201 practice question 6 of 10

A customer asks why the send time values within an email are not being added to a Send Log. Which two actions would successfully write send time variables to their Send Log? (Choose 2 answers)

Full set: 160 questions
Answer options
A: Match an AMPscript variable name to a Send Log field. Correct answer
B: Ensure the Send Log is linked in an attribute group.
C: Enable send logging to a data extension during the send process. Correct answer
D: Use the WriteToLog() AMPscript function in the content.
Correct Answer:
A. Match an AMPscript variable name to a Send Log field.; C. Enable send logging to a data extension during the send process.
Explanation

To write custom data to a Send Log during a send, two actions are essential. First, Send Logging must be explicitly enabled for the send. This is done by checking the "Enable Send Logging to a Data Extension" option in the send flow and selecting the target Send Log DE. Second, to populate custom fields, you must declare an AMPscript variable in the email's content with a name that exactly matches the field name in the Send Log data extension. Marketing Cloud automatically maps and populates these matching fields at send time.

Why Incorrect

B. Linking a Send Log in an attribute group is for data modeling and visibility in Contact Builder; it does not enable or control the data-writing process during a send.
D. The WriteToLog() function does not exist in AMPscript. Data extension write operations use functions like InsertDE() or UpsertDE(), which are not the standard method for populating a Send Log.

References

1. Salesforce Help. (2023). Send Logging. "To use send logging, create a data extension using the SendLog template. Then, in your send, select that data extension... To pass values to the send log, create attributes in the email for each field in the send log data extension you want to populate."

2. Salesforce Developer Documentation. (2023). AMPscript Language Elements. This documentation lists all available AMPscript functions; WriteToLog() is not among them.

3. Salesforce Help. (2023). Create a Send Log Data Extension. "To populate a column in your send log, ensure an attribute or variable in your send has the same name as the column in the send log data extension." This directly confirms the variable-to-field name matching mechanism.

Scroll to Top