Newer Version Available
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.
1OrderOwnerSharingRule rule = new OrderOwnerSharingRule();
2rule.setName("RuleName"); // Set the sharing rule name
3rule.setDeveloperName("RuleDeveloperName"); // Set the sharing rule developer name
4rule.setGroupId("00Gx00000000000"); // Set the group of users to share records from
5rule.setUserOrGroupId("00Gx00000000001"); // Set the group of users to share records to
6rule.setOrderAccessLevel("Edit");
7connection.create(rule);