Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Certified MuleSoft Developer (Mule-Dev-201) Exam - Topic 10 Question 34 Discussion

Posted by Layla on Aug 15, 2025 at 10:26 AM

Refer to the exhibit.

What is the correct DataWeave expression for the Set Payload transformer to call the createCustomerObject flow with values for the first and last names of a new customer?

Suggested Answer: C

lookup(String, Any, Number)

This function enables you to execute a flow within a Mule app and retrieve the resulting payload.

It works in Mule apps that are running on Mule Runtime version 4.1.4 and later.

Similar to the Flow Reference component (recommended), the lookup function enables you to execute another flow within your app and to retrieve the resulting payload. It takes the flow's name and an input payload as parameters. For example, lookup('anotherFlow', payload) executes a flow named anotherFlow.

Correct answer is

lookup( 'createCustomerObject', {first: 'Aice, last: 'Green'})

MuleSoft Documentation Reference : https://docs.mulesoft.com/mule-runtime/4.3/dw-mule-functions-lookup


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
14 comments · newest first
BA
Bambi 10 months ago
C has a typo, should be 'lookup' not 'lookupf'.
CO
Cory 11 months ago
I disagree, A seems off with that lookup.
KA
Kanisha 11 months ago
Wait, is it really that simple? I thought it would be more complex.
KI
King 11 months ago
Definitely B! The object format is spot on.
KR
Kris 11 months ago
I think the correct answer is D. Looks straightforward.
SH
Sherill 11 months ago
I’m confused about the syntax in option A; it looks off with the extra characters. I think I’ll skip that one.
CH
Chauncey 12 months ago
I practiced a similar question, and I feel like option D looks correct since it has the right syntax for calling a function with two string parameters.
AL
Almeta 12 months ago
I'm not entirely sure, but I remember something about using curly braces for objects in DataWeave. That makes me lean towards option B.
BO
Bobbye 1 year ago
I think the expression needs to use a map or object format for the parameters, so maybe B or C?
KA
Kaycee 1 year ago
Ah, I see the trick here is using the correct syntax for the createCustomerObject function call. Option B looks like the winner to me.
YU
Yuette 1 year ago
This is a good opportunity to apply what I've learned about DataWeave transformations. I'll carefully analyze each option and eliminate the incorrect ones before selecting the right answer.
GE
Gerald 1 year ago
I'm a bit confused by the different function calls in the options. I'll need to double-check the DataWeave documentation to make sure I understand the right way to pass arguments to createCustomerObject.
DO
Dorthy 1 year ago
Okay, I think I've got this. The correct expression is option B - createCustomerObject({ first: 'Alice', last: 'Green' }).
LE
Leonor 1 year ago
Hmm, this looks like a tricky DataWeave question. I'll need to carefully review the options and think through the syntax.
0/2000 characters

Save Cancel