4

So as part of the Salesforce Shield release there is a new Salesforce Settings page at "Platform Tools" > "Events" > "Event Manager".

enter image description here

As seen in the image above, the Settings page contains a Grid listing various Real Time Event Monitoring Events. Each "Event" has a "Streaming Data" option. Is there way for me to programmatically check if "Streaming Data" is enabled for a specific "Event"?

== Adding response for the first Answer ==

Hi John, thanks for the answer!

Unfortunately the suggested SOQL query did not return results when first run through the Workbench.

enter image description here

To follow up I created a custom PushTopic and ran the query again. This time it returned one result - the custom PushTopic I had just finished creating.

enter image description here

Possibly there is a setting that is keeping the “Event Manager Events” from showing up in the PushTopic SOQL query, but right now I am under the impression that the “Event Manager Events” are different than regular Push Topics.

Thanks! any other suggestions?

0

You should be able to run a SOQL query against the PushTopic sObject like the one below.

SELECT Description,IsActive,Name,Query FROM PushTopic

There's additional fields, but it's the Name field that corresponds to Channel. Here's the reference page in Salesforce Help. It's not exactly an API resource, but with a few lines of Apex you should be able to programmatically check if "Streaming Data" is enabled for a particular "Event".

Why don't you try in this in the Dev Console or Workbench in your Org and see if the results correspond with your screenshot above?

|improve this answer|||||
  • Hey thanks for the answer! Unfortunately the suggested SOQL query did not return results when first run through the Workbench. imgur.com/o0kN092 To follow up I created a custom PushTopic and ran the query again. This time it returned one result - the custom PushTopic I had just finished creating. imgur.com/Txjnkp7 Maybe there is a setting that is keeping the “Event Manager Events” from showing up in the PushTopic SOQL query, but right now I am under the impression that the “Event Manager Events” are different than regular Push Topics. Thanks! any other tips? – dev201912120947 Dec 16 '19 at 16:00
0

Unfortunately, as of 17 Dec 2019 this capability is not supported by Salesforce. However it is on their road map.

src: https://success.salesforce.com/0D53A00004ilJqt

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.