Refer to the exhibits.

The Set Payload transformer In the addltem subflow uses DataWeave to create an order object.
What is the correct DataWeave code for the Set Payload transformer in the createOrder flow to use the addltem subflow to add a router cable with the price of 100 to the order?
Suggested Answer: B
Get Premium Salesforce Certified MuleSoft Developer (Mule-Dev-201) Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
13 comments · newest first
LA
Laticia
11 months ago
Wait, are we sure about the price format? Seems odd.
MO
Mona
11 months ago
Definitely leaning towards B. Looks cleaner.
LO
Lottie
11 months ago
D? Really? That doesn't look right to me.
FR
Freeman
11 months ago
C seems off, missing the function call format.
BE
Bev
11 months ago
I think option A is the right one!
BE
Becky
12 months ago
I’m leaning towards option D because it seems to match the pattern we discussed in class about using lookups for subflows.
SU
Suzan
12 months ago
I’m confused about the syntax here. I thought we just needed to pass the payload directly, so maybe option C?
YU
Yun
1 year ago
I remember practicing a similar question, and I feel like using 'lookup' might be the right approach. Could it be option B or D?
DE
Desiree
1 year ago
I think the Set Payload transformer needs to directly call the subflow, so maybe option A? But I'm not entirely sure.
FL
Florinda
1 year ago
This seems straightforward. The key is to use the addItemf function and pass in the appropriate payload object with the price, item, and itemType properties. Option A looks like the right solution to me.
IN
India
1 year ago
I'm a bit confused by the different function calls in the options. Is lookupf different from addItemf? I'll need to double-check the DataWeave documentation to make sure I understand the differences.
SA
Sarah
1 year ago
Okay, I think I've got this. The question is asking us to use the addItem subflow to add a router cable with a price of 100 to the order. Option C looks like the correct DataWeave code to do that.
DA
Daron
1 year ago
Hmm, this looks like it's testing our knowledge of DataWeave and how to call a subflow. I'll need to carefully review the options and think through the syntax.