You need to sign in to do that
Don't have an account?
Patrick C Mayer 91
Create PushTopic Error
This gives me some type of error, but no message. How do I create a push topic?
PushTopic pushTopic = new PushTopic();
pushTopic.Name = 'IdleCasePushTopic';
pushTopic.Query = 'SELECT Id, Idle_Case_Hidden__c FROM Case';
pushTopic.ApiVersion = 30.0;
pushTopic.NotifyForOperationCreate = true;
pushTopic.NotifyForOperationUpdate = true;
pushTopic.NotifyForOperationUndelete = true;
pushTopic.NotifyForOperationDelete = true;
pushTopic.NotifyForFields = 'Referenced';
insert pushTopic;
PushTopic pushTopic = new PushTopic();
pushTopic.Name = 'IdleCasePushTopic';
pushTopic.Query = 'SELECT Id, Idle_Case_Hidden__c FROM Case';
pushTopic.ApiVersion = 30.0;
pushTopic.NotifyForOperationCreate = true;
pushTopic.NotifyForOperationUpdate = true;
pushTopic.NotifyForOperationUndelete = true;
pushTopic.NotifyForOperationDelete = true;
pushTopic.NotifyForFields = 'Referenced';
insert pushTopic;
Please refer to this link below-
http://stackoverflow.com/questions/17978904/why-does-salesforce-prevent-me-from-creating-a-push-topic-with-a-query-that-cont
Hope it helps.