Set value in array index

HI,

I want to set value(string) in array index. How can I add in array index value?

Like: I have secondSplit array, and I want to add value on seconSplit[0]=“string”.

I had tried like this,
image

Is there any solution for this?

thanks.

Hi @sams,

Refer this

if you are already declared the array length
you can directly use assign activity to update the value
arr(3)="yourvalue"

Regards,
Arivu

any solution for this?

Hi @sams,

The error clearly saying the value is null
not created the object of the variable.

can you send the screenshot of the Assign activity and variables

Regards,
Arivu

Hi @arivu96,

Just a sidenote, but please reconsider the amount of nested activities you have in 1 workflow - that screenshot is frightening a little bit.
I’d highly recommend getting familiar with invokes (f.e. via Academy Level 3) and splitting it up to subflows, as I can with a fair bit of certainty say that you will have problems with execution logic in this.

3 Likes