New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Salesforce MuleSoft Developer I Topic 10 Question 21 Discussion

Actual exam question for Salesforce's Salesforce MuleSoft Developer I exam
Question #: 21
Topic #: 10
[All Salesforce MuleSoft Developer I Questions]

Refer to the exhibits.

Set paylaod transformer is set the firstName and lastName of the customer as shown in below images.

What is the correct Dataweave expression which can be added in message attribute of a Logger activity to access firstName (which in this case is Madhav) from the incoming event?

Show Suggested Answer Hide Answer
Suggested Answer: D

Correct answer is vars.'customer'.'firstName'

Please note that you can also access firstName using this syntax vars.customer.firstName.

Mule Ref Doc :Variables in Mule Apps | MuleSoft Documentation


Contribute your Thoughts:

Huey
3 days ago
B) customer.firstName is the way to go. Unless you're trying to invoke the spirit of Shakespeare with those 'vars' shenanigans.
upvoted 0 times
...
Carol
15 days ago
I'm not sure, but I think C) vars.`customer.firstName` might also work because it combines vars and customer.firstName.
upvoted 0 times
...
Glenna
18 days ago
A) firstName? Really? Who names a variable just 'firstName'? That's like naming your dog 'Dog'. C'mon, people, get creative!
upvoted 0 times
Noah
3 days ago
A) firstName? Really? Who names a variable just 'firstName'? That's like naming your dog 'Dog'. C'mon, people, get creative!
upvoted 0 times
...
...
Yolando
20 days ago
I disagree, I believe the correct answer is D) vars.`customer`.`firstName` because it uses the vars to access the customer's firstName.
upvoted 0 times
...
Paulene
25 days ago
D) vars.customer.firstName looks more elegant, but B) is the safer bet. Gotta play it safe in these exams, you know.
upvoted 0 times
...
Toshia
28 days ago
I think the correct answer is B) customer.firstName. It's a pretty straightforward data mapping, no need to overcomplicate things.
upvoted 0 times
Dominic
11 days ago
I agree, B) customer.firstName seems like the correct answer.
upvoted 0 times
...
Tawanna
15 days ago
B) customer.firstName
upvoted 0 times
...
Sanjuana
17 days ago
A) firstName
upvoted 0 times
...
...
Catarina
1 months ago
I think the correct answer is B) customer.firstName because it directly accesses the firstName of the customer.
upvoted 0 times
...

Save Cancel