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
aksoakso 

Cannot stream object 'Cases'

I'm getting this error message when I try to create a Stream Topic with a simple query:

 

SELECT CaseNumber, Owner, CreatedBy,Status, EngineeringReqNumber__c from Cases

 

Error Creating Push Topic:
sObject type 'Cases' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.

 

How do I know which obect supports streaming?  Is there a way to set the object to Streamable?  I can stream the Account object fine.  What's the difference between Account and Cases?



Best Answer chosen by Admin (Salesforce Developers) 
KevinG514KevinG514

I think it should be Case not Cases

All Answers

KevinG514KevinG514

I think it should be Case not Cases

This was selected as the best answer
VM_SFDCVM_SFDC

Yeah. Best way to verify if your PushTopic.query is valid or not is to run a SOQL query with the same string value. e.g. workbench or debugshell. PushTopic.query must be a well formed SOQL query for supported entities.

 

--Vinod.