web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Change BPF according to selected field option

(0) ShareShare
ReportReport
Posted on by 89
Hello,
 
Does someone has idea how to solve next question.
We created Field with different sales procedures and want to link these options to actual business process flows.
Yes it would be simple to BPF from process menu but we do need field in different views to get quick idea of what process is being used.
Also its more efficient/comfortable to fill and select all fields on same place not navigate around in menus and submenus.
 
Thanks in advance.
I have the same question (0)
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    Hi Partner,
    You can switch different BPFs based on the field value through Javascript automatically.
    1.setActiveProcess()
    Sets a Process as the active process.
    If the business process being set as active already has an instance, the instance will be marked as active and the primary record form will be reloaded to show it.
    formContext.data.process.setActiveProcess(processId, callbackFunction);
    2.getActiveProcess()
    Returns a Process object representing the active process.
    var activeProcess = formContext.data.process.getActiveProcess();
    3.process.getId()
    Returns the unique identifier of the process.
    var processId = procObj.getId();
    And you can refer to the following blog, which provides one example:
    Note:
    Pick GUID of the Business Process Flow 32 characters between %7b and %7d  (%7b    BAA0A411-A239-410C-B8BD-ED8B5FDD88E3   %7d)

    I hope you can verify my answer if it helps you! If you have any questions, please feel free to contact me.
    Regards,
    Leah
  • Leah Ju Profile Picture
    Microsoft Employee on at
    Hi Partner,
    Has the issue been resolved?
    Have there been any updates? Please feel free to ask me any questions you may have!
    If it has been resolved, can you mark the response as an answer?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans