Skip to content

SysChoice Class ​

Definition ​

Represents a choice entry in ServiceNow (sys_choice table).

  • Namespace: JASE.ServiceNow
  • Assembly: JASE.ServiceNow.dll

Constructors ​

NameDescription
SysChoice()

Properties ​

NameDescription
dependent_valueThe dependent value for conditional choice logic.
elementThe field name (element) on the table the choice is associated with.
hintHelp hint or tooltip associated with the choice.
inactiveIndicates whether the choice is inactive.
labelThe display label shown for the choice.
languageLanguage code (e.g., 'en', 'fr') for localized labels.
nameName of the table the choice applies to.
sequenceSort order value for the choice.
synonymsSynonyms for the choice, typically used for natural language input.
sys_created_byUser who created the record.
sys_created_onTimestamp when the choice was created.
sys_domainReference to the domain this choice belongs to.
sys_domain_pathFull domain path of the record for domain separation.
sys_idUnique system identifier (GUID).
sys_mod_countSystem-modification counter for optimistic concurrency.
sys_tagsTags associated with the choice.
sys_updated_byUser who last updated the record.
sys_updated_onTimestamp when the choice was last updated.
valueThe actual value stored when this choice is selected.

Methods ​

NameDescription
Task<List<SysChoice>> GetChoicesAsync(SysDbObject table, ConnectionContext context = null)Resolves the options for a Choice field
Task<List<SysChoice>> GetChoicesAsync(string tableName, ConnectionContext context = null)Resolves the options for a Choice field
Task<List<SysChoice>> GetChoicesAsync(string tableName, string field, ConnectionContext context = null)Resolves the options for a Choice field