function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Patrick C Mayer 91Patrick 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;
PrasanntaPrasannta (Salesforce Developers) 
Hi,

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.