QUESTION, ANSWER, EXPLANATION
This question has been asked by one of our members and a similar question could most likely be on the exam. All answers have been verified by MuleSoft certified FoMS experts.
Refer to the exhibits! What payload and quantity are logged at the end of the main flow?
A) [[1,2,3,4], 14]
B) [[order1, order2, order3, order4], 14]
C) [[1,2,3,4], 10]
D) [order1, order2]
The correct answer to this question is
By default, For Each tries to split the payload. For Each does not modify the current payload which means that the output payload is the same as the input. Unlike the payload, the variable is going to be changed in the For Each loop, which leads us to the answer A.
LATEST FORUM UPDATES