MuleSoft
MCD-LEVEL-1 · Question #91
Refer to the exhibits. The Set Payload transformer in the addltem child flow uses DataWeave to create an order object. What is the correct DataWeave code for the Set Payload transformer in the…
The correct answer is C. lookup( "addltem", { payload: { price: "100", item: "router", itemType: "cable" } > ). You've hit your limit · resets 5am (America/New_York)
Transforming Data with DataWeave
Question
Refer to the exhibits. The Set Payload transformer in the addltem child flow 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 child flow to add a router call with the price of 100 to the order?
Exhibit
Options
- Alookup( "addltern", { price: "100", item: "router", itemType: "cable" } )
- Baddltem( { payload: { price: "100", item: "router", itemType: "cable" > } )
- Clookup( "addltem", { payload: { price: "100", item: "router", itemType: "cable" } > )
- Daddltem( { price: "100", item: "router", itemType: "cable" } )
How the community answered
(21 responses)- A10% (2)
- B5% (1)
- C76% (16)
- D10% (2)
Explanation
You've hit your limit · resets 5am (America/New_York)
Topics
#DataWeave#lookup function#child flow#flow reference
Community Discussion
No community discussion yet for this question.
