2

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?

Elo
  • 226
  • 5
  • 19

1 Answers1

1

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/

eyescream
  • 18,088
  • 2
  • 34
  • 46
  • Ok, thank you. I thought that [Product](https://pasteboard.co/JSoSlsq.png) is Product. I was wrong. Product, is Product2. :) – Elo Mar 13 '21 at 09:26
  • Schema Builder has setting somewhere to use API names for tables and fields instead of labels. There are few inconsistencies laying around, File is actually `ContentDocument` for example – eyescream Mar 13 '21 at 18:02