Quantcast
Viewing all articles
Browse latest Browse all 10280

How to get related entity records without querying the MS CRM DB multiple times?

I have a custom entity and a related entity. The relationship is set as 1 : many.

The related entity has a number of records under it.

Whenever  I update any field in the primary entity, this will trigger my custom plugin, and from the IPluginExecutionContext I will get the primary entity object.

My Question is :

From the execution context I need to get related entity records without hitting the DB again. Means Idon’t want to use QuerryExpression / FetchXml etc. 

What are the possible ways we can achieve this?


Viewing all articles
Browse latest Browse all 10280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>