Get all the keys and values from an array or collection in WF Fusion | Community
Skip to main content
New Member
June 7, 2024
Question

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

  • June 7, 2024
  • 1 reply
  • 857 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

ChrisStephens
Community Advisor
Community Advisor
June 14, 2024

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.

August 21, 2024

Hi!

 

What do you mean by "{definition}" in this scenario?