【问题标题】:Find relationship by id通过 id 查找关系
【发布时间】:2016-02-13 17:22:38
【问题描述】:

我正在尝试删除我的 CRM“PowerMailChimp”中的托管解决方案,但每当我尝试删除该解决方案时都会收到以下错误消息。

无法删除 id 为 56d0dec2-0061-e511-80e0-3863bb347ba8 的属性 因为与 id e7a8ac27-fc65-4a43-9f6d-1bc6645f7749 的关系 与此属性相关的存在和删除级联是 限制

我花了几个小时试图在我的 PowerMailChimp 解决方案中寻找这种关系,但我找不到它,我可能会错过它。

我的问题是,是否有某种方法可以查询 CRM 中的所有关系,以便能够知道具有此关系 ID 的相关实体?

【问题讨论】:

  • 你可以要求微软给你数据库备份,然后尝试在那里找到它。

标签: c# dynamics-crm dynamics-crm-online


【解决方案1】:

使用 SDK 获取与该 Id 的关系可能更快:

//Retrieve the One-to-many relationship using the MetadataId.
RetrieveRelationshipRequest retrieveOneToManyRequest =
                    new RetrieveRelationshipRequest { MetadataId = "the id above" };
RetrieveRelationshipResponse retrieveOneToManyResponse = (RetrieveRelationshipResponse)_serviceProxy.Execute(retrieveOneToManyRequest);

更多信息here

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-06
    • 2015-01-28
    • 2010-12-13
    • 1970-01-01
    相关资源
    最近更新 更多