I am trying to deactivate workflow (the definition workflow) I own using the web api, however, I get an error. The C# examples that I found suggest that this was all that was necessary to "publish/deactivate."
Thoughts?
web api payload:
{ "statecode": 0, "statuscode": 1 }
error:
{"error": {
"code": "0x80045002",
"message": "Cannot update a published workflow definition.",
"innererror": {
"message": "Cannot update a published workflow definition.",
"type": "System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]",...
}
*This post is locked for comments