nerdexam
MuleSoft

MCD-LEVEL-1 · Question #74

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…

The correct answer is B. lookupf "addltem", { payload: { price: "100", item: "router", itemType: "cable" } } ). You've hit your limit · resets 5am (America/New_York)

Building Integration Applications

Question

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?

Exhibit

MCD-LEVEL-1 question #74 exhibit

Options

  • Aaddltemf { payload: { price: "100", item: "router", itemType: "cable" } > )
  • Blookupf "addltem", { payload: { price: "100", item: "router", itemType: "cable" } } )
  • Caddltemf { price: "100", item: "router", itemType: "cable" })
  • Dlookupf "addltem", { price: "100", item: "router", itemType: "cable" } )

How the community answered

(15 responses)
  • A
    20% (3)
  • B
    60% (9)
  • C
    7% (1)
  • D
    13% (2)

Explanation

You've hit your limit · resets 5am (America/New_York)

Topics

#lookup function#subflow#DataWeave#flow invocation

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice