Datatable as argument in Invoke Activity

datatable
activities
arguments
invoke

#1

Hi guys,

I’ve been struggling to get datatable values from one xaml file to another.
In the second file, I can print my datatable just fine. Then, I pass it as an “out” argument in my arguments tab.
Since it is an “Out” argument I also assign a datable variable as its value:

So, from the screenshot above:

  • Values is the datatable inside a xaml file called getFormValues.
    (It is working properly 'cos I’ve tested it)

  • I am trying to assign “Values” table to “T1” which is an empty datatable.

However, on my first xaml file T1 is empty.
I have tested it using “is Nothing” property.

Can someone please help me getting “T1” to be exactly as “Value” ?

Thanks in advance.


#2

Hi @FlpVsg,

“Getformvalues.xaml”- in this xaml file Values datatable you created in both variables and arguments tabs also. I hope

So remove values in the variable tab and tray again.

Regards,
Arivu


#3

Hi @FlpVsg

If you means “Values” is the result that you get from the xaml file called getFormValues,
or you should add “Values” to the “getFormValues” Invoke Activity as a out argument.

Here is what i did :

the [vdtGetOut] is just like “T1” you mean.

And it works.

Regards,
lainh


#4

@FlpVsg,PFA datatable.xaml (6.0 KB)
sample123.xaml (5.2 KB)
Thanks,
Sreekanth.k


#5

Thanks.
This is exactly what was happening.
I had same datatable “Values” as an out argument AND as variable.


#6

Hi @FlpVsg,

Sounds good, make sure here after don’t create with the same name in variable tab and arguments tab.

Regards,
arivu