public static string GetCustomAttrs(string WorkObjID) { IWFWorkflowService svc = Common.GetWorkFlowAPI(); string xml = null; try { xml = svc.GetCustomAttrs(WorkObjID); //WFCustomAttributes attrs = new WFCustomAttributes(); //attrs.AttrXml = xml; // de-serialize xml //string[] attributeNames = attrs.GetNames();// get attribute names //Object value = attrs["MyAttributeName"]; // retrieve attribute value } catch (Exception ex) { } return(xml); }