Running Asynchronous Jobs in Delegated System Mode
To run a job in Delegated System Mode, you need to complete the following setups:
Configure Records in Foundations Configuration Items
Your administrator needs to set up the necessary records in Foundations Configuration Items. To do so:
- From Setup, navigate to Custom Metadata Types | Foundations Configuration Item.
- Click Manage Foundations Configuration Items.
- Identify which asynchronous jobs you want to run in delegated system mode.
- For each of the asynchronous jobs you have identified, perform steps 5 to 9.
- Click the label field of the Foundations Configuration Item that corresponds to the asynchronous job, for example, Engagement Timeline Analytics Dependency.
- Click Clone
- [Optional] In the Label field, change the name for the cloned record.
- Leave all fields at their default copied values.
- Select the Enable checkbox.
- Click Save.
For more information about the Foundations Configuration Items, see Foundations Configuration Item Custom Metadata Type Fields.
Configure the Delegated System User
In the Feature Console, you must enable the Configure the Delegated System User feature. This feature lets you specify the user context for your platform event Apex trigger.
For more information, see Configuring the Delegated System User.
SECTIONS