I’m having troubles with removing the attribute of entity which have dependencies from SDK.
To remove an attribute I need:
- RetrieveAttribute
- RetrieveDependenciesForDeleteRequest
- DeleteRelationshipRequest
- 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.
So it appears that the
RetrieveDependenciesForDeleteRequestis 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.