Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Decompile the plugin code Dynamics CRM Online

Posted on by Microsoft Employee

Hi Guys,

We need to edit a plugin developed by one of the developer who left the company and we dont have the source code for it. I am researching on it and found the below link:

https://crmbusiness.wordpress.com/2015/08/13/crm-2015-how-to-decompile-plugin-code/

I connected to our organization and opened "Assembly Recovery Tool", but the assembly we are looking for is not listed there, but I can see it in plugin registration tool. Any ideas on what might be the issue?

Thanks in advance

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Decompile the plugin code Dynamics CRM Online

    Worked. Thanks Guys !!

  • Suggested answer
    Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Decompile the plugin code Dynamics CRM Online

    Since you are using CRM Online, the plugin is registered at the database level.

    Do you have the solution files, that were used to upload that plugin to the Online environment (whether managed or unmanaged)? If you do, extract the solution, and you will be able to find the Plugin under the Plugins folder.

    If you don't have the solution, try exporting the existing solution that you have deployed. If the solution cannot be exported, create a new solution, and add all the components to it, and see if you can export it that way.

    You should be able to use refractor (by Telerik), to decompile your plugin code.

    Hope this helps.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Decompile the plugin code Dynamics CRM Online

    Hi jogendar

    please proceed as follows:

    • create a new solution
    • include the plugin assembly
    • export the solution
    • unzip it
    • open the PluginAssemblies folder
    • open the first folder
    • you have found the assembly :-) 
    • search on google for dotPeek (free decompiler)
    • download and install it
    • decompile your assembly

    Please let us know

    If you found the answer helpful, please mark as Verified 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • Verified answer
    RE: Decompile the plugin code Dynamics CRM Online

    Hi Jogendar,

    Can you go to the solution > components > plug-in assemblies > Add Existing > the plug-in you're trying to decompile? (Edit: You might need to change your instance to sandbox mode, if it's only seen in the sandbox).

    Once you do that, you can export your solution as an unmanaged solution, which will make it a zip file on your computer.

    Once the zip file is created, there should be a Plugin Assemblies folder, and the assembly should be there.

    Good luck!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Decompile the plugin code Dynamics CRM Online

    Both are deployed in "Sandbox" isolation and stored in "Database"

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans