Skip to main content

Creating your first monitoring job

How to use the setup process in Gearset for creating a job to monitor for Salesforce org limits and unhandled exception errors for Apex and Flows.

Stephen Chambers avatar
Written by Stephen Chambers
Updated over a week ago

Gearset's setup process configures Salesforce org limit monitoring and error monitoring for Apex and Flow in parallel under a single setup process as they use different mechanisms to monitor for limits or errors.
​
To create your job:

  1. Click Begin setup if you've not created a monitoring job previously, or go to the Actions menu dropdown and click on Add a new job if a member of your team has already created a monitoring job.

  2. Choose the Salesforce org that you wish to monitor for errors. (Note: whilst Sandbox orgs can be selected, once they are refreshed the change in Salesforce org id will stop the job from working.).

  3. Add a name for your monitoring job.

  4. If no notification address exists for Apex error emails we recommend entering an email address recipient. You can enter an address at another time if you wish.

  5. Click on Finish setup.

To set up error monitoring specifically, Gearset will perform a deployment to adjust the notification settings required in the org for monitoring the inbox address which is automatically generated by Gearset. (Note: the length of time a deployment can take is dependent on when Salesforce begins the deployment so times can vary).

The deployment will update two settings in your org:

  1. Under the Apex exception email it will add a Gearset generated email inbox to the External Email Addresses field.

  2. Change the existing User Who Last Modified the Process or Flow default value to the Apex Exception Email Recipients option under Process Automation Settings.

The monitoring for Salesforce org limit monitoring requires no additional setup processes as it uses the REST API to retrieve information about current org limits.

Note: if you have a change monitoring job set up for your org or compare your org with the Apex email notifications or Settings metadata types included you will see the specific items for these types indicated as changed items.

Did this answer your question?