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 / How to prevent going t...
Power Automate
Answered

How to prevent going to next stage in Business Process Flow?

(1) ShareShare
ReportReport
Posted on by 58

Hello everybody,

 

I am just learning Business Process Flows and I am stuck on a problem.
I have two enties "Project" and "Contract" which have an 1:many relation.

In my first stage of my BPF I would like to check if at least 2 Contracts are inside my entity.

So I used a Rollup and it counts my related "Contracts". So far so good.

But now I would like to define in the BPF that a user is not able to proceed to the next stage if the count is at least 2!
I tried it which a If-Condition in the BPF but this condition triggers after I leave my current stage. I would need something that stops the user clicking onto the "next stage" button.


Is there any hint?
Thanks in advance!

kkowal_0-1609843715031.png

 

 

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

    Hi @kkowal 

     

    One way of doing this would be to create a new field on your Project entity of type "Two Option" and make it a calculated field. Within the calculation for this new field, set the condition to be where "contract count rollup field" is greater than or equal to 2. If this condition is true then set the calculated field's value to Yes (true) else set it to No (false). If you add this field to the form you should see that this field will then automatically change to yes once your rollup field becomes 2 or more.

    Then add the new calculated field into your BPF stage, and make it required to move to the next stage. Users should then only be able to progress when the calculated field changes to Yes (i.e. when the count of Contracts is 2 or more).

     

    Hope that helps.

  • kkowal Profile Picture
    58 on at

    Perfect! Thank you @LeeHarris 

  • KarthikKota Profile Picture
    Microsoft Employee on at

    Thank you @LeeHarris 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard