Which keyword do you use to create a new function in DataWeave?
Which keyword do you use to create a new function in DataWeave?
A . function
B . fun
C . func
D . map
Answer: B
Explanation:
You can define your own DataWeave functions using the fun declaration in the header of a DataWeave script. Sample is as below. —————————————- %dw 2.0 output application/json
fun toUpper(aString) = upper(aString)
—
toUpper("hello")
MuleSoft Doc Ref: https://docs.mulesoft.com/mule-runtime/4.1/dataweave-functions
Latest MCPA-Level 1 exam Dumps Valid Version with 58 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments