Goal
The Goal object sets how long a record should stay in one value of a tracked field, as a child of Tracked Object. It holds the Value, Target Business Minutes (required), Warn At Percent, an optional Tracked Field, and an Active switch. Intervals that pass the target are flagged as breached. Commonly used for status and stage service targets.
API name: Goal__c
| Field | API name | Type | Description |
|---|---|---|---|
| Active | Is_Active__c |
Checkbox | Whether this Goal is applied to new Intervals. A checkbox, on by default. Only active Goals are loaded with the configuration, so an inactive Goal is not stamped on Intervals that open afterwards and no longer counts for Live values. Intervals already stamped keep their Goal Minutes and Warn Minutes, so their Breach and warning flags still follow the old target. Set on the Goals screen of Sojourn Settings, or by a settings file import. Help text: Inactive Goals are kept for history but not applied to new stays. Stays that already have the Goal keep it. |
| Split Value | Split_Value__c |
Text (255) | The value of the Tracked field's Goal Split Field that this Goal is for, for example High when the split field is Priority. Blank, the default, means any value of the split field: the fallback when no Goal names the record's split value. Goals stay unique on Tracked field, value, and split value. For a checkbox split field the value is true or false. Read when an Interval opens, where the most specific Goal wins: the value with this split value first, then the value with any split value, then Any value with this split value, then Any value with any split value. A Goal with a split value takes the Warn At Percent of its value's Goal with a blank split value when that Goal exists. Applies only while the Tracked field names a Goal Split Field. Set on the Goals screen of Sojourn Settings. Help text: The split field value this Goal applies to, such as High. Leave blank for any value; a Goal for the record's own split value is chosen first. |
| Target Business Minutes | Target_Business_Minutes__c |
Number (16, 2) | How many business minutes an Interval in this Goal's value may last before it is a Breach. Required; a number of minutes with two decimal places, 0 or more. Copied onto each matching Interval as Goal Minutes when the Interval opens, so changing it applies only to Intervals that open afterwards. Live values flags an open Interval as breached once its business minutes pass it, and the close flags one that ran past it. Set on the Goals screen of Sojourn Settings, where a blank target means no Goal, or by a settings file import. Help text: A stay in this value should end within this many business minutes; past it, the stay is a Breach. Changing it applies to stays that begin afterwards. |
| Tracked Field | Tracked_Field__c |
Lookup (Tracked_Field__c) | The Tracked field whose values this Goal measures, for example Priority. Blank: the Goal applies to the Tracked object's status field. Read when each Interval opens to find its Goal: the Goal applies only to Intervals of this field. Owner fields take no Goals. Deleting the Tracked field clears this lookup, which moves the Goal to the status field. Set on the Goals screen of Sojourn Settings, or by a settings file import, which names the field. Help text: The Tracked field this Goal applies to, for example Status. Leave blank for the object's status field. |
| Tracked Object | Tracked_Object__c |
Master-detail (Tracked_Object__c) | The Tracked object this Goal belongs to, as the master record: deleting the Tracked object deletes its Goals. Required. Its active Goals load with its configuration, and its business hours decide how business minutes are counted against the target. Set on the Goals screen of Sojourn Settings, or by a settings file import. Help text: The Tracked object this Goal applies to. Set by Sojourn Settings. |
| Value | Value__c |
Text (255) | The field value the Goal applies to, as Sojourn records it in an Interval's To Value (the API value of a picklist), for example Working; or an asterisk () for any value. Required. When an Interval opens, a Goal for its exact value wins over a * Goal of the same field. Matched without regard to case. Set on the Goals screen of Sojourn Settings, which shows * as Any value, or by a settings file import. Help text:* The status or stage value, for example Working, or * for any value. A Goal for the exact value wins over a * Goal. |
| Warn At Percent | Warn_At_Percent__c |
Number (3, 0) | The share of the target, in percent, at which Sojourn flags an Interval as a warning before it breaches. A whole number from 1 to 100, enforced by a validation rule; blank: no warning. Copied onto each matching Interval as Warn Minutes when the Interval opens (the target times this percent); Live values and the close set Interval Warning and Warned At when its business minutes reach them. A breached Interval is always a warning too. Set on the Goals screen of Sojourn Settings, or by a settings file import. Help text: Flag a stay as a warning when its business minutes reach this percentage of the target, 1 to 100. Leave blank for no warning. |