Dear Team,
I have a requirement where I need to validate the input "Item Number" and "Line Amount" against the data returned by a JD Edwards API.
-
Step 1: We receive JSON files along with metadata, which includes values for "Item Number" and "Line Amount".
-
Step 2: This data is passed as multi-value input parameters to the workflow.
-
Step 3: Within the workflow, I use a “For Each Value” activity to iterate over each input "Item Number".
-
Step 4: Inside the loop, I use a Conditional Decision to compare each input "Item Number" with the "Item Numbers" returned in the JDE API response.
ForEachValue_CurrentValue = API Receipt LineItemNumber
Note: The token ForEachValue_CurrentValue holds the current input "Item Number" from the loop.
However, I'm unsure how to iterate over the API response "Line Item Numbers" to perform this comparison correctly.
Questions
-
Is the current condition valid for checking each input "Item Number" against all "Item Numbers" in the JDE API response?
-
How can we iterate over the JDE API response values, so that each input value can be compared one-by-one with the response values (i.e., each "Item Number" and "Line Amount")?