通过 id 查找关系
Find relationship by id
我正在尝试删除我的 CRM "PowerMailChimp" 中的托管解决方案,但每当我尝试删除该解决方案时都会收到以下错误。
Cannot delete Attribute with id 56d0dec2-0061-e511-80e0-3863bb347ba8
because a Relationship with id e7a8ac27-fc65-4a43-9f6d-1bc6645f7749
exists that relates to this Attribute and delete cascade is
restricted
我花了几个小时试图在我的 PowerMailChimp 解决方案中寻找这种关系,但我找不到它,我可能错过了它。
我的问题是,是否有某种方法可以查询 CRM 中的所有关系,以便能够知道具有此关系 ID 的相关实体?
使用 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
我正在尝试删除我的 CRM "PowerMailChimp" 中的托管解决方案,但每当我尝试删除该解决方案时都会收到以下错误。
Cannot delete Attribute with id 56d0dec2-0061-e511-80e0-3863bb347ba8 because a Relationship with id e7a8ac27-fc65-4a43-9f6d-1bc6645f7749 exists that relates to this Attribute and delete cascade is restricted
我花了几个小时试图在我的 PowerMailChimp 解决方案中寻找这种关系,但我找不到它,我可能错过了它。
我的问题是,是否有某种方法可以查询 CRM 中的所有关系,以便能够知道具有此关系 ID 的相关实体?
使用 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