微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

c# – 以编程方式查看无需访问Reporting Server的CRM报告

有没有办法可以使用C#查看报告(Sales> Reports)而无需访问报告服务器?

我正在尝试编写一个监视CRM服务器运行状况的工具(实体记录在正确的位置等),因此我希望该工具位于可以访问每个CRM实例的位置(从2013年开始到2016年)线上).

这样做的原因是我们有一个报告,它完成了检查所有实体,设置,记录等的健康状况的所有繁重工作,我只是希望能够以编程方式检查此报告(通过xml解析)并告诉用户结果.

我尝试使用html抓取,直接URL方法:/ crmreports/viewer/viewer.aspx?Id=xxxxxxx但是,或许可以预见,返回的HTML只是一个提示登录页面.

我有所有凭据来建立Xrm服务连接,但我不知道如何使用它来访问报告.

是通过报告服务asmx的唯一途径吗?

解决方法

您可以在C#中调用SSRS WebService.

为此,您应添加Web服务引用:
Instruction

考虑到SSRS中有3个Web服务

There are three endpoints available for managing objects on a report
server,ReportService2005,ReportService2006,and ReportService2010.

The ReportService2005 endpoint is used for managing objects on a
report server that is configured for native mode.

The ReportService2006 endpoint is used for managing objects on a report
server that is configured for SharePoint integrated mode.

The ReportService2010 endpoint merges the functionalities of
ReportService2005 and ReportService2006 and can manage objects on a
report server that that are configured for either native or SharePoint
integrated mode.

Read more here

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐