I’m working on automating an IT ticket system, and am having trouble with passing arguments. I’ve done this multiple times, but now the arguments after this invoked workflow are returning as null, giving a null reference error when I enter the for each loop. When I debugged, the String array was set to the default value until after the Invoke Workflow activity, after which it was null.
That is the workflow file I am attempting to pass the argument (a string array) to.
In the invoked workflow. I am certain that the selector is obtaining the proper value, as I debugged and used message boxes to check my work. I’ve tried everything I can think of, renaming the variable, setting a default value, all to no avail. I am wondering if there are any solutions.
GetPOIDetails gets the POI (point of interest) from our ticketing website and passes it to the main workflow, where it overwrites the POItoSearch variable in main and prints it out. So it would still be an out argument, correct?
You have to assign the variable you store the values inside the child workflow to the argument you declared. Then it will send the value through arguments @mkdatz
I hope you are trying to assigning the value to arguments directly
Ah okay, I understand what you mean. I actually double checked this and found I did not do this originally- changed that to what you said and it worked fine. Thanks for your help!