CRM 2011 - Intercepting the Quick search, Fetch xml and query expression don't return the same things?

ぐ巨炮叔叔 提交于 2019-12-03 08:51:29

You are adding the modified query to the OutputParameters collection. This is not correct; the CRM event pipeline does not expect Query parameters to be in this collection and therefore ignores it. This is why you do not see the desired resultset.

You must replace the existing Query parameter in the InputParameters collection with the one you modified.

In your code you are trying to update OutputParameters at Pre stage plug in. According to documentation it could have no effect and could be overwritten during platform core operation stage. IPluginExecutionContext.OutputParameters Property

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!