Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

How to get the context of the trigger of RetrieveMultiple plug-in.

Posted on by Microsoft Employee

As I'm correct requesting a View of records in a model driven app is actually an underlying RetrieveMultiple plug-in triggering with a certain query.

There's a certain scenario where it would be helpful to be able to get the GUID of the record which actually is the initial trigger of the RetrieveMultiple plug-in.

Example:

Main form of Entity A contains a subgrid of Entity B records. (in my scenario Entity B is a virtual entity).

When the users opens the Main Form of Entity A, this results in the RetrieveMultiple plug-in for Entity B triggering because the subgrid records have to be loaded.

I'm asking this particular question as I'm providing the RetrieveMultiple plug-in for Entity B myself and it would be a massive help if I could work with the GUID of the Entity A record.

As far as I can see while debugging my current RetrieveMultiple plug-in, I can't find any reference to the 'Entity A record'.

Looking forward to any insights!

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: How to get the context of the trigger of RetrieveMultiple plug-in.

    Hello,

    Actually, it's available inside the QueryExpression that is passed into the plugin and you will have to extract it - just go through conditions and get it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans