Newer Version Available
OpportunityShare
Supported Calls
describeSObjects(), create(), delete(), query(), retrieve(), update(), upsert()
Special Access Rules
As of Summer ’20 and later, only users with access to the Opportunity object can access this object.
Fields
The properties available for some fields depend on the
default organization-wide sharing settings. The properties listed are true for the
default settings of such fields.
| Field | Details |
|---|---|
| IsDeleted |
|
| OpportunityAccessLevel |
|
| OpportunityId |
|
| RowCause |
|
| UserOrGroupId |
|
Usage
This object allows you to determine which users and groups can view or edit opportunities owned by other users.
If you attempt to create a record that matches an existing record, any modified fields are updated, the system returns the existing record.
If an opportunity is shared in multiple ways with a user, you don’t always see multiple sharing
records. If a user has access to an opportunity for one or more of the following RowCause values,
the records in the OpportunityShare object are compressed into one record with the highest level
of access.
- Manual
- Owner