Initializing a table or list variable


#1

Is there any way to initialize a list or table variable within the Recorder and NOT from an excel file?


#2

@asad.zia,

sure, you can set a table right in the Recorder Variables panel - https://kb.workfusion.com/display/RPAe/Recorder+Variables#RecorderVariables-ComplexTypes

or read it from a text/csv file to a list - https://kb.workfusion.com/display/RPAe/Files+and+Folders#FilesandFolders-ReadFile

or read it from a web page using an XPath - https://kb.workfusion.com/display/RPAe/Web#Web-GetValue


#3

So I can’t actually set the variable within my script by using the Variable actions?


#4

you can - https://kb.workfusion.com/display/RPAe/Variables#Variables-Table.1


#5

Hi @azinchuk,

I try to initialize a list using the ‘Constant Value’ action, as described in the document.
Unfortunately, I cannot type into the Value attribute, I can only click on ‘Enter List’.
I want this list to be empty at this point of the execution, but when I use this action with no values defined, the list still keeps the old values.

The same applies to a table variable. I am not allowed to type into the Value attribute.

Any ideas?

Kind regards,
Dimitrios


#6

Just found a workaround.

Press 'Enter List’
Add a dummy value
Close the values window
Press 'Enter List’
Delete the dummy value
Close the values window

Voila!


#7

Hi Azinchuk

In the current version you can append values to a predefined list, which is perfect. Is there a limit on the list size or tables size that I should know about?

Best regards,
Michael Callisen


#8

@mc1 - thanks for an interesting question!

The List variable can have up to 2,147,483,647 elements
The Table variable can potentially have any number of elements, but is restricted memory that you allocate to Studio.