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
vagishvagish 

issue in soql on managed package custom object

Hi all,

 

I am trying to shoot an soql on custom object, object has been deployed using managed package however I am getting following exception:

 

EXCEPTION_THROWN [1]|System.QueryException: sObject type 'pymt__PaymentX__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.

 

I am shooting soql from Developer console as below:

System.debug('---------'+[SELECT

Id,

pymt__Transaction_Type__c

    FROM

pymt__PaymentX__c

  ]);

Here pymt__ is a namespace prefix. I tried without prefix as well, that also didn't work.

 

Can anybody help me for this issue?

 

Thanks,

Vagish

Best Answer chosen by Admin (Salesforce Developers) 
vagishvagish

User should have license granted on that AppExchange managed package.

 

 

By clicking on the highlighted button, make sure you have access to this package.

 

Thanks,

Vagish