내 커뮤니티 업적 표시줄을 확대합니다.

Don’t miss the Workfront AMA: System Smarts & Strategic Starts! Ask your questions about keeping Workfront running smoothly, planning enhancements, reporting, or adoption, and get practical insights from Adobe experts.
해결됨

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

Avatar

Level 3

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 채택된 해결책 개

Avatar

정확한 답변 작성자:
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.

 

 

원본 게시물의 솔루션 보기

4 답변 개

Avatar

정확한 답변 작성자:
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 3

Thank you @Richard_Le_ 

Avatar

Level 10

Hello esalraz,

 

You just need to use the merge() function.

 

merge(array1; array2; ...)

 

Regards

Lars

Avatar

Level 3

Thank you @lgaertner