Is there a way to get all the variable names and store it in String array?

Is there a way to get all the variable names and store it in String array?

Example:
List of variables
var1
var2
var3
var4

I want to get all the variable names and store it in Array:
List_of_variables[var1, var2, var3, var4]

Thank you!

First You Need to assign Values to your variables Like :

Var1=“Ram”
Var2=“Sundar”
And etc

Then

Arr_Str={Var1,Var2,Var3,Var4,Var5}

1 Like

Hey @_waysi,

There is a custom activity in the market place you can try that.

Thanks,
Sanjit

1 Like

HI @_waysi

Welcome to UiPath community

Check out the Official documentation

Regards
Gokul

1 Like

Check out the sample XAML file @_waysi

StringToArray.xaml (5.6 KB)

Regards
Gokul

May I have the screenshot of the xaml instead? Thank you! :slight_smile:

1 Like

image

1 Like

Thank you, will try this :slight_smile:

Let us know incase of any issue @_waysi

Yeah, I’m not getting the expected result. My expectation is that I’ll be getting the actual variable name and not the actual value. Thank you for your support!

Hi @_waysi

Can you provide the sample input and output with us

Already got it. I’d just used List_of_variables[“var1”, “var2”, “var3”, “var4”], make it a string. Thanks!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.