因此,有一款软件使用了已弃用的 Office365 身份验证类型,我正在努力对其进行更改。但是,我似乎无法理解如何编辑以下内容:
String _fetchxml = getFetch();
using (CrmServiceClient crmConn = new CrmServiceClient(ConnectionString)
{
_crmService = crmConn.OrganizationServiceProxy;
EntityCollection tn = _crmService.RetrieveMultiple(new FetchExpression(_fetchxml));
这曾经通过 Office365 工作,但现在只会引发对象引用错误。
谁能帮我解决这个问题?
该CrmServiceClient
工具IOrganizationService
,这样你就可以跳过OrganizationServiceProxy
,直接使用crmConn
:
var tn = crmConn.RetrieveMultiple(new FetchExpression(_fetchxml));
除此之外,也许检查Xrm.Tooling
您正在使用的NuGet 包的版本。如果它不是最新的,您可能需要更新。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句