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 / Check the roster, dele...
Power Automate
Unanswered

Check the roster, delete the person from training list if not part of the roster

(0) ShareShare
ReportReport
Posted on by 153

So in my company we have mandatory trainings and I developed an app to upload the training and store the information into a sharepoint list

 

I am now trying to create a flow that cycles through the trainings sharepoint list checking employee id

If that employee id is no longer in the company roster those trainings are deleted from the training sharepoint

With the screenshots I provided when I run that flow it deletes all the items from my sharepoint list

 

Any help/ideas would be greatly appreciated

 

Capture2.PNG
Capture.PNG
Categories:
  • creativeopinion Profile Picture
    10,508 Moderator on at

    Your Filter Array action should be happening outside of the Apply to Each loop. 

     

    Please refer to this post for instructions on how to use the Filter Array action properly. This post covers how to cross-reference items to a SP list. 

     

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok
  • 3cdoug Profile Picture
    153 on at

    Alot of good information, Im just a bit lost in all the flow but I will give it a go. Thank you

  • creativeopinion Profile Picture
    10,508 Moderator on at

    Take it step by step and run a test where I indicate to run a test. It will be easier to troubleshoot your flow this way rather than trying to build it from start to finish especially if you are new to PA. 

     

    I personally find it more efficient to build a flow by testing at each section to ensure I'm returning the correct values. If you aren't returning the correct values, the next actions won't run anyway.

     

    Good luck!

  • 3cdoug Profile Picture
    153 on at

    Capture3.PNG

    Capture4.PNG

     

    so to know make sure I am checking my sharepoint list for employee ID and cross checking that with the employee roster. Am I on the right track?

  • creativeopinion Profile Picture
    10,508 Moderator on at

    As long as the Employee ID Excel corresponds to the Title Value in SharePoint.

     

    If you run a test (without the apply to each action). The values returned in the Select on both branches of your flow should return values that you can cross-reference. Otherwise you aren't going to be able to filter any items out with the Filter Array action. 

     

    Hope that makes sense.

     

    Is the Filter Array action returning anything?

  • 3cdoug Profile Picture
    153 on at

    Yes, they both returned the id from each table. I just didnt know what to do after that to actually make the correct deletions happen

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 349 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard