Created
May 23, 2020 10:23
-
-
Save SahSantoshh/db76b817ce869421650437193c6bd50e to your computer and use it in GitHub Desktop.
create_account_push_topic
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
def create_account_push_topic | |
account_topic = @client.create!('PushTopic', | |
ApiVersion: '48.0', | |
Name: ENV['ACCOUNT_PUSH_TOPIC_NAME'], | |
Description: 'all account records', | |
NotifyForOperations: 'All', | |
NotifyForFields: 'All', | |
Query: 'select Id, Name, Phone, Type, BillingStreet,BillingCity, BillingState, BillingPostalCode, BillingCountry, Ownerid, ParentId, IsDeleted from Account') | |
Logger.new(LOG_PATH).info('Account Push Topic Id: ' + account_topic) | |
nd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment