Skip to main content

Notifications

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 79
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.
  • Leah Ju Profile Picture
    Microsoft Employee on at
    Change BPF according to selected field option
    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?
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    Change BPF according to selected field option
    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,079 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,860 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans