Feb 21, 2012 at 2:24 PM


I have a problem with spservice and startworkflow.

I check on the wiki

My code :

    operation: "StartWorkflow",
    debug: true,
    item: encodeabsUrl,
    templateId: templateId,
    workflowParameters: "<root />",
    completefunc: function(xData, Status) {
     var out =  $().SPServices.SPDebugXMLHttpResult({node:  xData.responseXML});

In the SPDebugXMLHttpResult i don't see an error but when i check on my list the field for the workflow display "error occured".

i notice that it's the system account who launch the workflow instead of the current user when i launch manuelly.

have you meet this case already ?

Do you know how i can launch the workflow with the current user by spservice ?

Manuelly the workflow excecute fine .