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
Esha Sharma 3Esha Sharma 3 

Unable to query custom object

When I am trying to query custom Object, I am getting below error:

ERROR at Row:1:Column:16

sObject type 'RCA__C' 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.

Access Custom Object:

  qr = binding.query("SELECT ID from RCA__C limit 1");
 
Akhil AnilAkhil Anil
If your org has a namespace, then prepend that namespace to your object name like below.

Namespace__RCA__c.
Esha Sharma 3Esha Sharma 3
I am looking at workbench and I can see RCA__c custom object available to be used for RCA/Investigation. Where do I find equivalent namespace for it. The code was working file for standard objects (Cases) but not for any of the custom objects.
Akhil AnilAkhil Anil
Go To Custom object definition detail page and check what is the API name listed for that field there.