Skip to content
Release 1 in development, 15 of 15 sprints done. Early access is open. 15 of 15 sprints done · Join early accessJoin early access
Guide

Set goals and business hours

Give each value a goal in business minutes, and give each queue its own business hours.

Salesforce admin About 10 minutes Since release 1

A goal says how long a record should stay in a value. Business hours say which minutes count. Both are set in Sojourn Settings, under Time, beside Alerts, which decides who hears about a Breach.

Set goals#

Open Goals. Choose the Tracked object and the Tracked field; the field starts on the object's status field. Each value of the field has a row, with Any value first:

  • Target, business minutes: how long an Interval in this value should last. Leave it blank for no goal.
  • Warn at, percent: the share of the goal, from 1 to 100, at which an Interval is flagged as a warning. Leave it blank for no warning. A Goal saved any other way, from a data load or the API, is refused outside 1 to 100 too.

On the status field, a closed value is marked closed and takes no goal. The closed values are the ones capture uses: the object's Closed values, or, for Case with none listed and Status as its status field, the statuses Case marks closed.

A value's own goal wins over Any value. Choose Save goals. New Intervals carry the goal; Intervals already open keep the one they started with. An Interval that runs past its goal is a Breach: the Live values job flags one that is still open, and a stay is flagged when it closes past its goal.

A warning is flagged the same way, earlier. When an Interval's business minutes reach the warn percent of its goal, Sojourn ticks Warning on the Interval and sets Warned At to the moment it got there: the time it entered the value plus that share of the goal, in its business hours. The Live values job flags an open Interval; a stay is flagged when it closes. A breached Interval is always a warning too. Once set, a flag keeps its time. A new Interval carries its warn threshold as Warn Minutes, beside Goal Minutes: the warn percent of the goal when the Interval started. Changing the goal or turning it off later changes neither the warning nor the Breach of an Interval already started. Reports on Intervals can filter on Warning, and the timeline names a warning in a stay's goal, as it names a breach.

The Breach alerts card has its own screen, Alerts, under Time. It is for every Tracked object: its switch, Also email when a stay closes past its goal, decides whether the breach alert email also goes for stays that closed late, or only while an Interval is still open (the default). See Email a breach alert.

Clearing a target turns the goal off. Goals are never deleted, so Intervals that point at one keep it.

Split goals by a second field#

A value can have a different goal for each value of one more field on the record: a Case in New might get 30 minutes at High priority and 4 hours at Low. The card Split goals by, below the goals, sets this for the Tracked field chosen above.

Under A goal for each value of, choose the field to split by, or None for no split. The list holds the object's picklist and checkbox fields you can read, other than the Tracked field itself; a checkbox splits into Checked and Not checked. Once the split is saved, the card shows a matrix:

  • A row for each value of the Tracked field, with Any value first. Closed values have no row, since they have no goal. Values that do not count are not offered, and a Tracked field that keeps only the change takes no goals.
  • A column for each value of the split field, then the Any column (for example Any priority). The Any column is the value's own goal, the same target as the Target, business minutes box above; changing one changes the other.
  • Each cell is a target in business minutes. Leave a cell blank for no goal. A cell has no Warn at of its own: it takes the Warn at of its value's row.

When an Interval starts, Sojourn reads the record's value of the split field and takes the most specific goal that is set, in this order:

  1. The value, with the record's split value (a cell).
  2. The value, with any split value (the Any column).
  3. Any value, with the record's split value.
  4. Any value, with any split value.

So a blank cell uses the Any column, and a record whose split field is blank takes the value's own goal. Choose Save goals to save the goals and the matrix together. As with every goal, the Interval keeps the goal it started with.

To split by a different field, choose it and then Save goals. The screen warns you first: the goals split by the old field turn off when you save. They are kept, not deleted, but no longer apply, and Intervals already started keep their goals. After the save, the matrix shows the new field's values, empty, ready for targets. Choosing None and saving turns the split off the same way, and the value goals above go on applying.

Give record types their business hours#

Open the object under Tracked objects and choose the Records tab. Business hours by record type lists each record type of the object; choose business hours for one, or leave it on Use the next rule, then choose Save. A record of that type uses those hours ahead of the queue's and the object's, so a Support record type can keep support hours whichever queue holds the record. An object with no record types shows no rows; set its hours under Business hours in Object settings on the same tab.

Give queues their business hours#

Open Business hours. The card at the top names the org default, the hours used when nothing more specific applies; change it on the Overview. The Queues table lists every queue with the objects it takes. Choose business hours for a queue, or leave it on Use the next rule, then choose Save.

For each Interval, Sojourn uses the first of these that is set. The card Which business hours an Interval uses, below the Queues table, lists the same order:

  1. The Tracked field's own business hours.
  2. A business hours field on the record, when the Tracked object names one.
  3. The record type's business hours, set on the object's Records tab.
  4. The queue's business hours, while a queue owns the record.
  5. The Tracked object's business hours.
  6. The Sojourn default on the Overview, then the org's default business hours.

Business hours Salesforce cannot use (deleted or inactive) fall back to calendar time, and Sojourn logs that once.

Changes apply to Intervals that start after you save.

You are done when

  • An Interval created after you save shows the goal on its record.
  • With split goals, an Interval for a record with a split value that has a cell carries that cell's target as its goal.
  • An Interval for a record of a record type with its own hours counts business minutes in those hours.
  • An Interval for a record owned by a mapped queue counts business minutes in that queue's hours.

Updated in release 1 This page changes in the same pull request as the feature it describes.