We are using content approval. I have written custome workflows in SHAREPOINT DESIGNER 2013.
The user saves and "Publishes a Major Version"
This sets the Approval Status to Pending.
The submit MyCustomApproval workflow. Once complete, they want the status to remain in Pending. However, since I modify the document in the workflow and checkout/in, it creates another minor version and sets the Approval Status to Draft.
I've followed this eample to write a HTTP Webservice Post. http://blog.ctp.com/2014/03/12/updating-list-items-using-sharepoint-2013-workflow-engine/. If I update the Title column for instance, it works perfectly.
Changing it to update this column:
<d:OData__ModerationStatus m:type="Edm.Int32">3</d:OData__ModerationStatus>
Fails with No Content. Can I not modify this column?
I'm using Header:
accept: application/json;odata=verbose
content-type: application/json;odata=verbose
X-HTTP-Method: MERGE
IF-MATCH: *
Metadata as type String SP.Data.MyListnameItem (which I get from category term= in the XML)
I'm passing the name OData__ModerationStatus, Integer, 2
Displaying the currentItem.ApprovalStatus before and after remains 3
Any idea's?
Thanks.
Tom