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 :
Microsoft Dynamics CRM (Archived)

Changing the BPF via Xrm.Page.data.process.setActiveProcess has no effect

(0) ShareShare
ReportReport
Posted on by 142

I am trying to update the BPF on a case using the below:

Xrm.Page.data.process.setActiveProcess("F0B5051A-826D-46EB-ADA0-6A8E56041EC4", bpfChanged);

However, this does not seem to work and the callback function is not fired. There are no errors returned when that line is run, and nothing returned to the callback.

MSDN says this is supported in Dynamics 2016:

https://msdn.microsoft.com/en-gb/library/dn817878.aspx

Has anyone had any luck using this with 2016?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahadeo Matre Profile Picture
    17,021 on at

    Hi,

    Is your BPF enabled? please also check BPF id is correct.

  • deanparkr Profile Picture
    142 on at

    BPF is enabled and the ID is correct.

    It is strange it is not firing the callback. If it was disabled or the ID happend to be wrong, would expect the callback to return "Failed" or similar.

  • Community Member Profile Picture
    on at

    I have the same problem. Has anyone figured it out yet. I want to be able to select the process that is available in the "switch process" window, but the function

    getEnabledProcesses doesn't fire the callback function. Even though I can see the process I want to select in the "switch process" window. This sounds like a Microsoft bug since the documentation says:

    "The enabled processes are filtered according to the user’s privileges. The list of enabled processes is the same ones a user can see in the UI if they want to change the process manually.

    But any response is appreciated 

  • Thomas David Dayman Profile Picture
    11,323 on at

    Is it possible to see some of your code so we can debug it?

  • Suggested answer
    Kishor Kumar Profile Picture
    3,710 on at

    Hi Dean parkr, if you are upgraded to Dynamics 365, we too have faced the issue in the BPF and after another upgrade this issue got solved, hope it may helps you

  • Community Member Profile Picture
    on at

    I made it work, but not via the Javascript. I noticed that on the entity that the process was hooked up to had a null in the processid column. So I manually set the process id of all the entities instances to the correct guid of the process and that seemed to fix the problem. I did this by using the Sdk (C#). I can post some example code if people are interested.

    Hope this helps

  • Saif Ehsan Profile Picture
    360 on at

    Would be very kind of you to share the code as a solution to this problem. facing the same issue

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans