MCD - Level 1 Exam QuestionsBrowse all questions from this exam

MCD - Level 1 Exam - Question 139


Refer to the exhibits. The Set Variable transformer is set with value #[{ first: “Max”, last “Mule” }].

What is a valid DateWeave expression to set as the message attribute of the Logger to access the value “Max” from the Mule event?

Show Answer
Correct Answer: A

The correct DateWeave expression to set as the message attribute of the Logger to access the value “Max” from the Mule event is vars.”customer”.“first”. This is because 'vars' is used to access variables within MuleSoft, and 'customer' is the variable name. The attribute 'first' is then accessed from the 'customer' variable. Thus, the correct and valid expression is vars.”customer”.“first”.

Discussion

1 comment
Sign in to comment
AlandtOption: A
Feb 5, 2024

ChatGPT: A. vars."customer"."first"