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
christopherchristopher 

Error Querying OpportunityPartner Object: Invalid Type: SObject Not Supported

Hello!
I have a scontrol that clones an Opportunity and all related lists, including the Partner Object.  Because the Partner object cannot be queried by standard users, I am querying the OpportunityPartner object, which is supposed to be accessible by all user profiles.

The error is 'Invalid_Type: sObject type 'OpportunityPartner' not supported.  I get this error with both a SysAdmin and Standard User profile.  If I switch back to queryiing the old 'Partner' object, it works, but only with a SysAdmin profile.

Any help is appreciated!
Chris
brainsharkbrainshark
I have the same issue. My "standard user" cannot access any objects via the partner API using the "describe" call.
The same code works fine for system admins.

Any help would be appreciated..