Skip to main content

Notifications

Dynamics 365 general forum
Unanswered

Include entity metadata in a solution programmatically

Posted on by 10

We use Dynamics CRM On-Premise and since I believe 9.0 we've had an issue around some native entities we renamed. The issue is if you export the unmanaged solution, it gets imported elsewhere, and exported again it removes the name changes. The solution to this is to go to the entity in the solution and add subcomponents->check the include entity metadata box. This is not remembered in the solution so we have to do it every time we setup a fresh dev org. We have a tool that runs some operations after the import and I was wondering if there's any C# code that would allow me to do it programmatically. All I've found was adding entities to solutions https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/261482/programmatically-add-existing-entities-to-a-solution-in-crm-online?pifragment-97030=1.  

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Include entity metadata in a solution programmatically

    Hi Sgamble2, 

    Maybe you can refer the following link:

    https://carldesouza.com/dynamics-365-get-entity-metadata-using-c/ 

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans