Linking to contenttype submit clik to workflow in sharepoint 2010 and sharepoint2013
ht["cabTaskStatus"] = "Rejected"; ht["Status"] = "Rejected"; ht["cabTaskSubStatus"] = "Rejected"; SPWorkflowTask.AlterTask(CurrentListItem, ht, true);
Comments