static string ReportDownload(string xml, Entity e) { DownloadReportDefinitionResponse resp = null; try { var req = new DownloadReportDefinitionRequest() { ReportId = e.Id, }; resp = OrgService.Execute(req) as DownloadReportDefinitionResponse; } catch (Exception ex) { Console.WriteLine("Report not supported " + ex.Message); return(null); } return(XmlPretty(resp.BodyText, null)); }
static string ImportMapDownload(string xml, Entity e) { ExportMappingsImportMapResponse resp = null; try { var req = new ExportMappingsImportMapRequest() { ImportMapId = e.Id, }; resp = OrgService.Execute(req) as ExportMappingsImportMapResponse; } catch (Exception ex) { Console.WriteLine("ImportMap not supported " + ex.Message); return(null); } return(XmlPretty(resp.MappingsXml, null)); }