SPServices Startworkflow & version enabled lists, does it work?

Mar 26, 2014 at 10: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';


          $().SPServices({
            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?

Thanks
Coordinator
Mar 27, 2014 at 1: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.

M.