Hi all,
I have a process model with a process variable which is an array of documents called "pv!docsToUpload"
I [also] have an integration which does a web-api call to an external system which allows me to send those document[s] to the other system.
What I want to do is find a way to loop through the documents in my array of documents and send each document in turn to the integration node in my process model.
Does anyone have any suggestions as to how one goes about doing that in Appian process models?
thanks,
David.
Discussion posts and replies are publicly visible
Is it possible to send all the document in a single integration call (in other words, can the API you are calling accept multiple documents at once)? If yes, this might be the best method to send documents.
If not, another way to do this is to use Multiple Node Instances (MNI). This allows to execute a node (in this case your integration) multiple times. Please see here for more information: https://docs.appian.com/suite/help/latest/Process_Model_Recipes.html#using-multiple-node-instances-in-your-process-flows
There are some limitations with MNI (for example, you can only execute the node 1000 times and a large number of executions can be slow), but this might work for your use case.