OrderOwnerSharingRule
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update(), upsert()
Fields
Field | Details |
---|---|
CreatedById |
|
CreatedDate |
|
Description |
|
DeveloperName |
|
GroupId |
|
Id |
|
LastModifiedById |
|
LastModifiedDate |
|
Name |
|
OrderAccessLevel |
|
SystemModstamp |
|
UserOrGroupId |
|
Usage
Use this object to manage the sharing rules for orders. For example, the following code creates an order owner sharing rule between two public groups, which can also contain portal users.
OrderOwnerSharingRule rule = new OrderOwnerSharingRule();
rule.setName("RuleName"); // Set the sharing rule name
rule.setDeveloperName("RuleDeveloperName"); // Set the sharing rule developer name
rule.setGroupId("00Gx00000000000"); // Set the group of users to share records from
rule.setUserOrGroupId("00Gx00000000001"); // Set the group of users to share records to
rule.setOrderAccessLevel("Edit");
connection.create(rule);