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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans