Hello Techies,
I'm trying to deactivate a workflow using the following code
var activateRequest = new SetStateRequest
{
EntityMoniker = new EntityReference
("workflow", item.Id),
State = new OptionSetValue(0),//Draft = 0 Published = 1
Status = new OptionSetValue(1)//Draft = 1 Published = 2ss
};
proxy.Execute(activateRequest);
And i get the errior "Only workflow definition or workflow template can be unpublished."
Thanks & Regards,
Clement
*This post is locked for comments