Hello all, wish you all tthe best,
I am currently doing an automation were i get some info from an excel file one of which is a list, then i use a “For Each” and for The Current item i’d need to get that value into an argument to use on another workflow, to use as input information, how can I do that?
In the other workflow, setup the arguments as In Arguments like so:
In the calling Workflow, click on Import Arguments, and put the variable of the input information
Thanks!
Hi Can you verify datatype of the list you are using and also show properties of For each, in Modern activities it automatically picks up the type argument for you.
Thanks.
but the this is i’m going to invoke the workflow inside the for each and need the current item as an argument to use in that workflow
When the argument direction is “In”, you are passing the values into the workflow. You can treat this as Input value of the other workflow. Which is how I understood the initial question.
When the argument direction is “Out”, you are taking the values out from the other workflow and using it in the workflow that contains the For Each. In other words, it is the output of the process done in the invoked workflow.
Hope this clarifies
For that…use an invoke workflow file activity inside the for loop activity and in the workflow you are invoking create an argument with direction as in and then assign currentitem or item to that argument in the invoke workflow file activity
Hope this helps
Cheers
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.