This project has moved and is read-only. For the latest updates, please go here.



Web Service


Supported Operations

Operation Options MSDN Documentation Introduced
AlterToDo item, todoId, todoListId, taskData Workflow.AlterToDo Method 0.6.0
GetTemplatesForItem item Workflow.GetTemplatesForItem Method 0.3.0
GetToDosForItem item Workflow.GetToDosForItem Method 0.3.0
GetWorkflowDataForItem item Workflow.GetWorkflowDataForItem Method 0.3.0
GetWorkflowTaskData item, listId, taskId Workflow.GetWorkflowTaskData Method 0.3.0
StartWorkflow item, templateId, workflowParameters Workflow.StartWorkflow Method 0.3.0

Last edited Oct 19, 2011 at 4:07 AM by sympmarc, version 5


codemonkey09 Sep 25, 2015 at 10:30 PM 
Here's the code I used to find the workflow details link for a list item. I pass in the url to the item and the workflow status (which is a number stored in the list item). I only had to worry about one workflow, if you have multiple workflows this would need to be fleshed out more:
function getStatusDetails(url,sectionStatus)
operation: "GetWorkflowDataForItem",
item: url,
async: false,
completefunc: function(xData, Status) {
var todo = $(xData.responseXML).find("ToDoData").SPFilterNode("z:row").eq(0);
if(todo.length > 0) //find in progress link
var workflowInstanceId = $(todo).attr("ows_WorkflowInstanceID");
var workflowListId = $(todo).attr("ows_WorkflowListId")
OpenPopUpPage("" + workflowListId + "&WorkflowInstanceID=" + workflowInstanceId);
//find last rejected/accepted link
$(xData.responseXML).find("ActiveWorkflowsData Workflow").each(function()
if($(this).attr("Status1") == sectionStatus)
return false;

sympmarc Jul 5, 2011 at 8:02 PM 
Dean: I just saw your question. Please use the discussion, as there's no alerting on page comments. M.

dlgross Jun 16, 2011 at 4:15 PM 
Since the MSDN documentation is for 2007 workflows, I assume that this will not work for 2010 Site or Reusable workflows. Is this a correct assumption?