Alexei P
Alexei P

Reputation: 63

MS CRM Plugin at Report execution

Is there a way to trigger plugin when someone run report? Would be great to get the name of the report executed.

Thanks!

Upvotes: 1

Views: 621

Answers (2)

Nicknow
Nicknow

Reputation: 7234

There is no clean easy way but it is certainly possible:

  1. Create a Dummy entity (new_dummy) with just a primary attribute (new_name)
  2. Add a dataset to any reports you want to track that does a query for new_dummy where new_dummy.new_name = ReportName
  3. Create a RetrieveMultiple plugin that looks for new_dummy queries and retrieve the new_name value from the query. How you store this information is your choice.
  4. Now you have a plug-in that is triggered on each report execution and has the name of the report.

Upvotes: 7

Andrew Butenko
Andrew Butenko

Reputation: 5456

Unfortunately there is no way of doing that.

Upvotes: 1

Related Questions