Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Retrieve active business process flow stage from base entity

Posted on by Microsoft Employee

I was wondering how I could retrieve the active stage of the current active BPF process (preferably without code) from its base entity. I am looking for a solution sort of like the deprecated stageid and traversed path fields.

I have tried using a workflow triggered on each stage entry of the BPF to set the value of an option set on the base entity but every now and then the option set value will be incorrect (I still have no idea why).

I was thinking I could add a field to the base entity which is a lookup to the BPF entity. The lookup value would be set via workflow that triggers whenever a BPF is created. However, I am hesitant to do this because I am not sure if it is a best practice.

  • Suggested answer
    Rui Carvalho Profile Picture
    Rui Carvalho on at
    RE: Retrieve active business process flow stage from base entity

    Hello Hapa1,

    To retrieve the current active stage of a BPF you will need to write code.

    You can use the following Client API for Javascript:

    docs.microsoft.com/.../getactivestage

    More BPF client API can be found here:

    docs.microsoft.com/.../formcontext-data-process

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans