web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Suggested Answer

Unique Items in List

(1) ShareShare
ReportReport
Posted on by

I have code in PowerApps that's just running too slow, so I need to find a way to convert some of it into Power Automate. After getting items from a SharePoint list, there a way to get just the unique/distinct Title values and bring them into a "collection" of sorts for me to evaluate as needed?

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,454 Super User 2025 Season 2 on at

    Hi @cmitchener 

     

    ClearCollect(UniqueTitles, Distinct(TableName, FieldName));

     

    Done


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • cmitchener Profile Picture
    on at

    I apologize, I meant is there a way to do that in Power Automate. I forgot to write that part in lol. I need to, in a flow, get the items from a list and take only the unique values in the Title field.

  • Michael E. Gernaey Profile Picture
    53,454 Super User 2025 Season 2 on at

    Hi @cmitchener 

     

    yeah its important to put the details since folks like me help hundreds and its alot

     

    But yes here is what you do in Power Automate

     

    You have a list that has a column called Title

     

    Add a Select action

    In the Map field name put Title, in the Expression value put item()?['Title'] 

    Make sure you put the value as an Expression not the text

    FLMike_0-1720819707973.png

     

    After the Select add a Compose

    If you look above, my select action is just called Select but you can rename it

     

    In the compose put an expression that is this

    union(body('Select'), body('Select'));

     

    This will join it on itself and return ONLY a unique list of the TItle column


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

     

  • cmitchener Profile Picture
    on at

    Ok that worked to get the unique titles, how do I now evaluate those one at a time with a For Each? The flow doesn't like just plugging the compose output into the foreach evaluation.

  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,454 Super User 2025 Season 2 on at
    Hi
     
    Sorry you probably are done with this by now. However the outputs of the Compose would be exactly what you would put in.
     
    I would need to see what you added there so I can tell you what the issue was. But I assure you the output is exactly what is needed, and is a pattern I've used and lots of other pros all the time

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard