start workflow via a btn.

Feb 2, 2015 at 9:02 PM
my_site/_vti_bin/Workflow.asmx 404 (Not Found)

I get the above error when I start a workflow from a btn. I have this same code on another sharepoint site and all works fine. The function is getting called just fine, but it fails with the 404. I have verified my template id. What am i missing?

My code is below.



function StartWorkFlows(ItemID){
var loadingImage = 'Loader' + ItemID

var workflowDiv = 'WorkflowDiv' + ItemID

//Show our loading image

document.getElementById(loadingImage).style.visibility = 'visible';

$().SPServices({

operation: "StartWorkflow",

item: "my_site/projects/item" + ItemID + "_.000",

templateId: "{fb19406d-0a0a-4c16-a73e-03129d860e3b}",

workflowParameters: "<root />",

completefunc: function() {

document.getElementById(workflowDiv).innerHTML = 'Project Assigned';

}

});

}
Feb 3, 2015 at 4:19 PM
never-mind. I had the wrong list url.