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
Hi Tony,
How were you able to resolve the wiped steps issue?
If its your development environment, you can also restore the last backup taken by system, if you have not done much development today.
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.
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
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.
Hi Andrew,
Thank you for your reply and time. We will try it and get back to you.
Thank you,
Saroj
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.
Saroj,
Deployment from VS should fix all your issues. crmregister file contains ids of steps/images.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156