I have a for each data table and within it an invoke workflow, is it possible for me to create variables within the invoke workflow referring to the table that is outside?
The variables that are inside the invoke workflow are receiving the following error: CurrentRow was not declared.
I canât create an argument in the workflow referring to the table, I try to create a variable of type datatable (in/out), but it deletes it by itself, as if it were not possible to do that.
I create in this BX.xaml flow the currentrow variable as you told me, but now I need to pass the table to it, and I am not succeeding, because after clicking ok this argument disappears.
Open the invoked workflow and create a new argument eg-dtInput of type DataTable by clicking on the âArgumentsâ panel and clicking the âAddâ button.
Go back to the workflow that is invoking the other workflow and drag and drop the âInvoke Workflow Fileâ activity into the workflow. Click on the âImport Argumentsâ button in the âPropertiesâ panel and select the âdtInputâ argument that you just created.
Within the invoked workflow, you can now reference the DataTable using the argument name âdtInputâ.
Store the âCurrentRowâ value to a variable by using âAssignâ Activity. Pass that variable to the invoke workflow file in the âimport argumentsâ option in the âInvoke workflow fileâ activity. Create a argument in the invoked xaml file (BX.xaml). You can use that argument in the invoked xaml file (BX.xaml).
I did everything as you said, but Iâm still facing a problem, I created the argument in the invoke workflow, but when I put the path (BX.xaml), it replaces the argument for what is in the image, and this happens for any thing I try to add in the argument, can you say why?
I managed to make it work, I donât know if itâs a bug or normal, but I did it this way:
I added a new invoke workflow, added the arguments, but without putting the value, saved and closed the project.
I opened the project again, and put the path of the invoked sequence, and after that I added the value in the invoke workflow, now my imported arguments have not disappeared, I tested it and it is working correctly.