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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Building workflow to c...
Power Automate
Unanswered

Building workflow to consolidate all records from Doc Lib and send consolidated records to each user

(0) ShareShare
ReportReport
Posted on by 8

Hi All,

 

I want to build a power automate workflow to check on a document library, each records will have different creator, but I do not have a list of all user, so I need power automate to "Get Items" from doc library and loop thru the records, and consolidate all records belongs to User A then send all the records created by User A via email, then continue loop thru records created by User B, and send the email again.

 

Currently I not sure how to start with this, please give some suggestion.

 

Screenshot 2024-01-24 143602.png

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Building workflow to consolidate all records from Doc Lib and send consolidated records to each user

    Hi @domingsun1 ,

     

    I've made a test for your reference:

    vbofengmsft_0-1706080098050.png

    vbofengmsft_1-1706080230607.png

     

    Best Regards,

    Bof

     

  • royg Profile Picture
    on at
    Re: Building workflow to consolidate all records from Doc Lib and send consolidated records to each user

    Hi,

    you'll need to implement some kind of grouping. To get this done you can do the following:

    1. After the Get Files (properties only) action, add a Select action to collect only the Owner Emails into an array

    1.1. To get the array of emails simply toggle the Map to Text and select the "Owner Email" field from the dynamic values

    2. After the Select action add a Compose action, set it's Inputs to the expression: union(body('Select'), body('Select')). That gets the distinct emails list

    3. Add Apply to each action to iterate the Compose outputs (the distinct emails list). Inside the loop, add a Filter  Array action filtering the Get Files (properties only) Value (all the document library items) by "Owner Email" equals Current Item (from the dynamic values list).

    4. Following that Filter Array action add a Create HTML Table action and set its From field to the outputs of the Filter.

    5. Add a Send an Email action and set its To field to the Current Item (again from dynamic values list) and in the email body add the outputs of the Create HTML Table action.

     

    Hope this helps 

     

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
Tomac Profile Picture

Tomac 497 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 477 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 242

Last 30 days Overall leaderboard