Skip to content

Instantly share code, notes, and snippets.

@capeterson
Created February 18, 2012 03:02
Show Gist options
  • Save capeterson/1857114 to your computer and use it in GitHub Desktop.
Save capeterson/1857114 to your computer and use it in GitHub Desktop.
PushTopic deactivate
String pushTopicId = '0IFD0000000008jOAA';
PushTopic pt = [SELECT Id FROM PushTopic WHERE Id = :pushTopicId];
pt.Id = pushTopicId;
pt.IsActive = false;
update(pt)
@capeterson
Copy link
Author

A corrected version of the "Deactivating a Push Topic" section of the streaming API docs for salesforce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment