public string GetData(int value) { var res = ""; try { var processId = new Guid("{BAB5331D-A3F8-4748-B17F-F282B2D623BF}"); var userId = new Guid("{2D6819C9-DB76-43FC-8D9F-EC940539B014}"); var context = new WorkflowContext(new WorkflowContextData(processId, userId), provider); var ui = context.GetUserInfo(); res = ui.OrganizationName; } catch (Exception e) { while (e.InnerException != null) { e = e.InnerException; } res = e.Message; } return(res); }