Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Unregister plugin from c# winform application

(0) ShareShare
ReportReport
Posted on by 220

Hi,

I want to unregister a crm 2011 plugin programmatically from  a c# winform application.

Is not posssible please ? How can I implement it ?

Thank you.

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unregister plugin from c# winform application
    Hi

    Please find below two fetch Xml queries. You need to replace the <Your Search Text> with your search criteria.

    First query will return all plugin steps that is registered.
    Second query will return all sdk message processing steps.

    You need to delete all sdk steps for each plugin-types.

    <?xml version="1.0"?> <fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0"> <entity name="plugintype"> <attribute name="plugintypeid"/> <attribute name="friendlyname"/> <attribute name="version"/> <attribute name="typename"/> <attribute name="pluginassemblyid"/> <attribute name="isworkflowactivity"/> <attribute name="assemblyname"/> <order descending="false" attribute="friendlyname"/> <filter type="and"> <condition attribute="assemblyname" value="%<Your Search Text>%" operator="like"/> </filter> </entity> </fetch> <?xml version="1.0"?> <fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0"> <entity name="sdkmessageprocessingstep"> <attribute name="name"/> <attribute name="description"/> <attribute name="eventhandler"/> <attribute name="impersonatinguserid"/> <attribute name="supporteddeployment"/> <attribute name="statuscode"/> <attribute name="statecode"/> <attribute name="sdkmessagefilterid"/> <attribute name="sdkmessageid"/> <attribute name="filteringattributes"/> <attribute name="configuration"/> <attribute name="asyncautodelete"/> <filter type="and"> <condition value="<Your Search Text>%" operator="like" attribute="eventhandlername"/> </filter> <link-entity name="sdkmessagefilter" alias="a1" link-type="outer" visible="false" to="sdkmessagefilterid" from="sdkmessagefilterid"> <attribute name="secondaryobjecttypecode"/> <attribute name="primaryobjecttypecode"/> </link-entity> </entity> </fetch>

    Regards,

    Charmis

  • MounirMaghraoui Profile Picture
    MounirMaghraoui 220 on at
    RE: Unregister plugin from c# winform application

    Thank you Guido Preite,

    Can someone give me a source code to reuse please, Or the major steps to implement.

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans