+ Start a Discussion
JaanuJaanu 

How to view platform events in workbench ?

Hello! I have outbound platform event. When there is record created/edited in Salesforce .. I have trigger which will write the data into the Platform event. Somehow 3rd party is not getting the data. How do I see whether the data from Salesforce is going out or not ..  I am unable to see the data in platform event in workbench .. using the following query.. getting zero records...

/services/data/v44.0/query?q=SELECT+Id+,+EventType+,+LogDate+,+LogFileLength+,+LogFile+FROM+EventLogFile+WHERE+EventType+=+'ReportExport'
Best Answer chosen by Jaanu
Raj VakatiRaj Vakati
You have to subscribe to the platform events using the Subscribe to the Platform event Channel  like below

User-added image
https://salesforce.stackexchange.com/questions/208428/not-able-to-view-platform-events-on-workbench/215608
https://trailhead.salesforce.com/en/content/learn/modules/platform_events_basics/platform_events_subscribe
https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_subscribe.htm


 

All Answers

Raj VakatiRaj Vakati
You have to subscribe to the platform events using the Subscribe to the Platform event Channel  like below

User-added image
https://salesforce.stackexchange.com/questions/208428/not-able-to-view-platform-events-on-workbench/215608
https://trailhead.salesforce.com/en/content/learn/modules/platform_events_basics/platform_events_subscribe
https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_subscribe.htm


 
This was selected as the best answer
JaanuJaanu
Thanks Raj. When I subscribe to the event channel .. too many txns are coming and going .. but I want a log of single txn ..which I would like to see when the record is updated in Salesforce.. so, I want to make sure the data is written into the event.. from there .. 3rd party takes it ..
How do I get this pls ?
JaanuJaanu
Thanks Raj
mallika sethmallika seth
This issue is with summer 19 release it's working fine with trailhead sandbox which has spring19 release
vikas Bhardwaj 21vikas Bhardwaj 21
Hello Jaanu.. Were you able to get this issue sorted. I am also unable to see a  log that contains the payload node with all the fields of the platform event in the workbench for my sandbox. However, i can see these in the trailhead org.