Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Detect external retrievemultiple

$
0
0

Hi,

One of our customers wants to avoid or at least detect when a certain entity's data is 'exported' to an external data storage.

So there are straight up 2 ways to do this, either via Excel Export or via OData/Soap/WebAPI.

In all cases it will trigger the RetrieveMultiple message where you can see which entities are involved.

I'm the first to say that you shouldn't mess with the RetrieveMultiple (performance reasons), but the customer does insist.

Detecting a Excel Export is quite easy given the fact that the plugin context's parent context is specified which tells you it's an excel export.

This allows us to make a plugin (with some other setup entity) that adds some more granularity on the export to excel functionality, defining which entities can't be exported by some people and add some logging on who exported what when.

However differentiation a regular retrievemultiple coming from the CRM Website with a call via OData/Soap/WebAPI is another matter.

I tried to find a difference between them by debugging in an On Prem version, but could't see any difference.

Just to be sure, I launched the same query via advanced find, soap endpoint and finally via the WebAPI.

Does any of you had to deal with such a requirement and knows how to see the difference?

Regards,

Sven Peeters


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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