Hi,
How can i use datatable on other workflows without saving it ?
I did i scrap the data, which is saved on a variable, but later when i call that variable, it has nothing on it ?
Hi,
How can i use datatable on other workflows without saving it ?
I did i scrap the data, which is saved on a variable, but later when i call that variable, it has nothing on it ?
Hi @mz3bel,
Can you explain little more the actual scenario?
Or can you share the xaml file
Cheers
@mz3bel
If youâre passing information between two workflows you need to use an Argument. Variables are limited to the scope they are created, so the other workflow doesnât know or care that the variable exists.
Hi @Vashisht
I have a sequence where i used scraping data, which i store on âmyVarâ and didnât save it on any file.
Than i have an other sequence, which i use âmyVarâ, but the variable is emptyâŚ
I used arguments. What do you mean by variable doesnât exists ?
Bro once please check the scope of the variable, I guess the scope of that variable may be only in that sequence
iâm using the variable as argumentâŚ?
As @Vashisht said you should check the scope of your variable. If the scope is limited to the first sequence then the variable will be deleted from memory once that sequence ends.
So i checked, and checked and checked again.
I even put an âFor Each Rowâ, it shows me the data, what doesnât work is the assign.
Because i use myVar = myVar.Select(âsomethingâ).CopyToDataTable()
@Palaniyappan some help please
This can be due to many reasons
Fine, lets check one by one
âfirst as other suggested make sure that the scope of that variable myVar is set with whole sequence in the variable panel
âand i think the statement used is one among them, as there is some syntax issue
myVar = myVar.Select(â[yourcolumnname] = âvalueyouwantââ).CopyToDatatable()
âor if the variable is used between different workflow and called using invoke workflow we need to use arguments --kindly let us know if we are going by this or not no issues go for the first two suggested points
Cheers @mz3bel
I use the variable as argument, the thing is that i wokrs with the assign activity, but once i use the assign activity i get empty varâŚ
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.