- Create a Custom Field
- Navigate to Customization > Lists, Records, & Fields > Entity Fields > New
- Label = (Example: Private Customer)
- Type = Checkbox
- Store Value = checked
- Applies to = Customer
- Click View
- Create the workflow
- Navigate to Customization > Workflow > Workflows > New
- Set the following:
- Name = Restrict View
- Sub Types = Lead, Prospect, Customer
- Release Status = Released
- Keep Instance and History = Always
- Enable Logging = Checked
- Release Status = Released
- Keep Instance and History = Always
- Enable Logging = Checked
- Initiation = Event Based (check On Update or Update)
- Trigger Type = -All-
- Click the New State button
- Under the Actions tab, click on New Action button
- Select Return User Error from the list
- Trigger on = Before Record Load
- Parameters: Message = You cannot view this record
- Select Visual Builder
- Click the Icon with an arrow at right hand side
- Field = Private Customer
- Compare Type = Checked
- Click Add
- Field = Role
- Compare Type = Any of
- Selection = Administrator
- Click Add
- Click Save
- Navigate to Customization > Workflow > Workflows > New
- Click Save