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
ReidCarlbergReidCarlberg 

Adding Records to the Opportunity Partner List via the API - Profile Permissions

Hi,

Just working on an S-Control that adds partner records to the opportunity.  When the running user is the System Administrator, everything works great.  When the running user is a standard user, it fails with an Invalid Type error.  It does this in JavaScript and in Java.  It turns out that checking the administrative privilege "View All Data" corrects this.

My original expectation was that there would be a fairly specific right I could enable other than View All Data that would let me handle this.  Is there?  Am I missing something?  This happens on a vanilla, out of the box Dev Org.  Any input would be great.

I've also execute  a describe global on the org when logged in as a user with a profile that fails and the Partner object is indeed invisible.  OpportunityPartner is visible and PartnerRole is visible.

Thanks!

Reid