Mark a Flow or Apex class as business critical in Observability, and then turn on a notification rule that alerts your team whenever one of them errors.
Before you start
You need an Observability monitoring job for your org, with error monitoring turned on. See the Observability quick start guide to create one.
To receive notifications, your team also needs at least one notification channel. See Adding Slack and MS Teams channels for alerting.
Mark a Flow or Apex class as business critical
The Business critical switch appears when you open an error from the Flow or Apex class. Use it in two places.
On the Insights page:
Click an error in the
Top errorstable to open the sidebar.Turn on the
Business criticalswitch below the name at the top of the sidebar.
On the Errors page:
Expand a Flow or Apex class, and then click one of its errors.
Turn on the
Business criticalswitch next to the name at the top of the error details.
The switch applies to the whole Flow or Apex class, not to the single error you opened. Every error from that Flow or Apex class, including future errors, counts as business critical. The setting applies to that monitoring job only.
To remove the mark, turn the switch off.
See who changed the setting
Gearset records each change in the Notes tab for the error. The entry shows who made the change and when, for example marked this Flow as business critical or unmarked this Apex class as business critical. Because the setting belongs to the Flow or Apex class, the same entries appear on every error from it.
Get notified about business critical errors
Gearset includes a notification rule called Business critical error. When the rule is on, Gearset sends a notification whenever an error occurs in a Flow or Apex class marked as business critical.
To set up the rule:
Open the notification rules for your monitoring job:
Click
Business critical error.Click
Edit rule.Under
Error type, chooseFlow errors,Apex errors, orApex and Flow errors.Under
Send notification to, choose a notification channel, or keep the job's default channel.Click
Save changes.Turn on
Enable notification.
The notification has the same content as other error notifications, and names the rule under Smart alert as Business critical error. Click View in Gearset in the notification to open the error.
When the rule sends a notification
The rule sends a notification for every error from a business critical Flow or Apex class. It has no threshold and no time frame. Mark only the Flows and Apex classes where you want a notification for every error.
The rule sends notifications only for errors in the
Activecategory. It skips errors that are snoozed or set toIgnore. A resolved or archived error returns toActivewhen it happens again, so the rule sends a notification for it.The rule sends notifications only for the error types you chose under
Error type.Other notification rules still apply. If an error matches several rules that send to the same channel, that channel gets one notification that lists each rule. Rules that send to different channels each send their own notification.
FAQs
Who can change the Business critical switch?
Anyone in your team who can view the monitoring job. To edit the notification rule, you need permission to edit the job. See Observability access & permissions.
Why am I not getting notifications for a Flow I marked as business critical?
Check that the Business critical error rule is on, and that Send notification to shows a working channel, either one you chose or the job's default. If the rule shows This notification has been disabled because no notification channel is configured. Select a notification channel to enable it., choose a channel and click Save changes. Also check that the rule's Error type includes the type of error, and that the error isn't snoozed or set to Ignore.
Why can't I turn on Enable notification?
The switch is unavailable in two cases:
The rule has no working notification channel. Click
Edit rule, choose one underSend notification to, and clickSave changes. If no channels are listed, add one to your team first.You don't have permission to edit the job.
Does marking a Flow as business critical change how Gearset groups or categorizes its errors?
No. Gearset only records the mark on the Flow or Apex class, and its errors then match the Business critical error rule.





