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 / PowerAutomate group by...
Power Automate
Unanswered

PowerAutomate group by user name when all items are updated to approve, calculate average send an email

(0) ShareShare
ReportReport
Posted on by

I have a SharePoint list where it is stored for users evaluations, a single user can have multiple evaluations. Initially all the evaluations are in pending stage. Evaluator have a powerapps form where they can take the evaluation and give the score for each evaluation once he submit the response it it will go to approve status. Now I need to trigger an email, Once all the evaluations are approved belongs to single user along with the average score.

First I need to group by user name

Second check if those items are in approve status

Then calculate the average score 

Then send an email to user

How do I achieve this using power automate.

 

 

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Anonymous 

    I would approach your requirement as follows:

    1. Use a When an item or file is modified trigger
    2. Initialize a variable to store the accumulate scores
    3. Immediately after the trigger, check to see (condition) it the status is approve
      1. If the status is not approve, use a control terminate action (with success) to stop the Flow
      2. Alternatively, you could use a trigger filter instead of the condition
    4. Use a Get items action with a Filter query so that only items for that use are returned
    5. Loop through the items returned
      1. If any are not approved, exit the Flow with a control terminate action
      2. Add the score to the variable
    6. Divide the sum of the scores stored in the variable by he number of items returned 
      1. Use this expression to find the number of items returned by Get items:
        length(outputs('Get_items')?['body/value'])
    7. Send an email

    Give this a try and let me know if you need additional help.

     

     

  • Community Power Platform Member Profile Picture
    on at

    @ScottShearer Thanks for the inputs. It worked but with slight changes I believe.

    It took very long time for me to figure out how to terminate loop if any of the status is pending but any way

    Thanks for your support!

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard