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
goravsethgoravseth 

Streaming API when event does NOT occur

Can you create a push topic for the scenario where there is NO event within a certain timeframe (like last 8 hours).

 

Looking at this as an option to monitor for if our donation page goes down over the holidays - so no online donations for last 6 hours triggers an action.

 

Thanks!

Vinita_SFDCVinita_SFDC

Hello,

 

As per my understanding it is possible. You can query if the last modified date and time is more than 6hrs then push topic.

 

For code snippets refer following guide:

 

http://www.salesforce.com/us/developer/docs/api_streaming/api_streaming.pdf