function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Peter Martensen 8Peter Martensen 8 

Near real time notifications for Report Events

Hi everyone,
I've purchased the Event Monitoring subscription.  I would like to get a notification in near real time whenever some runs and/or exports a report.  I've found many articles in the Developer section about Streaming API, but it's really confusing to me.  Does anyone know if there is a (relatively) simple way to just get a chatter notification if a report is run or exported?  I can't find the Event subscription channel, /event/ReportEventStream, in Flow.  I have enabled Real Time Event Monitoring in my Profile.
Thanks
AbhishekAbhishek (Salesforce Developers) 
https://salesforce.stackexchange.com/questions/171780/email-alert-when-someone-runs-a-report

This might answer your query.


For further reference check the below too,
https://help.salesforce.com/articleView?id=sf.reports_notifications_home.htm&type=5

https://help.salesforce.com/articleView?id=sf.reports_subscribe_overview.htm&type=5


If it answers your query mark this as the best answer.
AnudeepAnudeep (Salesforce Developers) 
Hi Peter,

Have you tried considering Report EventType instead? 

Report events contain information about what happened when a user ran a report. This event type includes all activity that's in the Report Export event type, plus more. For example, it has user activity for reports exported as both Formatted Report and Details Only output.
 
/services/data/v40.0/query?q=SELECT+Id+,+EventType+,+LogFile+,+LogDate+,+LogFileLength+FROM+EventLogFile+WHERE+
    LogDate+>+Yesterday+AND+EventType+=+'Report'

(Please change API version to current)

Let me know if this helps
Peter Martensen 8Peter Martensen 8
Hi Anudeep,
How do I do that?  Through the developer console?

I was told about Transactional Security Policies and was able to get the notifications I want that way.
Thanks,
Peter
AnudeepAnudeep (Salesforce Developers) 
Hi Peter, 

You can use ReportEvent in a transaction security policy. This event tracks when reports are run in your org which is your requirement

Please see section Standard SOQL Usage in the documentation to learn how to execute these queries in the developer console

Let me know if this helps, if it does, please mark this answer as best so that others facing the same issue will find this information useful. Thank you
Peter Martensen 8Peter Martensen 8
Hi Anudeep,
Ok.  Yes, I already found the Transaction Security Policies.
Peter