locked
Public view plugin message RRS feed

  • Question

  • Hi All,

    I'm trying to write plug-in which working on public view. When user choose called 'My View' from public view, I want to trigger my plug-in and intercept fetchXml in pre stage before return result to grid view. I tried to use RetrieveMultiple on Savedquery entity but it doesn't trigger my plug-in when I choose my view from public view dropdown list. I need your expert suggestion what kind of message can I use rather than Execute message? In Execute message, there is nothing particular to check that Execute message is triggering to retrieve my view and I can wrongly intercept other fetchXml.

    Friday, July 16, 2010 8:00 AM

Answers

  • The Execute message is the only message where you can modify the results of a Fetch. Unfortunately you don't get any information in the Execute message other than the FetchXml, so the only viable solution is to include something the in the 'My View' FetchXml that distinguishes it from other queries
    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    • Marked as answer by co coe Friday, July 16, 2010 9:09 AM
    Friday, July 16, 2010 8:28 AM
    Moderator

All replies

  • The Execute message is the only message where you can modify the results of a Fetch. Unfortunately you don't get any information in the Execute message other than the FetchXml, so the only viable solution is to include something the in the 'My View' FetchXml that distinguishes it from other queries
    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk
    • Marked as answer by co coe Friday, July 16, 2010 9:09 AM
    Friday, July 16, 2010 8:28 AM
    Moderator
  • Thanks for your information.
    Friday, July 16, 2010 9:09 AM