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 Platform Community / Forums / Power Automate / Get specific items to ...
Power Automate
Unanswered

Get specific items to users from json results

(0) ShareShare
ReportReport
Posted on by 407

Hi, 

 

I have a flow which queries a list with the items that were created in the last 7 days. In the results I have entries submitted by users with their corresponding data and supervisors. I need to be able to send an email to their supervisors with the items submitted by the users for these last 7 days. Where i'm getting stuck is where some users have multiple items submitted. The emails to these supervisors should only have the data that corresponds to their employee. 

 

This is what i have so far: 

flow2.png

 

Any help is appreciated. 

 

Thanks

 

Categories:
I have the same question (0)
  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @_sourcecod3_

    I Suggest you add a compose data operation after the Get Items to get the first record record only first(getitems) and then you can get the user data from there.

     

  • _sourcecod3_ Profile Picture
    407 on at

    @Mira_Ghaly  I am getting the data back from the 'Filter array'. the problem is that this data has entries from the same user multiple times. I need to grab all the entries from each user and send those to their supervisors. Any other ideas? 

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @_sourcecod3_ 

    Please try the Action Create HTML Table and add the filtered array as an input and then pass the outputs of the Create HTML Table to the Email you are creating.

    Sample for Create HTML Table but in your case the From will be the Filter Array and you can choose to generate columns automatically or Create Custom.

    Mira_Ghaly_0-1599601590125.png

     

     

     

  • _sourcecod3_ Profile Picture
    407 on at

    @Mira_Ghaly thanks for you responses, but i think we might be misunderstanding the issue. I can get the information once it's parsed from the filter in the array, what i'm trying to do is filter the data retrieved. 

     

    sample of data: 

    user1activity1supervisor1
    user1activity2supervisor1
    user1activity3supervisor1
    user1activity4supervisor1
    user2activity1supervisor2
    user2activity2supervisor2
    user3activity1supervisor3

     

    I need to send an email to each employees supervisor with the activities entered by their employee. So i need to grab the empname, their activities and email it to their sup. 

  • Mira Ghaly Profile Picture
    11,415 Moderator on at

    @_sourcecod3_ 

    Can you please check my reply on this topic it has similar approach for grouping the data per user.

    https://powerusers.microsoft.com/t5/General-Power-Automate/Flow-to-send-digest-emails-to-amp-quot-assigned-user-amp-quot/m-p/683315#M57158

     

    Hope this gives you an idea!

     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 375 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 269 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 127 Most Valuable Professional

Last 30 days Overall leaderboard