Created
November 28, 2017 12:15
-
-
Save shrutis22/b780ca90541776d710ef7425cb01b2b5 to your computer and use it in GitHub Desktop.
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
PushTopic pt = new PushTopic(); | |
pt.Name = 'Announcements'; | |
pt.Query = 'SELECT Id, Name, Details__c FROM Announcement__c'; | |
pt.ApiVersion = 41.0; | |
pt.NotifyForOperationCreate = true; | |
pt.NotifyForOperationUpdate = true; | |
pt.NotifyForFields = 'Referenced'; | |
INSERT pt; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment