Skip to content

Instantly share code, notes, and snippets.

@cdcarter
Created May 11, 2015 17:04
Show Gist options
  • Save cdcarter/7c966f96162ccdd4faf1 to your computer and use it in GitHub Desktop.
Save cdcarter/7c966f96162ccdd4faf1 to your computer and use it in GitHub Desktop.
Sharing Process
- set OWD to Public Read Only
- Created a new profile called "My Marketing Users" with full CRUD on Campaign
- Created a Role called "production" and a role called "Sales"
- Created two new users, "Blah" and "Haha", in the "My Marketing User" profile, marketing user checked, and one assigned to each role.
- Created a picklist on Campaign name "ROle Sharing Rule" with two types: Sales and Production
- Created a new sharing rule for campaign name "Role Share" based on criteria RoleSharingRule=Sales to give Sales Role full access.
- waitied for "done" email
- Created a new sharing rule for campaign name "Role Share2" based on criteria RoleSharingRule=Production to give Productiob Role full access.
- waitied for "done" email
- created a new campaign of sharing rule Production as sysadmin
- created a new campaign of sharing rule Sales as sysadmin
- Logged in as the user with Production role.
- Attempted to edit Production campaign .. SUCCESS
- Attempted to edit Sales campaign .. INSUFFICIENT PRIIVELEGES!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment