Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Delete Field dependencies using C# or Powershell

Posted on by Microsoft Employee

Hi All,

could this is possible to delete all the dependencies of field using  C# or Powershell. if this is possible then how it is possible.

  • Suggested answer
    v-ancos Profile Picture
    v-ancos on at
    RE: Delete Field dependencies using C# or Powershell

    Hello

    Not really, we were able to return the dependencies via SDK but deleting them is complicated.

    Imagine that we are talking about a View or a Form that uses a Field X. It would have to go to FetchXML / FormXML to delete the reference to that field and it would not be simple because each component has its settings.

    As mentioned before, you can see information here

    docs.microsoft.com/.../dependency-tracking-solution-components

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Delete Field dependencies using C# or Powershell

    First of all, you need to retrieve dependencies and delete it one by one.

    You can take help from the below post.

    docs.microsoft.com/.../dependency

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans