Get List Status of workflow in sharepoint
public static string GetWorkflowStatus(SPListItem listItem, string workflowTitle)
{
var workflowStatusField = listItem.Fields[workflowTitle] as SPFieldWorkflowStatus;
int statusValue = int.Parse(listItem[workflowStatusField.StaticName].ToString());
return workflowStatusField.GetFieldValueAsHtml(statusValue);
}
浙公网安备 33010602011771号