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

SPServices Startworkflow & version enabled lists, does it work?

Mar 26, 2014 at 11:08 PM
Hi all,
I'm using the following code that used to work before I had turned enabled versions in a list.
        var itemURL=siteURL +'/Lists/'+changeList+itemID + '_.000';

            operation: 'StartWorkflow',
            item: itemURL,
            templateId: workflowTemplateID,
            workflowParameters: '<Data><submit>1</submit></Data>',
            completefunc: function() {
              alert('Record Submitted for review.');
I was doing some testing and I found it no longer worked after I had enabled versioning. The strange part is that the complete function is still triggered. I figured it would've resulted in an error. Perhaps it requires passing a version number? Has anyone experienced this?

Mar 27, 2014 at 2:54 PM
I think the issue is in the way you are constructing the itemURL:

var itemURL=siteURL +'/Lists/'+changeList+itemID + '_.000';

The '_.000' part shouldn't be there, I don't think.