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 Apps / I want to create a Bus...
Power Apps
Answered

I want to create a Business Rule based on a Child Table

(0) ShareShare
ReportReport
Posted on by

I have a Parent Table named "Request" and a child table named "Tasks".  The relation is  1 Request : N Tasks.  There is a "Request Status" field in the Request table, on which I want to enforce a business rule as follows

=> If at least any one of the Tasks related to the request is  "Open", then "Request Status" cannot be "Completed" .

 

If this is not possible is there a work around?

 

I am unable to find a solution for this. Any help is much appreciated. 

 

Thanks...

I have the same question (0)
  • Verified answer
    ChrisPiasecki Profile Picture
    6,422 Most Valuable Professional on at

    Hi @Anonymous,

     

    One way to achieve your business logic is to add a whole number column to Requests that represents the Count of Open Tasks. A business rule can then check whether the value is greater than 0.

     

    To keep the count up to date, you can use a Dataverse workflow on the Task table to increment or decrement the count on the Request table whenever the Task status changes.

     

    Here is a similar example from CRM 2011 but still holds true today. 

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    on at

    Hi @ChrisPiasecki,

     

    Thank you so much, this is what I was looking for.

     

    Regards,

    Raj

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard