Created
February 18, 2012 03:02
-
-
Save capeterson/1857114 to your computer and use it in GitHub Desktop.
PushTopic deactivate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String pushTopicId = '0IFD0000000008jOAA'; | |
PushTopic pt = [SELECT Id FROM PushTopic WHERE Id = :pushTopicId]; | |
pt.Id = pushTopicId; | |
pt.IsActive = false; | |
update(pt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A corrected version of the "Deactivating a Push Topic" section of the streaming API docs for salesforce.