Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: SPServices Startworkflow & version enabled lists, does it work?

$
0
0
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

Viewing all articles
Browse latest Browse all 6517

Trending Articles