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

Plugin on retrieve multiple message for view filtering not working in outlook client crm 2011

$
0
0

I developed a plugin on retrievemultiple for some entities. 

It works well in website advanced find and view, it also works in outlook advanced find, but it's not working in outlook view.

if (context.InputParameters.Contains("Query") && context.InputParameters["Query"] is QueryExpression)
{
    // Get the query
    QueryExpression query = (QueryExpression)context.InputParameters["Query"];
    RetrieveEntityRequest req = new RetrieveEntityRequest
    {
        EntityFilters = EntityFilters.Attributes,
        LogicalName = query.EntityName,
    };
    RetrieveEntityResponse res = (RetrieveEntityResponse)service.Execute(req);
    this.currentEntity = res.EntityMetadata;
    FindCond(query.Criteria);//changing logic here
}

In addition, if I don't use "context.InputParameters["Query"] is QueryExpression", there will pop up an error window "There was an error displaying in this view" when it comes to Outlook View. And there is no issue in Outlook Advanced Find, Website Advanced Find and Website View.

Thank you,

Kei


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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