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 / Automatically assign a...
Power Apps
Unanswered

Automatically assign a BPF (Business Process Flow) to an entity based on a field condition

(0) ShareShare
ReportReport
Posted on by 67

Dear Community experts,

 

Do you know if there is a way that I can automatically assign a particular BPF (Business Process Flow) to an entity based on a field condition?

 

Thank you,

Jose G Diaz

Categories:
I have the same question (0)
  • Andras Fordos Profile Picture
    8 on at

    Hey

    Answer depends on more details of your situation: do you want to just branch off within an already running BPF? Or you want to start a specific BPF on a record based on field values? For the former, I see you got good starting points in your other forum post. For the latter you do have option with both frontend (JS) and backend (C# or workflow) depending on your needs.

    But first, the important part is to understand how BPF works
    For every BPF, when created, a "helper" entity (table) is created in Dataverse, to store instance records of that particular BPF. What this means is, that every single time a record (for example a case) starts within a BPF, a new record is created in this helper table by the system to track the advance of that record within the BPF. Additionally, the particular record (case in this example) will be pointed also towards the currently active associated BPF through a "processid" field.

    So, in short, by your means (frontend, backend), you would need to set the processid on your entity record (for example case) to the BPF and create a new record in the BPF "helper" table too, filling out the important fields (active stage, traversed path, etc etc). Happy coding! https://learn.microsoft.com/en-us/power-automate/best-practices-entity-attributes#using-the-active-stage-to-run-logic 

     

    Cheers,
    András

  • Jose Gregorio Diaz Profile Picture
    67 on at

    Thank you for your answer Andras, the idea is to start a specific BPF on a record based on a field value. Any advice?

     

    Thank you,

     

    Jose G Diaz

  • Ezra Tosatti Profile Picture
    16 on at

    Hello,

    I've managed similar need in the past, with this approach: I've created a classic workflow, triggered on attribute change, performed some verifications (for example checking the status of the entity) and added unbounded action "SetProcess", selecting the BPF as "NewProcess" and the entity as "Target".

     

    Best regards

  • TonySileo Profile Picture
    13 on at

    SetProcess appears to be a deprecated action. Does anyone know what the approved/new way to do this is?

    TonySileo_0-1714068771292.png

     

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard