Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Deletion of fields and workflows with dependencies through Powershell or C# code

Posted on by Microsoft Employee

Hi Team,

We are trying to Automate our minor release manual steps through PowerShell.

Need to automate the process of deletion of Fields and workflows with dependencies . will this be possible using C# or Powershell? Below are the steps and dependent components .

1. On Demand Workflow with dependencies on bpf.

2. Fields with dependencies on Forms, views, bpf , BR and many.

Manual Steps

Dependencies

Workflow with dependencies Deletion

-BPF

-Actions

Field Deletion

-Forms

-Views

-plugin Images

-Relationship

-Plugins Filtering Attributes

lookup

-Form navigation

-Ribbon

  • Ken Hubbard Profile Picture
    Ken Hubbard on at
    RE: Deletion of fields and workflows with dependencies through Powershell or C# code

    Thank you for using Dynamics Communities. 

    I do not believe that this is feasible through Powershell as there is a limited amount of commandlets available:

    https://docs.microsoft.com/en-us/powershell/module/microsoft.crm.powershell/?view=dynamics365ce-ps  (on premise only)

    C# seems like a more likely possibility as the following blog show examples of, but would require knowledge of how to utilize the Dynamics SDK to accomplish the tasks you mentioned. 

    https://www.dynamixacademy.com/connect-to-dynamics-365-using-c-console-application/

    https://www.ashishvishwakarma.com/Writing-Custom-Actions-C-Sharp-Code-Dynamics-365/

    That being stated, your request is more along the lines of consulting which would require quite a detailed response if it is found feasible. I will leave this thread for others to reply in case they have further insight. 

    Thank you,
    Ken Hubbard

    Dynamics Support

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans