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