concatenation string with additional characters in array of objects

gopijasti
Tera Contributor

In a ServiceNow Flow Designer Action script step, I have an array of objects and I want to concatenate the values of a specific field (e.g., ‘transactoionId’) into a single string. How can I do that?

 

end production should looks something like [111,222,333] ( all numbers are transactioId's present in a array of object as shown on the image below .. Thanks very much in advance 

gopijasti_0-1750444108627.png

 

1 ACCEPTED SOLUTION

Hello @gopijasti , For output, do this in script
 

outputs.concatenated = ids.join(",");

 

View solution in original post

7 REPLIES 7

Hello @gopijasti , For output, do this in script
 

outputs.concatenated = ids.join(",");

 

Excellent , thank you Salar ! 

 

You're welcome, Glad i could help