Skip to main content

Notifications

Announcements

No record found.

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

Removing a field from a form within a patch and deploying to target environment

Posted on by 20

I recently created a new patch where I removed a field from the main form of one of my custom entities. I didn't delete it from the entity because I want to retain any old data on the target environment, just removed it from the form. 

The patch was deployed onto another environment where the same field still existed on the form on the base solution. 

I expected the patch to update the same form on the target environment but it didn't, its still on the other form. What do I need to do in order to remove a field from a form on the target environment? 

  • Suggested answer
    RE: Removing a field from a form within a patch and deploying to target environment

    Hi Michael,

    Forms, Sitemaps and OptionSets as you know are a bit different when compared with the remaining CRM Components.

    When you have multiple definitions i.e. solution / patch layers for these components the system will merge the definition.

    This means that if you have a Solution 1 with Form A and Field X and a Solution 2 with Form A without Field X the result from this merge will still contain Field X since another layer has it.

    I would suggest checking if you have any other solution that contains the affected Form and if not follow up with a Solution Upgrade for that solution. Solution Upgrade will Rollup any Patches you might have and the final result should be the one brought by the latest Patch assuming there are no other layers for that form.

    Documentation:

    - docs.microsoft.com/.../understand-managed-solutions-merged

    - docs.microsoft.com/.../create-patches-simplify-solution-updates

  • Michael Kyle Profile Picture
    Michael Kyle 20 on at
    RE: Removing a field from a form within a patch and deploying to target environment

    Hi, neither of those solutions worked for me unfortunately. The field still exists on target form.

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Removing a field from a form within a patch and deploying to target environment

    Hi,

    Can you try increasing version number of the patch solution and deploy again.

    If this does not work, try creating normal solution instead of patch and add only form to that soluton then deploy.

    If found helpful, Please mark my answer verified.

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,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