I have a scenario where I need to call an integration multiple times for an array of items.
That needs to be done in parallel as the result is then presented to the user in a form.
The problem I have is that I need to save the output of the function (the output of the api is then processed further)
in a process variable, and I am not sure how to do that. If I set a node to run multiple times with an output
variable, when all the instances end it will have saved only the result of the first instance (which is a CDT), while I would
like the output variable to contain an array with all the replies. How can this be done?
Discussion posts and replies are publicly visible
Enable MNI on the Call Integration node, point it at your input array, then in the Data tab set the custom output to your array-typed process variable and choose “Appended as” (not “Stored as”); System will automatically add each instance’s result to that variable so, when all instances finish, you have one array containing every response.
Thank you, I have never used this feature before strangely enough, I never needed it.
I would use an expression like Stefan has suggested. Much easier to debug and troubleshoot IMO.