Expand my Community achievements bar.

Join us LIVE in San Francisco on November 14th for Experience Makers The Skill Exchange. Don't miss out on this free learning event!
SOLVED

How to merge an array and an element in a single array

Avatar

Level 2

Hello, 

 

I have an array with two elements and another field with an element (1) and I´d like to merge both in a single array I mean, an array which contains three elements. Could you help me and tell me which module and/or function will do that for me?

 

I attach a screenshot.

 

Thank you 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

 

I would use a set variable module and utilise use the add function. The syntax for the add function is:

 

add(array;value 1;value 2)

 

So in your example it would look something like:

 

add(DE:Assets Inventory - Antenna;DE:Assets Inventory - Baseband)

 

Best Regards,

Rich.

 

 

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Hi,

 

I would use a set variable module and utilise use the add function. The syntax for the add function is:

 

add(array;value 1;value 2)

 

So in your example it would look something like:

 

add(DE:Assets Inventory - Antenna;DE:Assets Inventory - Baseband)

 

Best Regards,

Rich.

 

 

Avatar

Level 10

Hello esalraz,

 

You just need to use the merge() function.

 

merge(array1; array2; ...)

 

Regards

Lars