Cyber Monday 2024! 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:

Carol
3 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
7 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
8 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
14 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
16 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
Tawanna
4 days ago
B) customer.firstName
upvoted 0 times
...
Sanjuana
5 days ago
A) firstName
upvoted 0 times
...
...
Catarina
21 days ago
I think the correct answer is B) customer.firstName because it directly accesses the firstName of the customer.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77