I want to know how exactly or where and all Retreive/RetreiveMultiple Messages triggered in Pluign in Dynamics CRM
Loading
I want to know how exactly or where and all Retreive/RetreiveMultiple Messages triggered in Pluign in Dynamics CRM
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Naimish MakwanaRank #324 · 7.7K reputationPosted Jun 13, 2024, 12:43 AM EDT
In Dynamics CRM, the
RetrieveandRetrieveMultiplemessages are triggered in various scenarios:Retrieve Message: The
Retrievemessage is triggered when an entity form is opened or when an entity is being accessed using theRetrieveoperation in one of the service endpoints1. For example, when you open a record in the CRM, aRetrievemessage is triggered to fetch the data for that record1.RetrieveMultiple Message: The
RetrieveMultiplemessage is triggered due to various actions in the application and service endpoints, for example, when populating a grid in the user interface1. This could be when you’re viewing a list of records in a view, or when you’re running an Advanced Find query2.In terms of plugins, you can register a plugin on these messages. For instance, you can create a
RetrieveMultipleplugin that gets triggered when a retrieve multiple request is executed on an entity2. This can be useful if you want to manipulate the data that’s being retrieved or apply some custom business logic.However, it’s important to note that adding synchronous plugin logic to the
RetrieveandRetrieveMultiplemessage events can result in unresponsive model-driven apps or slow client interactions1. Therefore, it’s generally not recommended to register plugins for these messages due to the risks associated with slowing down the requests to return an entity record or records from various entry points1.Remember, any adjustments that you make in
Retrievewill be applied forRetrieveMultiple3. Also, not all entities supportRetrieveMultiple, and the plugin will fire even if there are no results returned from the query2.Thanks