Newer Version Available

This content describes an older version of this product. View Latest

EARightsAccess Class

Use the EARightsAccess class to access EARights the application uses.

You can’t add new instances of this class. However, you can modify the existing instances to change EARights of the existing elements.

Each EARightsAccess instance provides these properties:

  • Name: String (name of the right)
  • Type: String (category of the right)
  • Visible: Boolean (indicates whether the referenced item is visible)
  • Editable: Boolean (indicates whether the referenced item is editable)

Namespace

Example Implementation

Supported Methods

forRecordType

Set EARights for different record types of the Promotion and Tactic sObject by calling the forRecordType method on an EARightsAccess instance. This method returns a new EARightsAccess instance where you can set specific visibility and editability permissions for the record type ID of a record.

Example

Here’s an example that shows how to disable the compensation model and SPC card for a specific tactic record type ID: