Loading

Omnistudio OmniScriptSavedSession Status and StatusCategory Fields

Date de publication: Sep 10, 2026
Description

Overview

The OmniScriptSavedSession object stores saved OmniScript sessions created by the OmniStudio Save for Later feature. It exposes two related but different fields — Status and StatusCategory. This article explains what each field is for, which one you can set, and the values StatusCategory can hold, so you can tell them apart when reviewing saved sessions.

Applies To

  • Salesforce orgs using OmniStudio OmniScripts with the Save for Later feature.
  • The OmniScriptSavedSession object and its Status and StatusCategory fields.

Status field

  • Status is a picklist field intended for user-defined statuses on OmniScriptSavedSession records.
  • It is meant to reflect the current state you want to record for a session — for example, to flag sessions you plan to clean up.
  • Because OmniScriptSavedSession is a system object (see the note below), Status is typically set through supported Omnistudio mechanisms (for example, by passing a value from the OmniScript itself) rather than by editing the record directly.

StatusCategory field

  • StatusCategory is a read-only picklist maintained by Salesforce; it is not intended to be edited directly.
  • It categorizes the session using predefined criteria that Salesforce applies internally.
  • Picklist values:
    • In Progress (internal value IN_PROGRESS, code 0)
    • Completed (internal value COMPLETED, code 1)

Root Cause — why StatusCategory cannot be edited

StatusCategory is intentionally read-only by design. Salesforce sets and controls this field so it reliably reflects the categorized state of the saved session (in progress vs. completed). Keeping it read-only protects data integrity and consistency — if the value could be changed freely, the categorized state could drift from the session's actual state. Use the user-defined Status field for your own tracking, and treat StatusCategory as the system-maintained indicator.

Résolution

Use the two fields for their intended purposes:

  1. Read StatusCategory to determine the system state of a saved session — In Progress (IN_PROGRESS/0) or Completed (COMPLETED/1). Do not attempt to change this field directly; it is read-only and maintained by Salesforce.
  2. Use the Status field for your own tracking. Set Status (through supported OmniStudio mechanisms) to reflect the state you want to record for a session — for example, to flag sessions for cleanup.
  3. Identify records by filtering OmniScriptSavedSession records on the Status value you set.
Numéro d’article de la base de connaissances

004388103

 
Chargement
Salesforce Help | Article