Skip to Content
0
Dec 14, 2022 at 10:52 AM

SAP Build Process Automation - add item to array variable not working in custom script

204 Views Last edit Dec 14, 2022 at 11:07 AM 3 rev

Hi,I'm trying to create array variable in custom script and add item( with both key and value) to it.

I tried javascript syntax like below but not working. Can you help me on this

var a=[],i="emp",j="John";

a[i]=j; //or a.i=j;

return a;

so that a["emp"] has to return value "John"