Expand my Community achievements bar.

Join us for our Coffee Break Sweepstakes on July 16th! Come ask your questions or share your use cases on Creative Briefs for a chance to win a piece of Workfront swag!

Get all the keys and values from an array or collection in WF Fusion

Avatar

Level 1

How to get all the keys and values from an array or collection in WF fusion to form a string?

 

let's say below is a collection coming from previous module:

  • definition (Collection)
    • plannedStartDate:$$TODAYby
    • plannedStartDate_Mod:between
    • plannedStartDate_Range:$$TODAYey
    • portfolioID
    • portfolioID_Mod:notblank

 

I want to form a string like this:
  • portfolioID_Mod:notblank,plannedStartDate_Mod:between,portfolioID

 

Any help will be appreciated.

Thanks

1 Reply

Avatar

Community Advisor

You could do something like this.

 

1. In an iterator module, put keys({your collection})

2. Add a text aggregator, linked to the iterator. For text, put {value from iterator}:get({definition};{value from iterator}, then click advanced, set seperator as a comma.