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
Tyler D.ax299Tyler D.ax299 

INVALID_TYPE: sObject 'QuoteLineItem' is not supported.

I have developed a custom button that executes JavaScript that queries the QuoteLineItem standard object.   This custom button has been included in a managed package, and distributed to a client.  The client reports that the custom button is throwing an "INVALID_TYPE: sObject 'QuoteLineItem' is not supported." error message.  Any idea why this error occurs?  They have enabled quotes and it does not occur on several other SFDC accounts.

 

Thank you.

SFFSFF

The only way they would get that error message is if Quotes are not enabled - possibly they are enabled in sandbox but not in production?