Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

How to restore the Plugin Steps and Images

Posted on by 3,355

Hello Experts,

we have a CRM solution that created using CRM Package. The Plugin assembly contains more than 70 plugins. So one of our developer while updating the plugin dll to test some functionality (in Dev environment), he accidentally unchecked all plugin and clicked Ok in Plugin registration tool. So all the steps and images got removed. Below are my questions.

1) Can we restore those plugin steps and images by redeploying the package from visual studio?

2) If we try to add the steps and images manually to the plugins now are they going to affect in our test/Prod environment as the steps Ids and image ids are now different.

Note: The crmregister file is still unchanged for now and the main assembly Id is same.

Please provide your valuable suggestion.

Thank you,

Saroj

*This post is locked for comments

  • Shemeliak Oleh Profile Picture
    Shemeliak Oleh 5 on at
    RE: How to restore the Plugin Steps and Images

    Hi Tony,

    How were you able to resolve the wiped steps issue?

  • Suggested answer
    Shahbaaz Ansari Profile Picture
    Shahbaaz Ansari 6,203 on at
    RE: How to restore the Plugin Steps and Images

    If its your development environment, you can also restore the last backup taken by system, if you have not done much development today.

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: How to restore the Plugin Steps and Images

    That is correct. You will have an issue re-import plugins and steps with new ids. You are technically going to have duplicate plugins/steps, with different ids, and the names of the plugins/steps will have some sort of id suffixed to the actual step names.

  • Saroj Das Profile Picture
    Saroj Das 3,355 on at
    RE: How to restore the Plugin Steps and Images

    Hi Anatoliy,

    Thank you for your reply. You are correct. There are no automatic OOB way to restore it rather manually adding the steps which is a complex and time consuming one. The question that I asked about Steps/Image Ids because we never go to each environments and add the steps/images for the plugin. Export and Import solution will do that.  The concern is that the artifacts are already in test/prod environment and if we import the solution to those environment with artifacts with different Ids may create issue. Though I am not sure on it.

    Thanks,

    Saroj

  • Verified answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: How to restore the Plugin Steps and Images

    If you are using CRM Package deployer, that should do exactly what you are looking for.

    The Plugins and Steps should be re-registered.

    Hope this helps.

  • Saroj Das Profile Picture
    Saroj Das 3,355 on at
    RE: How to restore the Plugin Steps and Images

    Hi Andrew,

    Thank you for your reply and time. We will try it and get back to you.

    Thank you,

    Saroj

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to restore the Plugin Steps and Images

    Saroj,

    We had the same problem where after updating CRMPlugins assembly, one of our developers only checked a particular plugin and wiped all the steps and images.

    1) I don't believe there's an OOB way to restore the plugin steps+images. You may have to write console app that recreates the steps and images, and possibly attributes if you're being very precise with your setup. BUT, there may be a tool. I just have not heard of it.

    2) Development ids won't affect staging/live. Let's say you create a plugin for opportunity update. You'll have to register it individually on all environments.

    Hope I understood your question correctly.

  • Verified answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: How to restore the Plugin Steps and Images

    Saroj,

    Deployment from VS should fix all your issues. crmregister file contains ids of steps/images.

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