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 Apps / Checking if all subtas...
Power Apps
Answered

Checking if all subtasks are complete

(0) ShareShare
ReportReport
Posted on by 25

I need something similar to this where it checks to see if a record exists.

 

https://powerusers.microsoft.com/t5/General-Discussion/Checking-to-see-if-a-Record-exists-if-it-does-then-Patch-an/td-p/16623

 

I have a situation where multiple people are assigned subtasks to a major task, and it can't be marked approved until all people have performed the task.  

 

Here is what I am using.

 

If(LookUp(Filter(MOC_Approvals,vID.ID='MOC ID'),Status="Approved",true)<>true,UpdateContext({vSuperCheck:false}),UpdateContext({vSuperCheck:true}));

 

The problem I realized this morning is that lookup will return a true on the first item marked approved, but I need it do something like a ForAll.  Any ideas?

Categories:
I have the same question (0)
  • Verified answer
    Mike8 Profile Picture
    1,330 on at

    Hello,

    If(
    !LookUp(Filter(MOC_Approvals,vID.ID='MOC ID'),!(Status="Approved"),true),
    UpdateContext({vSuperCheck:false}),UpdateContext({vSuperCheck:true}));

    Can you try the formula above?
    It checks if there is a record that its status is not approved. If it exists does nothing. If it doesn't find any records that status is not approved means that all are approved 🙂
    Hope it works

  • bjdshp Profile Picture
    25 on at

    Thanks for pointing out the obvious!  That worked, I appreciate the help.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard