Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Custom plugin crashes in Outlook CRM client

$
0
0

Hi everyone, 

I'm having an issue and really hope someone can help. I have a custom plugin registered against the lead entity on the RetieveMultiple event on the pre-process step. I'm using it to intercept a custom view in the leads screen, add a condition to it and return the results to the client. Everything works great from the browser, the user selects the view from the drop down, the plugin intercepts it, adds the condition and the user ends up seeing the right results. However, if the user requests the same query from outlook (clicks on say my special leads view), the plugin code breaks!

In the plugin code, I cast the desired object to a QueryExpression object, tinker with that object, etc...however, if the request comes from outlook, the cast FAILS! I debugged it to realize that outlook sends the request as a FetchXML object rather than a QueryExpression object

Anybody faced similar issues? Any help is much appreciated...

Tarik


Viewing all articles
Browse latest Browse all 82002

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>