Hi All,
i want to trigger workflow which failed for the records for some reason, i am creating console to execute all those workflow which failed.
below is the class i am using to execute it, but it is doing nothing.
var request = new ExecuteWorkflowRequest()
{
EntityId = res.GetAttributeValue<EntityReference>("regardingobjectid").Id,
WorkflowId = workflowID
};
var res1= service.Execute(request);
Any help would be appreciated.
Thanks,
Shahbaaz
*This post is locked for comments