Dynamics CRM 2011 SDK删除具有依赖项的属性 [英] Dynamics CRM 2011 SDK remove attribute with dependencies

查看:109
本文介绍了Dynamics CRM 2011 SDK删除具有依赖项的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在从SDK中删除具有依赖项的实体的属性时遇到了麻烦. 要删除属性,我需要:

I'm having troubles with removing the attribute of entity which have dependencies from SDK. To remove an attribute I need:

  1. RetrieveAttribute
  2. RetrieveDependenciesForDeleteRequest
  3. DeleteRelationshipRequest
  4. 最后是DeleteAttributeRequest

对于上述计划或示例代码的任何建议,我将不胜感激. 到目前为止,我在msdn上找不到示例.

I would be appreciated for any advise about the plan above or sample code. I couldn't find example at msdn so far.

推荐答案

因此,看来RetrieveDependenciesForDeleteRequest告诉您必须删除一个关系,然后才能删除该属性;而您正在这样做.

So it appears that the RetrieveDependenciesForDeleteRequest is telling you that you have to delete a relationship before you can delete the attribute; and you are doing so.

我希望这是一个查找属性?
在实体形式中可见吗?

I expect that this is a look-up attribute?
Is it visible in the entity form?

只要实体表单对此属性有依赖性,您将无法删除该属性.

You won't be able to delete the attribute as long as the entity form has a dependency on it.

这篇关于Dynamics CRM 2011 SDK删除具有依赖项的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆