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
Estevão Fernandes 5Estevão Fernandes 5 

Profile does not capture event in Flow Interview

A given profile is failing to capture a platform event in the paused flow interview. The Administrator succeeds. What permission would be needed?
AnudeepAnudeep (Salesforce Developers) 
Hi Estevão, 

Platform events are also sObjects so we need to verify if read permission exists to that sObject in the permission set for that profile.

Also, there are fields under 'Filter Platform Event Messages' screen as shown in link below. Field Level Security and Field Accesibility check is a good troubleshooting step

https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_subscribe_flow.htm

If you know the userId and recordId, you can use the following query to check if there is read access and extend it to the users profile if there isn't

SELECT RecordId, HasReadAccess, HasTransferAccess, MaxAccessLevel FROM UserRecordAccess WHERE UserId = [single ID] AND RecordId = [single ID] //or Record IN [list of IDs]

Anudeep
Estevão Fernandes 5Estevão Fernandes 5
Thanks for the answer!

I checked the permissions of the fields that are used in the flow pause, the profile has full access to the object's fields. It also has permission to the platform event object. I still haven't identified what it might be.