Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }