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
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
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
Thank you Guido Preite,
Can someone give me a source code to reuse please, Or the major steps to implement.
André Arnaud de Cal...
292,489
Super User 2025 Season 1
Martin Dráb
231,305
Most Valuable Professional
nmaenpaa
101,156