Datatable as argument in Invoke Activity

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:

image

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.

1 Like

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

2 Likes

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

2 Likes

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

2 Likes

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

Hi @FlpVsg,

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

Regards,
arivu

2 Likes