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)

Switch Business Process Flow through JavaScript Web Resource

(0) ShareShare
ReportReport
Posted on by 297

Hello Everyone !

Hope all of you fine!

Can any anyone tell me how to switch BPF through JS when form load?

I am beginner as JS developer in Dynamics.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mahadeo Matre Profile Picture
    17,021 on at
  • Microsoft Dynamics 365 Consultancy Profile Picture
    297 on at

    Hello!

    The references which you given are old. Now i heard that Microsoft has changed JavaScript architecture for dynamics due to which controls have changed. When i use methods in which are given in documentation of Microsoft so errors occur so kindly tell me updated reference for this.

  • Verified answer
    Joana Pinto Profile Picture
    740 on at

    Hello,

    This link refers to the new client-side api for v9 of Dynamics 365:

    docs.microsoft.com/.../setactiveprocess

    Hope it helps!

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi ,

    Check with this  -

    function OnloadForm(Executioncontext)
    {
        var formcontext = Executioncontext.getFormContext();
        formContext.data.process.setActiveProcess(processId, callbackFunction); // Pass GUID of process 
    }
    
    function callbackFunction(result)
    {
        if(result == "Success")
        {
            alert("Success");
        }
        else
        {
            alert("failed");
        }
    
    }


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