web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Alert an admin if data was exported to excel

(0) ShareShare
ReportReport
Posted on by 905

Hello,

Will it be possible to set an alert or trigger a workflow if a user tried to export data through Excel from CRM and notify the managers through email?

If it is not possible, can we restrict access to the export excel feature on the table level?

Please provide some examples of the possibilities.

Any help is highly appreciated.

Best regards,

EBMRay

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Isn't it easier to disallow users to export the data?

    pastedimage1665071103786v1.png

    There is a privilege for it.

    The only solution that I see is to develop a plugin that will handle "RetrieveMultiple" message, check the ParentContext's message, and if it is "ExportToExcel" - throw an exception.

  • EBMRay Profile Picture
    905 on at

    Hello a33ik ,

    It is easier by restricting users from Export to Excel, but that will prevent it from all tables.

    The plugin approach you suggested is the best one.

    Would you be able to give me a small example of where I can get started?

    Thank you Andrew!

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    You can start here - learn.microsoft.com/.../tutorial-write-plug-in

    Here is ParentContext property I mentioned - learn.microsoft.com/.../microsoft.xrm.sdk.ipluginexecutioncontext.parentcontext

    Here is MessageName property I mentioned - learn.microsoft.com/.../microsoft.xrm.sdk.iexecutioncontext.messagename

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    If my reply (or replies) answers your question take a minute and verify the answer. You can do it by clicking "Yes" at the top of the reply (or replies) under the label "Does this answer your question?"

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 65

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
Pallavi Phade Profile Picture

Pallavi Phade 24

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans