Search code examples
salesforcesoql

Salesforce, SOQL, Developer Console, sObject is not supported


In Developer Console in SOQL I try to select Product, but that is not possible.

SELECT Id FROM Product

Error: "sObject type 'Product' is not supported." image

I found this advice: "There is a checkbox 'Use tooling API' at the bottom of the screen. Uncheck it if it is checked and try." from here But, it didn't help. Any idea?


Solution

  • The actual object's name is Product2.

    As of API version 8.0, the Product object is no longer available. Requests that contain Product are refused, and responses don’t contain the Product object.

    Here's the Entity Relationship Diagram: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_erd_products.htm

    API v8 would be ancient history, 14 years ago ;) https://gs0.salesforce.com/services/data/