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); }
相關文章
相關標籤/搜索