Add value in existing array

Hi team,
I need help i have one array Eg. ARY1={“Pramod”,“sharma”} and in these pramod is holding passion 0 and sharma is holding passion 1 so i want to add one more string “name” in the same array so the final array will like ARY1= {“Name”,“Pramod”, “Sharma”} and key like 0,1,2

1 Like

Hi @Pramod_Sharma

You can add the element to array by first converting to list then add element using Add to Collections activitiy and then convert to array

I am not concept of key usage here
Can u explain clearly that part
?

Regards

Nived N :robot:

Happy Automation :relaxed::relaxed::relaxed:

hi

You can check below post as well

@Pramod_Sharma
in case of elements has to add to a collection the list datatype suits better for this task as an array does.

However you can do following:
grafik

in your case: yourArrayVar.Append(“YourValue”).toArray

1 Like