javascript to strat workflow RRS feed

  • Question

  • hi

    i am trying to start workflow using javascript

    i got some code

    i am facing problem with below code.

     var servicesManager = SP.WorkflowServices.WorkflowServicesManager.newObject(context, web);

    it is not working

    Friday, June 6, 2014 2:43 PM


  • Hi,

    Please check that whether you have referenced the JS libraries in your code:

    <script type="text/javascript" src="/_layouts/15/sp.js"></script>

    <script type="text/javascript" src="/_layouts/15/sp.core.js"></script>

    <script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>

    <script type="text/javascript" src="/_layouts/15/sp.workflowservices.js"></script>

    Here is a similar thread for your reference:


    Feel free to reply with the test result.

    Best regards

    Patrick Liang
    TechNet Community Support

    • Marked as answer by malli.share Tuesday, June 10, 2014 5:45 AM
    Tuesday, June 10, 2014 1:54 AM