Dynamics CRM 2011 SDK remove attribute with dependencies

本小妞迷上赌 提交于 2020-01-15 03:32:09

问题


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. and finally DeleteAttributeRequest

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


回答1:


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.



来源:https://stackoverflow.com/questions/7926164/dynamics-crm-2011-sdk-remove-attribute-with-dependencies

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!