Interval
The Interval object records one stay of one record in one value of one tracked field, such as a Case in status Working or with owner Priya. It holds the Parent Id, Tracked Field, From and To Values, Entered At and Exited At, and calendar and business minutes; the open interval has no Exited At. Commonly used for time in status and time per owner reports.
API name: Interval__c
| Field | API name | Type | Description |
|---|---|---|---|
| Breached At | Breached_At__c |
DateTime | When this Interval passed its Goal: Entered At plus Goal Minutes, counted in the Interval's business hours, so it is the moment the goal ran out, not the moment Sojourn noticed. Set together with Breached, by a Live values run on an open Interval or by the close on a closed one, and kept once set. Blank while the Interval is within its goal, or when it has no Goal. Reports read it to show when stays broke their goal. Help text: The moment this stay went past its goal, worked out from when the stay began and the goal's business minutes. Sojourn sets it; blank while the stay is within its goal. |
| Business Days (8 h) | Business_Days__c |
Formula (Number) | Business Minutes divided by 480: days of eight business hours, whatever the business hours behind the Interval. A formula to two decimals; 0 while the Interval is open, since Business Minutes is set at the close. For other day lengths, divide Business Minutes in a report formula. Help text: Business minutes as days of eight hours. If your business day is longer or shorter, use Business Minutes instead. |
| Business Hours Display | Business_Hours_Display__c |
Formula (Text) | Business Minutes as text in hours and minutes, for example 34h 15m: a formula of the whole hours and the minutes left over (part minutes show as decimals, such as 34h 15.5m). Blank while the Interval is open, since Business Minutes is set at the close. For reading on a record page or in a report; text cannot be summed, so total Business Minutes instead. Help text: How long this stay lasted in business hours, written as hours and minutes, for example 34h 15m. Blank while the stay is open. |
| Business Hours Id | Business_Hours_Id__c |
Text (18) | The 18-character Id of the Business hours record this Interval's business minutes were counted in. Sojourn takes the first that applies: the Tracked field's business hours, the business hours on the record (the Tracked object's Business Hours Source Field), the queue that owned the record (Queue Business Hours), the Tracked object's business hours, the Sojourn default, then the org default. Set at the close and refreshed by each Live values run while the Interval is open; blank on an open Interval that Live values has not reached. Kept so the minutes can be checked or worked out again; the timeline and Sojourn Dashboards read it to name the hours. Help text: The business hours this stay was measured in. Sojourn picks them from the Tracked field, the record, its queue, the Tracked object, or the default, in that order. |
| Business Minutes To Date | Business_Minutes_To_Date__c |
Number (16, 2) | Business minutes this Interval has lasted so far, in its business hours, to two decimals. On an open Interval each Live values run writes it, when the Live values job covers the object (Live values on, or Goals to flag) and the Interval began inside the Live values window; otherwise it stays blank or keeps its last value. At the close it is set equal to Business Minutes. Reports of open stays, such as Longest Open Intervals, sort on it. Help text: Business minutes so far for an open stay, refreshed each time the Live values job runs; the same as Business Minutes once the stay closes. Blank or out of date when the Live values job does not cover the object. |
| Business Minutes | Business_Minutes__c |
Number (16, 2) | Minutes between Entered At and Exited At that fall inside the Interval's business hours (Business Hours Id), to two decimals. Set when the Interval closes; blank while it is open. When those business hours cannot be used (deleted or inactive), calendar minutes are recorded instead. Breach, the Case figures, Interval Summaries, and reports all count this value. Help text: How long this stay lasted inside business hours. Sojourn sets it when the stay closes; blank while open. Use it for totals and averages. |
| Calendar Days | Calendar_Days__c |
Formula (Number) | Calendar Minutes divided by 1,440: the stay's time on the clock as 24-hour days, nights and weekends included. A formula to two decimals; 0 while the Interval is open, since Calendar Minutes is set at the close. Help text: How long this stay lasted on the clock, in 24-hour days. 0 while the stay is open. |
| Calendar Minutes To Date | Calendar_Minutes_To_Date__c |
Formula (Number) | Calendar minutes so far: on an open Interval, the minutes from Entered At to now, worked out each time the field is read; on a closed one, Calendar Minutes. A formula to two decimals, so it is always current and needs no job. Reports of open stays read it for their age on the clock. Help text: How long this stay has lasted on the clock: up to now while it is open, the final minutes once it closes. |
| Calendar Minutes | Calendar_Minutes__c |
Number (16, 2) | Minutes on the clock between Entered At and Exited At, nights and weekends included, to two decimals. Set when the Interval closes; blank while it is open. Calendar Days and Elapsed Calendar Hours are formulas on it, and Interval Summaries count it beside Business Minutes. Help text: How long this stay lasted on the clock. Sojourn sets it when the stay closes; blank while open. |
| Case Origin | Case_Origin__c |
Text (255) | The Case's Origin (its API value, as text) copied when the Interval opened, so time can be reported by channel as it was then. Filled only on Intervals of Cases; a later edit to the Case does not change it. Blank when the Case had no Origin. Help text: The Case's origin when this stay began, for example Email or Phone. Group a report by it to compare time by channel. |
| Case Priority | Case_Priority__c |
Text (255) | The Case's Priority (its API value, as text) copied when the Interval opened, so time can be reported by priority as it was then. Filled only on Intervals of Cases; a later edit to the Case does not change it. Blank when the Case had no Priority. Help text: The Case's priority when this stay began, for example High. Group a report by it to compare time by priority. |
| Case Type | Case_Type__c |
Text (255) | The Case's Type (its API value, as text) copied when the Interval opened, so time can be reported by case type as it was then. Filled only on Intervals of Cases; a later edit to the Case does not change it. Blank when the Case had no Type. Help text: The Case's type when this stay began. Group a report by it to compare time by case type. |
| Case | Case__c |
Lookup (Case) | Lookup to the Case when the Tracked object is Case, filled from Parent Id when the Interval is written, so the Cases with Intervals report type and the Intervals related list on the Case work. Blank for other objects, or when the Tracked object's Lookup Field Override names another lookup to Case. Cleared if the Case is deleted; Parent Id keeps the Id. Help text: The Case this stay belongs to. Sojourn fills it on Case Intervals; it drives the Intervals related list on the Case and the Cases with Intervals reports. |
| Changed By | Changed_By__c |
Lookup (User) | Who made the change that started this Interval. For an Interval a job wrote (Reconcile, Catch up, backfill, or a repair), the user who ran or scheduled that job, not the person who changed the record; Source tells which. Help text: The user whose save started this Interval. When Source is Reconcile, Catch-Up, Backfill, or Manual-Repair, it is the user who ran or scheduled that job. |
| Closed at Deletion | Closed_At_Deletion__c |
Checkbox | Checked by the nightly Reconcile on an Interval it closed because its record was deleted. When the record comes back from the Recycle Bin, only these Intervals open again and the check is cleared; an Interval that ended before the deletion stays ended. Unchecked on every other Interval. The Summaries job leaves a checked Interval out until the Recycle Bin's 15 days have passed, so a restored record's stay is counted once, at its real close. Help text: Checked when this Interval was ended only because its record was deleted. If the record is restored from the Recycle Bin, this Interval opens again. |
| Elapsed Business Hours | Elapsed_Business_Hours__c |
Formula (Number) | Time the Interval took in business hours: Business Minutes divided by 60, a formula to two decimals; 0 while the Interval is open. A duration, not the Business hours schedule; Business Hours Id names the schedule used. Help text: Elapsed time in this value, counted in business hours, as hours with two decimals. |
| Elapsed Calendar Hours | Elapsed_Calendar_Hours__c |
Formula (Number) | Time the Interval took on the clock: Calendar Minutes divided by 60, nights and weekends included, a formula to two decimals; 0 while the Interval is open. Help text: Elapsed time in this value on the clock, as hours with two decimals. |
| Entered At | Entered_At__c |
DateTime | When the record took this value and the Interval began. For a live save it is the time of the save, or the record's created time for a new record's first Intervals; a job sets it to when the change happened, from field history (Backfill-History), the record's last change (Backfill-Seed, Reconcile, Catch-Up), or the logged change (Manual-Repair, Omni-Channel). Never blank. Every minute count and the Breach and warning times are counted from it. Help text: When the record entered this value. Every minute count of the stay starts here. |
| Exited At | Exited_At__c |
DateTime | When the record left this value and the Interval closed: the time of the change that opened the next Interval, the close of the record for an owner stay that ends there, or the deletion time when Reconcile closes it for a deleted record. Never before Entered At. Blank while the Interval is open; Open is a formula on it, and the minutes are set at the same moment. Help text: When the stay ended. Blank while the record is still in this value. |
| From Value | From_Value__c |
Text (255) | The value the record held before this Interval, in the same form as To Value (the API value for a picklist, the display name for an owner or lookup), up to 255 characters. Blank on a record's first Interval for the field, or when the field was blank before. Reports read it to count moves from one value to the next. Help text: The value the record had before this stay began. Blank on the first stay of a record. |
| Goal Minutes | Goal_Minutes__c |
Number (16, 2) | The Goal's Target Business Minutes, copied when the Interval opened from the active Goal that matched its value (a Goal for this exact value wins over one for any value, ). Blank when no Goal matched. Breach is judged against this copy, so a later change to the Goal, or turning it off, leaves this Interval's target as it was. The timeline and Sojourn Dashboards show it as the goal. Help text:* The business minutes this stay was allowed before it counts as a Breach, copied from its Goal when the stay began. |
| Goal | Goal__c |
Lookup (Goal__c) | Lookup to the active Goal that matched this Interval when it opened: a Goal for this Tracked field (or, when the Goal names no field, for the Tracked object's status field) and this value, or one for any value (). Blank when none matched. Goal Minutes and Warn Minutes copy its numbers at the same moment. Cleared if the Goal is deleted; the copied minutes stay. Help text:* The Goal this stay is measured against. Group a report by it to count breaches by Goal. |
| Breached | Is_Breached__c |
Checkbox | Checked once the Interval's business minutes passed Goal Minutes: set by a Live values run on an open Interval, and by the close on a closed one. Stays checked once set; Breached At records when the goal ran out. Unchecked when the Interval has no Goal or stayed within it. Breach reports, the timeline, and the Breach alert Flow read it. Help text: Checked when this stay went past its goal. Sojourn sets it while the stay is open, on each Live values run, or when it closes. |
| Open | Is_Open__c |
Formula (Checkbox) | A formula, checked while Exited At is blank: the record is still in this value. Unchecked once the Interval closes. Reports of open stays filter on it, with Record Closed unchecked. Help text: Checked while the record is still in this value; unchecked once the stay has ended. |
| Orphaned | Is_Orphaned__c |
Checkbox | Checked by the nightly Reconcile when the tracked record no longer exists (deleted, or merged into another record). An open Interval is closed at the deletion and also marked Closed at Deletion; a closed one is only flagged. The Interval is kept as history. Cleared if the record is restored from the Recycle Bin. Unchecked on Intervals of records that exist. Help text: Checked when the record this stay belongs to was deleted or merged away. The stay is kept for reporting; restoring the record clears it. |
| Warning | Is_Warning__c |
Checkbox | Business minutes reached Warn Minutes, the goal's warn at percent stamped on the Interval: the Interval is close to its goal, or past it. Set as Breached is, by Live values on open Intervals and by the close on closed ones; a breached Interval is also a warning. Help text: Set when business minutes reach the goal's Warn at percent. Filter reports on it to find stays close to their goal. |
| Lead Rating | Lead_Rating__c |
Text (255) | The Lead's Rating (its API value, as text) copied when the Interval opened, so time can be reported by rating as it was then. Filled only on Intervals of Leads; a later edit to the Lead does not change it. Blank when the Lead had no Rating. Help text: The Lead's rating when this stay began, for example Hot. Group a report by it to compare time by rating. |
| Lead Source | Lead_Source__c |
Text (255) | The Lead's Lead Source (its API value, as text) copied when the Interval opened, so time can be reported by source as it was then. Filled only on Intervals of Leads; a later edit to the Lead does not change it. Blank when the Lead had no source. Help text: The Lead's source when this stay began, for example Web. Group a report by it to compare time by source. |
| Lead | Lead__c |
Lookup (Lead) | Lookup to the Lead when the Tracked object is Lead, filled from Parent Id when the Interval is written, so the Leads with Intervals report type and the Intervals related list on the Lead work. Blank for other objects, or when the Tracked object's Lookup Field Override names another lookup to Lead. Cleared if the Lead is deleted; Parent Id keeps the Id. Help text: The Lead this stay belongs to. Sojourn fills it on Lead Intervals; it drives the Intervals related list on the Lead and the Leads with Intervals reports. |
| Opportunity Amount | Opportunity_Amount__c |
Number (18, 2) | The Opportunity's Amount copied when the Interval opened, as a plain number in the Opportunity's own currency with no conversion, so a total across currencies needs care. Filled only on Intervals of Opportunities; a later edit does not change it. Blank when the Opportunity had no Amount. Not readable with the Sojourn User or Site User permission set. Help text: The Opportunity's amount when this stay began, in the Opportunity's currency. Use it to weigh time in stage by deal size. |
| Opportunity Stage | Opportunity_Stage__c |
Text (255) | The Opportunity's Stage (its API value, as text) copied when the Interval opened, so any tracked field's time can be reported by the stage the deal was in. Filled only on Intervals of Opportunities; a later edit does not change it. Help text: The Opportunity's stage when this stay began. Group a report by it to see, for example, time with each owner per stage. |
| Opportunity | Opportunity__c |
Lookup (Opportunity) | Lookup to the Opportunity when the Tracked object is Opportunity, filled from Parent Id when the Interval is written, so the Opportunities with Intervals report type and the Intervals related list on the Opportunity work. Blank for other objects, or when the Tracked object's Lookup Field Override names another lookup to Opportunity. Cleared if the Opportunity is deleted; Parent Id keeps the Id. Help text: The Opportunity this stay belongs to. Sojourn fills it on Opportunity Intervals; it drives the Intervals related list on the Opportunity and the Opportunities with Intervals reports. |
| Owner Id | Owner_Id__c |
Text (18) | The 18-character Id of the user or queue that owned the record during this Interval, whichever field the Interval tracks, so time in a status can be reported by owner. Copied when the Interval opens, and corrected when an assignment rule changes the owner in the same save. Blank when the object has no owner. Sojourn reads it to find the queue's business hours (Queue Business Hours). Help text: The Id of the user or queue that owned the record during this stay. |
| Owner Name | Owner_Name__c |
Text (255) | The display name of the user or queue in Owner Id, up to 255 characters, copied when the Interval opened so reports and the timeline show names without a join. A later rename of the user or queue does not change it. Blank when the object has no owner. Help text: The name of the user or queue that owned the record during this stay. |
| Owner Type | Owner_Type__c |
Picklist: User, Queue | Whether Owner Id is a user or a queue: User or Queue, set with Owner Id. Blank when the object has no owner. Reports filter on it to split time with people from time waiting in queues. Help text: User or Queue: who owned the record during this stay. Filter on Queue to see waiting time. |
| Owner User | Owner_User__c |
Lookup (User) | Lookup to the User in Owner Id when the owner was a user; blank when a queue owned the record or the object has no owner. A lookup so reports can group by the owner's role, manager, or other user fields. Help text: The user who owned the record during this stay. Blank when a queue owned it. |
| Parent Created At | Parent_Created_At__c |
DateTime | The tracked record's Created Date, copied when the Interval opened, so reports can group stays by when their records were created, for example Cases created this month. Never changes after the copy. Help text: When the record this stay belongs to was created. Group by it to compare records created in the same period. |
| Parent Id | Parent_Id__c |
Text (18) | The 18-character Id of the tracked record, stored as text so Intervals work for any object, standard or custom. Set when the Interval is written; never blank. Sojourn finds a record's Intervals by it (the timeline, Reconcile, the Case figures), and fills the Case, Lead, or Opportunity lookup from it. Help text: The Id of the record this stay belongs to. |
| Parent Name | Parent_Name__c |
Text (255) | The record's name or number, up to 255 characters, copied when the Interval opened: the value of the Tracked object's Name Field, or of the object's own name field when that is blank. Lets reports and Sojourn Dashboards show and filter by a readable key, such as the Case Number. A later rename does not change it. Help text: The record's name or number when this stay began, for example the Case Number. The Tracked object's Name Field chooses which field. |
| Parent Object | Parent_Object__c |
Text (255) | The API name of the tracked object, for example Case or Work_Order__c, set when the Interval is written. One Interval object holds the stays of every Tracked object, so reports and Interval Summaries group by it first. Help text: The object the record belongs to, for example Case. Filter on it before grouping by value. |
| Parent Record Type | Parent_Record_Type__c |
Text (255) | The developer name of the record's record type when the Interval opened. Blank for objects without record types. Reports group by it to compare time across record types. Help text: The record type of the record when this stay began. Blank when the object has no record types. |
| Record Closed | Record_Closed__c |
Checkbox | Checked while the record is closed by its Tracked object's Closed when setting (a closed value of the status field, or the chosen checkbox). A reopen clears it on Intervals still open; an Interval that ended while the record was closed, or at its reopen, keeps it. Reports of open stays leave checked Intervals out, Interval Summaries carry it, and Live values skips closed records. Help text: Checked on Intervals of a record that is closed. Reports of open stays leave these out, so a closed record never counts as open. |
| Sequence | Sequence__c |
Number (9, 0) | The place of this Interval in its record's chain for one Tracked field: 1 for the first, then one more for each Interval after it; a reopened record's owner stay continues the chain. A whole number. Sojourn reads it to keep the chain in order and find the last stay, and the timeline orders by it. Help text: The order of this stay among the record's stays for this field, starting at 1. |
| Snapshot 1 | Snapshot_1__c |
Text (255) | The value of the first field named in the Tracked object's Snapshot Fields, as text up to 255 characters, copied when the Interval opened, so time can be reported by a field Sojourn does not track, such as Region. Blank when no field is named or its value was blank; a later edit to the record does not change it. Not readable with the Sojourn User or Site User permission set. Help text: The value of the first field listed in Snapshot Fields on the Tracked object, as it was when this stay began. |
| Snapshot 2 | Snapshot_2__c |
Text (255) | The value of the second field named in the Tracked object's Snapshot Fields, as text up to 255 characters, copied when the Interval opened, so time can be reported by a field Sojourn does not track. Blank when fewer than two fields are named or its value was blank; a later edit to the record does not change it. Not readable with the Sojourn User or Site User permission set. Help text: The value of the second field listed in Snapshot Fields on the Tracked object, as it was when this stay began. |
| Snapshot 3 | Snapshot_3__c |
Text (255) | The value of the third field named in the Tracked object's Snapshot Fields, as text up to 255 characters, copied when the Interval opened, so time can be reported by a field Sojourn does not track. Blank when fewer than three fields are named or its value was blank; a later edit to the record does not change it. Not readable with the Sojourn User or Site User permission set. Help text: The value of the third field listed in Snapshot Fields on the Tracked object, as it was when this stay began. |
| Snapshot 4 | Snapshot_4__c |
Text (255) | The value of the fourth field named in the Tracked object's Snapshot Fields, as text up to 255 characters, copied when the Interval opened, so time can be reported by a field Sojourn does not track. Blank when fewer than four fields are named or its value was blank; a later edit to the record does not change it. Not readable with the Sojourn User or Site User permission set. Help text: The value of the fourth field listed in Snapshot Fields on the Tracked object, as it was when this stay began. |
| Snapshot 5 | Snapshot_5__c |
Text (255) | The value of the fifth field named in the Tracked object's Snapshot Fields, as text up to 255 characters, copied when the Interval opened, so time can be reported by a field Sojourn does not track. Blank when fewer than five fields are named or its value was blank; a later edit to the record does not change it. Not readable with the Sojourn User or Site User permission set. Help text: The value of the fifth field listed in Snapshot Fields on the Tracked object, as it was when this stay began. |
| Source | Source__c |
Picklist: Trigger, Flow, Backfill-History, Backfill-Seed, Manual-Repair, Reconcile, Catch-Up, Omni-Channel | How this Interval was written. One of: Trigger (a save caught by a trigger, such as Sojourn's on Case, Lead, and Opportunity), Flow (a save reported by an object's capture Flow), Backfill-History (a Backfill from field history), Backfill-Seed (a Backfill from current values), Reconcile (the nightly job, for a change capture missed), Catch-Up (changes replayed after a pause), Manual-Repair (created from an error in the Health Monitor), or Omni-Channel (agent work reported by the Sojourn Omni-Channel package). Set when the Interval opens; never blank. For every source but Trigger and Flow, Changed By is the user who ran or scheduled the job. Help text: How Sojourn recorded this stay: Trigger and Flow are live saves; Backfill-History and Backfill-Seed come from a Backfill; Reconcile and Catch-Up are jobs; Manual-Repair comes from the Health Monitor; Omni-Channel is agent work. |
| Summarised At | Summarised_At__c |
DateTime | When the Summaries job counted this closed Interval into its Interval Summary rows. Blank until then; an Interval that Reconcile closed for a deleted record waits until the Recycle Bin's 15 days have passed. Summaries counts only closed Intervals with it blank, so none is counted twice, and purge deletes only Intervals that have it. Help text: Set by the Summaries job when it counts this stay. Purge never deletes a stay that has not been summarised. |
| To Value Id | To_Value_Id__c |
Text (18) | For an owner or lookup field, the 18-character Id of the user, queue, or record the field pointed at during this Interval; To Value holds its name. Blank for other field types. Sojourn compares values by it, so renaming a user or record does not start a new Interval, and the Case figures read it to tell users from queues. Help text: The Id of the user, queue, or record behind To Value, for owner and lookup fields. Blank for other fields. |
| To Value Label | To_Value_Label__c |
Text (255) | For a picklist field, the label of To Value when the Interval opened, up to 255 characters, for readable report groups and the timeline. Blank for other field types. To Value keeps the API value, which does not change when a label is renamed or translated. Help text: The picklist label of the value during this stay. Blank for fields that are not picklists. |
| To Value | To_Value__c |
Text (255) | The value the record held during this Interval, up to 255 characters: the API value for a picklist, the display name of the user, queue, or record for an owner or lookup field (its Id is in To Value Id), and the value as text for any other type. Blank when the field was blank and the Tracked field's Start At First Value is off. Goals match on it, and reports group by it after filtering on Tracked Field. Help text: The value the record had during this stay, for example Working, or the owner's name. |
| Tracked Field Label | Tracked_Field_Label__c |
Text (255) | The Tracked field's label (its Field Label) when the Interval opened, for example Status, up to 255 characters, so report headers and the timeline read naturally. A later label change applies to new Intervals only. Help text: The name of the tracked field this stay is for, as people see it. |
| Tracked Field | Tracked_Field__c |
Text (255) | The API name of the field this Interval tracks, for example Status, or OwnerId for the owner, up to 255 characters. One record has a chain of Intervals for each Tracked field, so always filter or group by it before grouping by value; Sojourn finds a record's chain by Parent Id and this name. Help text: API name of the tracked field, for example Status or OwnerId. |
| Value Group | Value_Group__c |
Text (255) | The name of the value group this Interval's value belongs to, for example Backlog for New and Reopened, up to 255 characters. Blank while the Tracked field has no value groups. Interval Summaries key on it, and it is copied to the purge CSV and the Interval Archive, so reports and Sojourn Dashboards can add up time by group. Help text: The named group of values this stay counts toward in reports and summaries. Blank when the field has no value groups. |
| Warn Minutes | Warn_Minutes__c |
Number (16, 2) | Business minutes at which the Interval becomes a warning, copied from the goal at capture time with Goal Minutes: the goal's Warn at percent of its target, a percent above 100 counting as 100. Blank when the goal has no warn percent. The warning reads this value, so a later change to the goal, or turning it off, leaves it as it was. Help text: Business minutes at which this stay is flagged as a warning: the goal's Warn at percent of Goal Minutes, copied when the stay began. |
| Warned At | Warned_At__c |
DateTime | When the business minutes reached Warn Minutes: Entered At plus Warn Minutes, in the Interval's business hours. Kept once set. Help text: When the stay reached the goal's Warn at percent, counted in its business hours from Entered At. |