About this question
I want to upsert a Product record using Apex.
When I write:
Product pr = new Product();
It gives an error "Invalid Type: Product".
but when I write
Product2 pr = new Product2();
Then no error occurs. Can anyone please explain the reason behind this.