Expand my Community achievements bar.

SOLVED

Storing unique entries into a data store

Avatar

Level 10

Hi Fusion Community,

 

I have an iterator module that iterators through a project's hours (many hour entries, some of which have the same hour owner ID). My iterator's output shows a number of bundles. I need a way to store or generate a list of a deduplicated owner ID's when comparing all of the bundles from the iterator output. Here's a screenshot of the iterator's output.

 

Screenshot 2025-02-14 at 3.59.02 PM.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Does anyone know how to do this?

Thanks,

Nick

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Since it looks like you're feeding that array into an iterator, you can make your owner ID list without the iterator with this function in a variable.

 

deduplicate(map({your source array};ownerID))

View solution in original post

4 Replies

Avatar

Level 10

Hello Nick,

 

without having tried, I would think about this approach:

 

1. Use an Array aggregator to aggregate your bundles into an array

2. Use the Set variable module with the array function deduplicate() to get an unique array

3. Store the values into the data store

 

 

Regards

Lars

Avatar

Level 10

This will work too, thanks, Lars!
Decided to go with Chris' option since I can cut out the data store.

Avatar

Correct answer by
Community Advisor

Since it looks like you're feeding that array into an iterator, you can make your owner ID list without the iterator with this function in a variable.

 

deduplicate(map({your source array};ownerID))

Avatar

Level 10

Perfect!!  This is what I needed.  Thanks, @ChrisStephens