How to create list ItemURL in Client Object Model to start Workflow? RRS feed

  • Question

  • I am trying to start Workflow from Java Script. I found a lot of examples how to do this by using jQuery SPServices http://spservices.codeplex.com/wikipage?title=StartWorkflow but I did not find any explanation what is the ItemURL. Does anybody have an idea how to create ItemURL?

    function StartWorkflow(ItemURL, ItemID) {
      var loadingImage = ‘Loader’ + ItemID;
      var workflowDiv = ‘WorkflowDiv’ + ItemID;
      //Show our loading image
      document.getElementById(loadingImage).style.visibility = ‘visible’;
        operation: "StartWorkflow",
        item: ItemURL,
        templateId: "{04ee1c93-f6b7-49b3-a79c-fa3142ecd688}",
        workflowParameters: "<root />",
        completefunc: function() {
          document.getElementById(workflowDiv).innerHTML = ‘Workflow Started’;
    • Edited by Oleg_Petrychenko Thursday, January 19, 2012 7:28 PM Added more details
    Thursday, January 19, 2012 6:00 PM


All replies