Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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