Appearance
SysChoice Class
Definition
Represents a choice entry in ServiceNow (sys_choice table).
- Namespace:
JASE.ServiceNow - Assembly:
JASE.ServiceNow.dll
Constructors
| Name | Description |
|---|---|
SysChoice() |
Properties
| Name | Description |
|---|---|
dependent_value | The dependent value for conditional choice logic. |
element | The field name (element) on the table the choice is associated with. |
hint | Help hint or tooltip associated with the choice. |
inactive | Indicates whether the choice is inactive. |
label | The display label shown for the choice. |
language | Language code (e.g., 'en', 'fr') for localized labels. |
name | Name of the table the choice applies to. |
sequence | Sort order value for the choice. |
synonyms | Synonyms for the choice, typically used for natural language input. |
sys_created_by | User who created the record. |
sys_created_on | Timestamp when the choice was created. |
sys_domain | Reference to the domain this choice belongs to. |
sys_domain_path | Full domain path of the record for domain separation. |
sys_id | Unique system identifier (GUID). |
sys_mod_count | System-modification counter for optimistic concurrency. |
sys_tags | Tags associated with the choice. |
sys_updated_by | User who last updated the record. |
sys_updated_on | Timestamp when the choice was last updated. |
value | The actual value stored when this choice is selected. |
Methods
| Name | Description |
|---|---|
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 |