I am trying to create a pushtopic to listen to the CaseComment object. Typed the following in the ApexExec:
PushTopic pushTopic = new PushTopic();
pushTopic.Name = 'CaseCommentTopic';
pushTopic.Query = 'SELECT Id FROM CaseComment';
pushTopic.ApiVersion = 36.0;
pushTopic.NotifyForOperationCreate = true;
pushTopic.NotifyForOperationUpdate = true;
pushTopic.NotifyForOperationUndelete = true;
pushTopic.NotifyForOperationDelete = true;
pushTopic.NotifyForFields = 'Referenced';
insert pushTopic;*
I get the below error:
"System.DmlException: Insert failed. First exception on row 0; first error: INVALID_FIELD, 'CaseComment' is not supported: [Query]"*
Can someone please help me understand why this error occurs