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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Combining items in Sha...
Power Automate
Unanswered

Combining items in SharePoint list with same title to send in an email

(1) ShareShare
ReportReport
Posted on by 4

I am looking to automate an email to be sent. I have a SharePoint list being populated from a Power App. There is a column in the SharePoint list that includes a 'Title' based on when the Power App form was submitted. Every time the Power App form is submitted, I want to combine all list items with the same 'Title' together to be sent in the same email. Has anyone done anything similar before and can advise? 

Categories:
I have the same question (0)
  • CassioM Profile Picture
    13 on at

    Can't you just use the Filter Array action?

     

    From the input:

     

    [
     {
     "ID": 1,
     "Title": "A"
     },
     {
     "ID": 2,
     "Title": "A"
     },
     {
     "ID": 3,
     "Title": "B"
     },
     {
     "ID": 4,
     "Title": "C"
     },
     {
     "ID": 5,
     "Title": "A"
     }
    ]

     

     

    CassioM_0-1720202635762.png

    filter:

     

    item()['Title']

     

     

    This is the result:

     

    [
     {
     "ID": 1,
     "Title": "A"
     },
     {
     "ID": 2,
     "Title": "A"
     },
     {
     "ID": 5,
     "Title": "A"
     }
    ]

     

     

  • user47596 Profile Picture
    4 on at

    I am not sure. The title is being dynamically generated each time the Power App is submitted, so the title is not predictable and I do not know how to hard code in a filter array in this way. I am hoping to create a condition where the flow will loop through the array of Titles, and if two titles equal one another, then append their data together to be sent into one email, but I am having trouble with this. Thank you for your response and help!

  • CassioM Profile Picture
    13 on at

    What about that?

     

    CassioM_0-1720204491395.png

     

    Select Titles

    Map:

    item()['Title']

     

    Unique Titles

    Inputs:

    union(body('Select_Titles'), body('Select_Titles'))

     

    CassioM_1-1720204578383.png

    Loop input:

    outputs('Unique_Titles')

     

    Filter array

    From:

    variables('List')

    Filter expression:

    item()['Title'] is equal to items('foreach_Title')

     

    Collect the result with a compose action outside of the loop:

    CassioM_2-1720204857231.png

    Inputs:

    body('Filter_array')

     

    This is the result, an array of arrays grouping the records by Title:

    [
     [
     {
     "ID": 1,
     "Title": "A"
     },
     {
     "ID": 2,
     "Title": "A"
     },
     {
     "ID": 5,
     "Title": "A"
     }
     ],
     [
     {
     "ID": 3,
     "Title": "B"
     }
     ],
     [
     {
     "ID": 4,
     "Title": "C"
     }
     ]
    ]

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard