API - Case API - ServiceNow Developers
API - Case API - ServiceNow Developers
Version: Quebec
Additionally, you can discover these APIs from within your instance by using the REST API
Explorer. If you don't find an API that meets your needs you can create custom REST APIs
on ServiceNow using our Scripted REST API feature as of the Geneva release.
ServiceNow REST APIs support Basic Authentication and OAuth 2.0 to authenticate
requests.
ServiceNow REST APIs are versioned. Use the version selector shown in the lower left
corner of this page to choose which version of the documentation you would like to see.
Case API
The Case REST API enables you to retrieve and update Customer Service Management (CSM) case
records.
In addition, you can generate new social media profile records when creating a case.
The Case API requires the Customer Service plugin (com.sn_customerservice) and is provided
within the sn_customerservice namespace.
Users require the csm_ws_integration role for full API access. External users with the
sn_customerservice.customer or sn_customerservice.consumer roles can access the case API
endpoints.
GET /sn_customerservice/case/{id}/activities
Retrieves the activity stream for a specified Customer Service Management (CSM) case.
Use this endpoint to retrieve all entries from the activity stream for a specified record from the Case
[sn_customerservice_case] table.
Note: You can reference all sysparm query parameters using either their full name or their shortened
name (without the sysparm_ prefix). For example, for sysparm_limit you can also use limit.
URL Format
[Link] 1/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Name Value
Path parameters
Name Description
Query parameters
Name Description
Filters the type of activities to return from the activity stream. The
[Link] parameter contains the activity type for each activity.
For example:
sysparm_activity_type=attachment
sysparm_activity_type=work_notes
sysparm_activity_type
sysparm_activity_type=attachment,work_notes
sysparm_ activity_type=attachment,work_notes,comments
Starting record index for which to begin retrieving records. Use this value to
paginate record retrieval. This functionality enables the retrieval of all
records, regardless of the number of records, in small manageable chunks.
For example, the first time you call this endpoint, sysparm_offset is set to "0".
To simply page through all available records, use
sysparm_offset=sysparm_offset+sysparm_limit , until you reach the end
sysparm_offset
of all records.
Default: 0
Name Description
None
[Link] 2/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in
a distinct way. For a list of general headers used in the REST API, see Supported REST API headers
([Link]
rest/concept/c_RESTAPI.html).
Request headers
Header Description
Response headers
Header Description
REST response data can be split into multiple result sets. Where applicable,
the response header contains different links for the first set, previous set,
next set, and the last set of records.
For example:
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=40&sysparm_limit=10000>;rel="next" ,
Link
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=40&sysparm_limit=10000>;rel="prev" ,
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=0&sysparm_limit=10000>;rel="first" ,
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=2780&sysparm_limit=10000>;rel="last"
Response header showing the total number of records matching the request
X-Total-Count
when the sysparm_limit or sysparm_offset query parameters are specified.
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the
REST API, see REST response codes ([Link]
development/page/integrate/inbound-rest/reference/r_RESTAPIHTTPResponseCodes.html).
Status codes
401 Unauthorized. The user credentials are incorrect or have not been passed.
500 Internal Server Error. A logic error on the server-side code occurred.
[Link] 3/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
URL Format
[Link] 4/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Name Description
Array of objects in which each object represents an activity stream entry from
the CSM case.
"entries": [
{
"attachment": {Object},
"contains_code": Boolean,
"element": "String",
"field_label": "String",
entries
"initials": "String",
"login_name": "String",
"name": "String",
"sys_created_on": "String",
"sys_created_on_adjusted": "String",
"sys_id": "String",
"user_sys_id": "String",
"value": "String"
}
]
Description of a file attached to the CSM case in the activity stream entry.
"attachment": {
"average_image_color": "String",
"content_type": "String",
"file_name": "String",
"image_height": Number,
[Link] "image_path": "String",
"image_width": Number,
"path": "String",
"size": "String",
"size_bytes": Number,
"state": "String",
"sys_id": "String",
"thumbnail_path": "String"
}
application/pdf
[Link].content_type image/jpeg
message/rfc822
[Link] 5/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
[Link] 157.7 KB
2.2 MB
Unit: Bytes
Available
[Link] Available Conditionally
Not available
Pending
Flag that indicates whether the activity stream entry contains code or not.
Possible values:
Name for the journal field associated with the activity stream entry. Located in
Dictionary Entries [sys_dictionary] table.
[Link]
Data type: String
Display name for the journal field associated with the activity stream entry.
entries.field_label
Data type: String
Full user name for the user who created the activity stream entry.
entries.login_name
Data type: String
[Link] 6/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Full user name for the user who created the activity stream entry.
[Link]
Data type: String
Date and time of creation for the activity stream entry, expressed in GMT
timezone.
entries.sys_created_on Data type: String
Date and time of creation for the activity stream entry, expressed in logged-in
user timezone.
entries.sys_created_on_adjusted Data type: String
Sys_id for user who created the activity stream entry. Located in User
[sys_user] table.
entries.user_sys_id
Data type: String
Array of objects in which each object represents a journal field present in the
Case table from which activity entries are drawn.
"journal_fields": [
{
journal_fields "can read": Boolean,
"can_write": Boolean,
"color": "String",
"label": "String",
"name": "String"
}
]
Flag that indicates whether the logged-in user can read this journal field or
not.
Possible values:
journal_fields.can_read true: The logged-in user can read this journal field.
false: The logged-in user cannot read this journal field.
Flag that indicates whether the logged-in user can write to the journal field or
not.
Possible values:
journal_fields.can_write true: The logged-in user can write to this journal field.
false: The logged-in user cannot write to this journal field.
Color that represents the journal field in case activity stream on Now
Platform.
journal_fields.color
Data type: String
[Link] 7/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Display label for the table in which the CSM case record appears.
Direct link to get thumbnail for attachment (only for attachment of type
images.)
thumbnail_path
Data type: String
Curl
[Link] 8/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
The shows a single activity stream entry for the specified case, an Additional comments journal entry
submitted by the agent.
{
"result": {
"display_value": "CS0001401",
"sys_id": "f352dc9387632300d6b0a7da0acb0b60",
"short_description": "Laptop is not working properly",
"number": "CS0001401",
"entries": [
{
"sys_created_on_adjusted": "2020-05-04 14:15:44",
"sys_id": "600b6e4adb241010d045232d1396196a",
"login_name": "John Jason",
"user_sys_id": "da419c1fc312310015519f2974d3ae15",
"initials": "JJ",
"sys_created_on": "2020-05-04 21:15:44",
"contains_code": "false",
"field_label": "Additional comments",
"name": "John Jason",
"value": "Hi, Alex. Can you please send me a photo of the label on your laptop so we can send you the correct replacement?",
"element": "comments"
}
],
"user_sys_id": "b1e0989f87232300d6b0a7da0acb0beb",
"user_full_name": "Mark Johnson",
"user_login": "admin",
"label": "Case",
"table": "sn_customerservice_case",
"journal_fields": [
{
"can_read": true,
"color": "transparent",
"can_write": true,
"name": "comments",
"label": "Additional comments"
},
{
"can_read": true,
"color": "gold",
"can_write": true,
"name": "work_notes",
"label": "Work notes"
}
],
"sys_created_on": "2019-02-15 21:57:04",
"sys_created_on_adjusted": "2019-02-15 13:57:04"
}
}
Python
Retrieve the fourth and fifth activity stream entries for a CSM case by case number.
[Link] 9/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
# Decode the XML response into a dictionary and use the data
print([Link])
The XML includes the two requested activity stream entries from the CSM case, including an image
attachment and an email message attachment.
[Link] 10/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
GET /sn_customerservice/case/field_values/{field_name}
[Link] 11/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Retrieves the list of possible field values for a choice or reference field in the Case
[sn_customerservice_case] table.
Use this endpoint to populate field value lists in case creation forms.
When you request values for a reference field, any reference qualifiers defined for the requested field
in the Dictionary Entry [sys_dictionary] table are applied. For more information on reference
qualifiers, see Reference qualifiers ([Link]
administration/page/script/server-scripting/concept/c_ReferenceQualifiers.html).
You can use the sysparm_ref_qual_input query parameter to specify field values to use when
evaluating JavaScript reference qualifiers. For an example, see the query parameter listing below.
When you request values for a choice field that is dependent on another field, you can use the
sysparm_dependent_value query parameter to specify a value for the dependency parent field and
restrict the returned field values accordingly. For more details on dependent fields, see Make a field
dependent ([Link]
administration/task/t_MakingAFieldDependent.html).
Note: You can reference all sysparm query parameters using either their full name or their shortened
name (without the sysparm_ prefix). For example, for sysparm_limit you can also use limit.
URL Format
Name Value
Path parameters
Name Description
Query parameters
[Link] 12/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Name Description
sysparm_dependent_value=Phone
Starting record index for which to begin retrieving records. Use this value to
paginate record retrieval. This functionality enables the retrieval of all
records, regardless of the number of records, in small manageable chunks.
For example, the first time you call this endpoint, sysparm_offset is set to "0".
To simply page through all available records, use
sysparm_offset=sysparm_offset+sysparm_limit , until you reach the end
sysparm_offset
of all records.
Default: 0
Encoded query used to filter the result set. Queries defined using this
parameter are appended to any encoded queries produced by reference
qualifiers.
For example:
(sysparm_query=caller_id=javascript:[Link]()^active=true)
The encoded query supports order by. To sort responses based on certain
fields, use the ORDERBY and ORDERBYDESC clauses in sysparm_query.
For example,
sysparm_query=active=true^ORDERBYnumber^ORDERBYDESCcategory filters
sysparm_query all active records and orders the results in ascending order by number first,
and then in descending order by category.
If part of the query is invalid, such as by specifying an invalid field name, the
instance ignores the invalid part. It then returns rows using only the valid
portion of the query. You can control this behavior using the property
glide.invalid_query.returns_no_rows. Set this property to true to return no
rows on an invalid query.
Note: The glide.invalid_query.returns_no_rows property controls the behavior
of all queries across the instance, such as in lists, scripts
([Link]()), and web service APIs.
[Link] 13/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
For example, when requesting values from the Asset field, you can set this
query parameter value to return only assets belonging to the specified
product instead of assets belonging to the product associated with the
sysparm_ref_qual_input specified case:
sysparm_ref_qual_input=product=5d1b7bb053401010dc25ddeeff7b129d
Syntax: {field1}={value1}^{field2}={value2}[…]
Name Description
None
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in
a distinct way. For a list of general headers used in the REST API, see Supported REST API headers
([Link]
rest/concept/c_RESTAPI.html).
Request headers
Header Description
Response headers
Header Description
REST response data can be split into multiple result sets. Where applicable,
the response header contains different links for the first set, previous set,
next set, and the last set of records.
For example:
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=40&sysparm_limit=10000>;rel="next" ,
Link
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=40&sysparm_limit=10000>;rel="prev" ,
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=0&sysparm_limit=10000>;rel="first" ,
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=2780&sysparm_limit=10000>;rel="last"
Status codes
[Link] 14/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
The following status codes apply to this HTTP action. For a list of possible status codes used in the
REST API, see REST response codes ([Link]
development/page/integrate/inbound-rest/reference/r_RESTAPIHTTPResponseCodes.html).
Status codes
400 Bad Request. A bad request type or malformed request was detected.
401 Unauthorized. The user credentials are incorrect or have not been passed.
URL Format
Name Description
Array of objects in which each object describes a single value for the
requested field.
"result": [
result
{
"label": "String",
"value": "String"
}
]
Field value.
[Link]
Data type: String
Curl
Retrieve values for the contact reference field from all cases:
curl '[Link] \
--request GET \
--header 'Accept: application/json' \
--user 'username':'password'
[Link] 15/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
{
"result": [
{
"label": "Amy Pascal",
"value": "268e22b0d7300200e5982cf65e6103d3"
},
{
"label": "Marta Hoch",
"value": "8c974d254fb81200025ba3618110c707"
},
{
"label": "Charlie Brown",
"value": "078d399dd7600200e5982cf65e6103a2"
},
{
"label": "Alex Linde",
"value": "60beb5e7d7600200e5982cf65e6103ad"
},
{
"label": "Crissy Stark",
"value": "00189b324f1e0200c0adfe618110c76d"
},
{
"label": "Denis Koch",
"value": "07e6fa386f0331003b3c498f5d3ee4a1"
}
]
}
Python
Retrieve values for the priority choice field from all cases:
# Decode the XML response into a dictionary and use the data
print([Link])
[Link] 16/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
GET /sn_customerservice/case/{id}/field_values/{field_name}
Retrieves the list of possible field values for a choice or reference field for a specified record in the
Case [sn_customerservice_case] table.
Use this endpoint to populate field value lists in case update forms.
When you request values for a reference field, any reference qualifiers defined for the requested field
in the Dictionary Entry [sys_dictionary] table are applied, using values from the specified case record.
For more information on reference qualifiers, see Reference qualifiers
([Link]
scripting/concept/c_ReferenceQualifiers.html).
You can use the sysparm_ref_qual_input query parameter to override values from the specified case
when evaluating JavaScript reference qualifiers. For an example, see the query parameter listing
below.
When you request values for a choice field that is dependent on another field, this endpoint limits
returned field values based on the dependency parent field value selected in the specified case
record. For more details on dependent fields, see Make a field dependent
([Link]
administration/task/t_MakingAFieldDependent.html).
You can use the sysparm_dependent_value query parameter to override the selection from the
dependency parent field. For an example, see the query parameter listing below.
Note: You can reference all sysparm query parameters using either their full name or their shortened
name (without the sysparm_ prefix). For example, for sysparm_limit you can also use limit.
URL Format
[Link] 17/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Name Value
Path parameters
Name Description
Query parameters
[Link] 18/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Name Description
sysparm_dependent_value=Phone
Starting record index for which to begin retrieving records. Use this value to
paginate record retrieval. This functionality enables the retrieval of all
records, regardless of the number of records, in small manageable chunks.
For example, the first time you call this endpoint, sysparm_offset is set to "0".
To simply page through all available records, use
sysparm_offset=sysparm_offset+sysparm_limit , until you reach the end
sysparm_offset
of all records.
Default: 0
Encoded query used to filter the result set. Queries defined using this
parameter are appended to any encoded queries produced by reference
qualifiers.
For example:
(sysparm_query=caller_id=javascript:[Link]()^active=true)
The encoded query supports order by. To sort responses based on certain
fields, use the ORDERBY and ORDERBYDESC clauses in sysparm_query.
For example,
sysparm_query=active=true^ORDERBYnumber^ORDERBYDESCcategory filters
sysparm_query all active records and orders the results in ascending order by number first,
and then in descending order by category.
If part of the query is invalid, such as by specifying an invalid field name, the
instance ignores the invalid part. It then returns rows using only the valid
portion of the query. You can control this behavior using the property
glide.invalid_query.returns_no_rows. Set this property to true to return no
rows on an invalid query.
Note: The glide.invalid_query.returns_no_rows property controls the behavior
of all queries across the instance, such as in lists, scripts
([Link]()), and web service APIs.
[Link] 19/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
For example, when requesting values from the Asset field, you can set this
query parameter value to return only assets belonging to the specified
product instead of assets belonging to the product associated with the
sysparm_ref_qual_input specified case:
sysparm_ref_qual_input=product=5d1b7bb053401010dc25ddeeff7b129d
Syntax: {field1}={value1}^{field2}={value2}[…]
Name Description
None
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in
a distinct way. For a list of general headers used in the REST API, see Supported REST API headers
([Link]
rest/concept/c_RESTAPI.html).
Request headers
Header Description
Response headers
Header Description
REST response data can be split into multiple result sets. Where applicable,
the response header contains different links for the first set, previous set,
next set, and the last set of records.
For example:
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=40&sysparm_limit=10000>;rel="next" ,
Link
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=40&sysparm_limit=10000>;rel="prev" ,
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=0&sysparm_limit=10000>;rel="first" ,
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=2780&sysparm_limit=10000>;rel="last"
Status codes
[Link] 20/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
The following status codes apply to this HTTP action. For a list of possible status codes used in the
REST API, see REST response codes ([Link]
development/page/integrate/inbound-rest/reference/r_RESTAPIHTTPResponseCodes.html).
Status codes
400 Bad Request. A bad request type or malformed request was detected.
401 Unauthorized. The user credentials are incorrect or have not been passed.
URL Format
Name Description
Array of objects in which each object describes a single value for the
requested field.
"result": [
result
{
"label": "String",
"value": "String"
}
]
Field value.
[Link]
Data type: String
Curl
curl '[Link]
--request GET \
--header 'Accept: application/json' \
--user 'username':'password'
The displays the label and value for the contact assigned to the specified case:
[Link] 21/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
{
"result": [
{
"label": "Alex Linde",
"value": "60beb5e7d7600200e5982cf65e6103ad"
}
]
}
Python
Retrieve values for the asset reference field, using the case with sys_id
4ac73c23c322310015519f2974d3aeee when evaluating reference qualifiers:
# Decode the JSON response into a dictionary and use the data
print([Link]())
The shows labels and values for all assets belonging to the product associated with the specified
case:
{
"result": [
{
"label": "344-9448 - ACME KX Series - KX5000",
"value": "b8defca16fc331003b3c498f5d3ee4e7"
}
]
}
GET /sn_customerservice/case/{id}
Retrieves the specified Customer Service Management (CSM) case.
Note: You can reference all sysparm query parameters using either their full name or their shortened
name (without the sysparm_ prefix). For example, for sysparm_limit you can also use limit.
[Link] 22/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
URL Format
Name Value
Path parameters
Name Description
Sys_id or case number for the case to retrieve. Located in the Case
[sn_customerservice_case] table. Results will be unpredictable if a specified
id case number is shared by two or more cases.
Query parameters
Name Description
Determines the type of data returned, either the actual values from the
database or the display values of the fields. Display values are manipulated
based on the actual value in the database and user or system settings and
preferences.
If returning display values, the value that is returned is dependent on the field
type.
Choice fields: The database value may be a number, but the display
value will be more descriptive.
Date fields: The database value is in UTC format, while the display
value is based on the user's time zone.
Encrypted text: The database value is encrypted, while the displayed
value is unencrypted based on the user's encryption context.
Reference fields: The database value is sys_id, but the display value is
a display field of the referenced record.
sysparm_display_value
Data type: String
Valid values:
Default: false
Name Description
None
Headers
[Link] 23/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
The following request and response headers apply to this HTTP action only, or apply to this action in
a distinct way. For a list of general headers used in the REST API, see Supported REST API headers
([Link]
rest/concept/c_RESTAPI.html).
Request headers
Header Description
Response headers
Header Description
None
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the
REST API, see REST response codes ([Link]
development/page/integrate/inbound-rest/reference/r_RESTAPIHTTPResponseCodes.html).
Status codes
Indicates that the request is invalid. Could be due to one of the following
reasons:
404 Requested case does not exist.
User does not have access to the case.
URL Format
[Link] 24/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Element Description
Sys_id of the account record associated with the case. Located in the
Account [customer_account] table.
account
Data type: String
Account details.
"account": {
"account_code": "String",
"account_parent": "String",
"account_path": "String",
"active_escalation": "String",
"apple_icon": Image,
"banner_image": Image,
"banner_image_light": Image,
"banner_text": "String",
"city": "String",
"contact": "String",
"country": "String",
"customer": "String",
"discount": "String",
"fax_phone": "String",
"fiscal_year": "String",
"lat_long_error": "String",
"latitude": "String",
"longitude": "String",
"market_cap": "String",
"name": "String",
"notes": "String",
"num_employees": Number,
"number": "String",
account "parent": "String",
"partner": "String",
"phone": "String",
"primary": Boolean,
"primary_contact": "String",
"profits": Number,
"publicly_traded": Boolean,
"rank_tier": "String",
"registration_code": "String",
"revenue_per_year": Number,
"state": "String",
"stock_price": "String",
"stock_symbol": "String",
"street": "String",
"sys_class_name": "String",
"sys_created_by": "String",
"sys_created_on": "String",
"sys_id": "String",
"sys_mod_count": Number,
"sys_updated_by": "String",
"sys_updated_on": "String",
"theme": "String",
"vendor": Boolean,
"vendor_manager": "String",
"vendor_type": "String",
"website": "String",
"zip": "String
}
[Link] 25/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Path from the parent to the child accounts in the account hierarchy.
Sys_id of the active escalation associated with the account. Located in the
Escalation [sn_customerservice_escalation] table.
account.active_escalation
Data type: String
City in which the company that is associated with this account resides.
Maximum length: 50
Sys_id of a contact record associated with this account. Located in the User
[sys_user] table.
[Link]
Data type: String
Country in which the company that is associated with this account resides.
Default: USA
Default: false
[Link] 26/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 15
Primary fax phone number for the company associated with this account.
Maximum length: 40
Maximum length: 40
Maximum length: 40
Flag that indicates whether the company associated with this account
manufactures goods.
Possible values:
Default: false
Maximum length: 20
Maximum length: 80
Maximum length: 40
[Link] 27/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Possible values:
Default: false
Possible values:
Default: false
Sys_id of the primary contact for the account. Located in the Contact
[customer_contact] table.
account.primary_contact
Data type: String
Maximum length: 40
Flag that indicates whether the company associated with this account is
publicly traded on the stock exchange.
Possible values:
account.publicly_traded
true: Publicly traded
false: Private company
Type of account.
Possible values:
blacklist
strategic
account.rank_tier tactical
valued
other
Maximum length: 40
[Link] 28/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Unique code that customers use when requesting a login on the customer
portal. This code provides a method for validating the customer on the
company before granting access.
account.registration_code
Data type: String
Maximum length: 40
Maximum length: 20
Maximum length: 40
Maximum length: 40
Maximum length: 40
Maximum length: 40
Maximum length: 40
[Link] 29/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the customer portal theme used by this account. Located in the
Theme [sys_ui_theme] table.
[Link]
Data type: String
Flag that indicates whether the company associated with this account is a
vendor.
Possible values:
Default: false
List of sys_ids of the vendor managers for the account. Located in the User
[sys_user] table.
account.vendor_manager
Data type: String
Maximum length: 40
Possible values:
1: Blocked internally
action_status 2: Blocked by customer
3: Blocked internally and by customer
4: Needs attention
Possible values:
Default: true
Sys_id of the active account escalation record associated with the case.
Located in the Escalation [sn_customerservice_escalation] table.
active_account_escalation
Data type: String
Sys_id of the active account escalation record associated with the case.
Located in the Escalation [sn_customerservice_escalation] table.
active_escalation
Data type: String
[Link] 30/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
List of the sys_ids of the additional persons (other than primary assignee)
that have been assigned to the account. Located in the User [sys_user] table.
additional_assignee_list
Data type: Array
Maximum: 4,000
Possible values:
approved
cancelled
duplicate
not_required
approval not requested
rejected
requested
Maximum characters: 40
Sys_id of the asset record associated with the case. Located in the Asset
[alm_asset] table.
asset
Data type: String
Sys_id of the person assigned to the case. Located in the User [sys_user]
table.
assigned_to
Data type: String
Sys_id of the customer service agent group assigned to the case. Located in
the Group [sys_user_group] table.
assignment_group
Data type: String
Flag that indicates whether the case was automatically generated by another
action/event.
Possible values:
auto_created_case
true: Case was auto generated
false: Case was manually generated
Length in calendar work hours, work days, and work weeks that it took to
complete the case.
business_duration
Data type: String
[Link] 31/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the service record associated with the case. Located in the Service
[cmdb_ci_service] table.
business_service
Data type: String
Case category.
Possible values:
0: Question
category 1: Issue
2: Feature
Default: 1
Sys_id of the change request that caused the case to be created. Located in
the Change Request [change_request] table.
caused_by
Data type: String
Sys_id of the change request that caused the case to be created. Located in
the Change Request [change_request] table.
change
Data type: String
Flag that indicates whether the case is a child case that was created from a
major case.
Possible values:
child_case_creation_progress
true: Child case created from a major case
false: Not a child case
Sys_id of the user that closed the case. Located in the User [sys_user] table.
closed_by
Data type: String
Sys_id of the configuration item associated with the case. Located in the
Configuration Item [cmdb_ci] table.
cmdb_ci
Data type: String
[Link] 32/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the company associated with the case. Located in the Company
[core_company] table.
company
Data type: String
Possible values:
Default: true
Maximum length: 40
Maximum length: 40
Valid values:
dd-mm-yyyy
dd/mm/yyyy
[Link]
consumer.date_format mm-dd-yyyy
yyyy-mm-dd
Maximum length: 40
[Link] 33/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Maximum length: 50
Maximum length: 40
Maximum length: 40
Maximum length: 50
Maximum length: 50
Maximum length: 40
Notes on consumer.
Valid values:
1: Disabled
2: Enabled
[Link]
Data type: Integer
Maximum length: 40
Default: 2
[Link] 34/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Maximum length: 3
Maximum length: 40
Possible values:
Default: false
Maximum length: 40
[Link] 35/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Date and time when the consumer information was last updated.
consumer.sys_updated_on
Data type: String
Valid values:
Maximum length: 40
Maximum length: 40
Maximum length: 60
Maximum length: 40
Flag that indicates whether the contact is active within the system.
Possible values:
Default: true
[Link] 36/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Possible values:
Off work
On break
contact.agent_status
On route
On site
Maximum length: 40
Sys_id of the record that describes the building in which the contact resides;
Building [cmn_building] table.
[Link]
Data type: String
1: Outlook
contact.calendar_integration
Data type: Number (Integer)
Default: 1
Maximum length: 40
Sys_id of the cost center associated with the contact; Cost Center
[cmn_cost_center] table.
contact.cost_center
Data type: String
Maximum length: 3
Valid values:
dd/mm/yyyy
dd-mm-yyyy
[Link]
contact.date_format mm-dd-yyyy
yyyy-mm-dd
Maximum length: 40
Sys_id of the default perspective for the contact. Located in the Menu List
[sys_perspective] table.
contact.default_perspective
Data type: String
[Link] 37/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Default: faculty
Possible values:
Default: false
Maximum length: 50
Contact gender.
Maximum length: 40
Possible values:
Maximum length: 40
Possible values:
Default: false
[Link] 38/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Introduction
Maximum length: 40
Device the consumer used the last time they logged in to the system.
Maximum length: 40
Maximum length: 50
Maximum length: 40
Sys_id of the LDAP server used by the contact to last log in to the system;
LDAP Server [ldap_server_config] table.
contact.ldap_server
Data type: String
Sys_id of the record that describes the location of the contact; Location
[cmn_location] table.
[Link]
Data type: String
Possible values:
Default: false
Maximum length: 40
Sys_id of the record that describes the direct supervisor of the contact; User
[sys_user] table.
[Link]
Data type: String
Maximum length: 50
[Link] 39/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Valid values:
1: Disabled
[Link]
2: Enabled
Default: 2
Valid values:
Maximum length: 40
Maximum length: 40
Maximum length: 3
Maximum length: 40
Sys_id of the record that describes the work schedule for the associated
contact; Schedule [cmn_schedule] table.
[Link]
Data type: String
[Link] 40/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Maximum length: 80
Maximum length: 40
Default: / (global)
Number of times that the associated contact record has been modified.
contact.sys_mod_count
Data type: Number (Integer)
Maximum length: 40
[Link] 41/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Valid values:
Maximum length: 40
Sys_id of the record that contains the time sheet policy for the associated
contact; Time Sheet Policy [time_sheet_policy] table.
contact.time_sheet_policy
Data type: String
Maximum length: 40
Maximum length: 60
Maximum length: 40
Flag that indicates whether the associated contact has VIP status.
Possible values:
true: VIP
[Link]
false: Not VIP
Default: false
Flag that indicates whether the contact can only access services through the
web.
Possible values:
Default: false
Maximum length: 40
Maximum length: 70
[Link] 42/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
chat
email
phone
contact_type
social
web
Maximum length: 40
Sys_id of the contract associated with the case. Located in the Contract
[ast_contract] table. This contract contains information about the type of
support that is provided to the company associated to the case. A contract
contract can include a company and contact and the specific assets that are covered.
A contract can also include multiple service entitlements and SLAs.
Correlation display.
Correlation identifier.
Sys_id of the parent execution plan for this case. Located in the Execution
Plan [sc_cat_item_delivery_plan] table.
delivery_plan
Data type: String
Sys_id of the execution plan task. Located in the Execution Plan Task
[sc_cat_item_delivery_task] table.
delivery_task
Data type: String
Sys_id of the entitlement record associated with the case. Located in the
Entitlement [service_entitlement] table. Entitlements define the type of
support that a customer receives as well as the supported communication
entitlement channels. An entitlement can be associated with a product, an asset, an
account, or a contract.
[Link] 43/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Possible values:
0: Normal
1: Moderate
escalation
2: High
3: Overdue
Default: 0
Date and time when the first action was taken on the case.
first_response_time
Data type: String
Flag that indicates whether the case should be handed-off for global follow-
up.
Possible values:
follow_the_sun
true: Case should be handed-off for global follow-up
false: Case should not be handed-off for global follow-up
Default: false
List of sys_ids of the group records associated with the case. Located in the
Group [sys_user_group] table.
group_list
Data type: Array
Impact on customer.
Possible values:
1: High
impact 2: Medium
3: Low
Default: 3
Flag that indicates if there is a knowledge base article available for the
specified issue.
Possible values:
Default: false
[Link] 44/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Flag that indicates whether the case was resolved in alignment with the
associated service level agreement.
Possible values:
Default: true
Possible values:
Maximum length: 40
Possible values:
Default: false
Flag that indicates whether to add the resolution notes to the comments.
Possible values:
notes_to_comments true: Resolutions notes, when added, are also added to the comments
false: Resolution notes in comments are not required
Possible values:
1: Do not notify
notify 2: Send email
3: Telephone
Default: 1
Case number.
Maximum length: 40
Sys_id of the person that initially opened the case. Located in the User
[sys_user] table.
opened_by
Data type: String
[Link] 45/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the parent case to which this case (child) is associated. Located in
the Task [task] table.
parent
Data type: String
Sys_id of the partner associated with the case. Located in the Account
[customer_account] table.
partner
Data type: String
Sys_id of the partner contact associated with the case. Located in the
Contact [customer_contact] table.
partner_contact
Data type: String
1: Critical
2: High
priority 3: Moderate
4: Low
Default: 4
Sys_id of the issue that the customer is encountering. Located in the Problem
[problem] table.
problem
Data type: String
Sys_id of the product model of the asset associated to the case. Located in
the Product Model [cmdb_model] table. A model is a specific version or
product configuration of an asset (for example, Apple Mac Book Pro).
Number of times that the case was reassigned to a person that is responsible
for moving the case forward.
reassignment_count Data type: Number (Integer)
Default: 0
Sys_id of the record that contains the list of recipients for communications
about this case. Located in the Recipients List
recipient_list [sn_publications_recipients_list] table.
Sys_id of the task to execute if the case is rejected. Located in the Task [task]
table.
rejection_goto
Data type: String
Maximum length: 40
[Link] 46/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the person that resolved the case. Located in the User [sys_user]
table.
resolved_by
Data type: String
Array of objects in which each object describes a single value for the
requested field.
"result": [
result
{
"label": "String",
"value": "String"
}
]
Field value.
[Link]
Data type: String
List of the unique identifiers (sys_id) of the skills needed to complete the
case. Located in the Skill [cmn_skill] table.
skills
Data type: String
Date/time at which the case must be closed based on the associated service
level agreement.
sla_due
Data type: String
[Link] 47/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Array of objects that contain details for a specific social media profile, such as
Facebook, Twitter, or YouTube.
"sn_app_cs_social_social_profile": [
{
"account": "String",
"channel": [Array],
"contact": {Object},
"consumer": {Object},
"created_on": "String",
"profile": "String",
sn_app_cs_social_social_profile
"profile_url": "String",
"social_id": "String",
"source": "String",
"sys_created_by": "String",
"sys_created_on": "String",
"sys_id": "String",
"sys_mod_count": Number,
"sys_tags": "String",
"sys_updated_by": "String",
"sys_updated_on": "String"
}
]
Unique identifier of the record containing account information for the social
sn_app_cs_social_social_profile.ac media profile. Located in the Account [customer_account] table.
count
Data type: String
"channel": {
"name": "String",
"sys_class_name": "String",
"sys_created_by": "String",
"sys_created_on": "String",
sn_app_cs_social_social_profile.ch
annel "sys_mod_count": Number,
"sys_package": "String",
"sys_policy": "String",
"sys_scope": "String",
"sys_tags": "String",
"sys_update_name": "String",
"sys_updated_by": "String",
"sys_updated_on": "String"
}
[Link] 48/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Number of times that information was modified for the associated social
sn_app_cs_social_social_profile.ch media profile channel.
annel.sys_mod_count
Data type: Integer
Unique identifier of the record that contains information about the package
sn_app_cs_social_social_profile.ch associated with the profile; Package [sys_package] table.
annel.sys_package
Data type: Reference
Possible values:
sn_app_cs_social_social_profile.ch protected
annel.sys_policy read
Maximum length: 40
Unique identifier of the record that contains information about the scope of
sn_app_cs_social_social_profile.ch the social profile; Application [sys_scope] table.
annel.sys_scope
Data type: Reference
Name of the person that last updated the social media profile channel.
sn_app_cs_social_social_profile.ch
Data type: String
annel.sys_update_name
Maximum length: 250
Date and time the social media profile channel was last updated.
sn_app_cs_social_social_profile.ch Data type: Date/time
annel.sys_updated_on
Maximum length: 40
[Link] 49/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
"consumer": {
"active": Boolean,
"business_phone": "String",
"city": "String",
"country": "String",
"date_format": "String",
"email": "String",
"fax": "String",
"first_name": "String",
"gender": "String",
"home_phone": "String",
"household": "String",
"last_name": "String",
"middle_name": "String",
"mobile_phone": "String",
"name": "String",
"notes": "String",
"notification": Number,
sn_app_cs_social_social_profile.co
"number": "String",
nsumer
"photo": Image,
"preferred_language": "String",
"prefix": "String",
"primary": Boolean,
"state": "String",
"street": "String",
"suffix": "String",
"sys_created_by": "String",
"sys_created_on": "String",
"sys_domain": "String",
"sys_id": "String",
"sys_mod_count": Number,
"sys_tags": "String",
"sys_updated_by": "String",
"sys_updated_on": "String",
"time_format": "String",
"time_zone": "String",
"title": "String",
"user": "String",
"zip": "String"
}
Possible values:
Default: true
[Link] 50/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Valid values:
dd-mm-yyyy
dd/mm/yyyy
[Link]
sn_app_cs_social_social_profile.co
nsumer.date_format mm-dd-yyyy
yyyy-mm-dd
Maximum length: 40
[Link] 51/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Notes on consumer.
sn_app_cs_social_social_profile.co
Data type: String
[Link]
Maximum length: 4,000
Valid values:
1: Disabled
sn_app_cs_social_social_profile.co 2: Enabled
[Link]
Data type: Integer
Maximum length: 40
Default: 2
Possible values:
Default: false
[Link] 52/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
sn_app_cs_social_social_profile.co
Consumer system tags.
nsumer.sys_tags
Date and time when the consumer information was last updated.
sn_app_cs_social_social_profile.co
nsumer.sys_updated_on Data type: String
Valid values:
Maximum length: 40
Maximum length: 60
[Link] 53/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Flag that indicates whether the contact is active within the system.
Possible values:
Default: true
Possible values:
Off work
sn_app_cs_social_social_profile.co On break
ntact.agent_status On route
On site
Maximum length: 40
Sys_id of the record that describes the building in which the contact resides;
sn_app_cs_social_social_profile.co Building [cmn_building] table.
[Link]
Data type: String
1: Outlook
sn_app_cs_social_social_profile.co
ntact.calendar_integration
Data type: Number (Integer)
Default: 1
Sys_id of the cost center associated with the contact; Cost Center
sn_app_cs_social_social_profile.co [cmn_cost_center] table.
ntact.cost_center
Data type: String
[Link] 54/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Valid values:
dd/mm/yyyy
dd-mm-yyyy
[Link]
sn_app_cs_social_social_profile.co
mm-dd-yyyy
ntact.date_format
yyyy-mm-dd
Maximum length: 40
Sys_id of the default perspective for the contact. Located in the Menu List
sn_app_cs_social_social_profile.co [sys_perspective] table.
ntact.default_perspective
Data type: String
Default: faculty
Possible values:
sn_app_cs_social_social_profile.co true: Multifactor authorization enabled
ntact.enable_multifactor_authn
false: Multifactor authorization disabled
Default: false
[Link] 55/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Contact gender.
sn_app_cs_social_social_profile.co
Data type: String
[Link]
Maximum length: 40
Possible values:
sn_app_cs_social_social_profile.co true: Contact location obtained through geotracking
ntact.geolocation_tracked
false: Contact location not obtained through geotracking
Possible values:
Default: false
Introduction
sn_app_cs_social_social_profile.co Data type: String
[Link]
Maximum length: 40
Device the consumer used the last time they logged in to the system.
sn_app_cs_social_social_profile.co
Data type: String
ntact.last_login_device
Maximum length: 40
[Link] 56/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the LDAP server used by the contact to last log in to the system;
sn_app_cs_social_social_profile.co LDAP Server [ldap_server_config] table.
ntact.ldap_server
Data type: String
Sys_id of the record that describes the location of the contact; Location
sn_app_cs_social_social_profile.co [cmn_location] table.
[Link]
Data type: String
Possible values:
Default: false
Sys_id of the record that describes the direct supervisor of the contact; User
sn_app_cs_social_social_profile.co [sys_user] table.
[Link]
Data type: String
Valid values:
sn_app_cs_social_social_profile.co 1: Disabled
[Link] 2: Enabled
Default: 2
Valid values:
Maximum length: 40
[Link] 57/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the record that describes the work schedule for the associated
sn_app_cs_social_social_profile.co contact; Schedule [cmn_schedule] table.
[Link]
Data type: String
Default: / (global)
[Link] 58/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Number of times that the associated contact record has been modified.
sn_app_cs_social_social_profile.co
ntact.sys_mod_count
Data type: Number (Integer)
sn_app_cs_social_social_profile.co
Contact system tags.
ntact.sys_tags
Valid values:
Maximum length: 40
Sys_id of the record that contains the time sheet policy for the associated
sn_app_cs_social_social_profile.co contact; Time Sheet Policy [time_sheet_policy] table.
ntact.time_sheet_policy
Data type: String
Maximum length: 40
Flag that indicates whether the associated contact has VIP status.
Possible values:
Default: false
[Link] 59/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Flag that indicates whether the contact can only access services through the
web.
Possible values:
sn_app_cs_social_social_profile.co true: Web access only
ntact.web_service_access_only
false: Access through all available methods
Default: false
sn_app_cs_social_social_profile.cre
Date and time the associated social media profile was initially created.
ated_on
Social profile.
sn_app_cs_social_social_profile.pr
Data type: String
ofile
Maximum length: 255
Unique social media account provider identifier for the associated social
media account.
sn_app_cs_social_social_profile.so
cial_id Data type: String
Date and time the social media profile was initially created.
sn_app_cs_social_social_profile.sy
s_created_on Data type: String (Date/time)
Number of times that information was modified for the associated social
sn_app_cs_social_social_profile.sy media profile.
s_mod_count
Data type: Number (Integer)
sn_app_cs_social_social_profile.sy
Profile system tags.
s_tags
[Link] 60/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Possible values:
1: New
3: Closed
state 6: Resolved
10: Open
18: Awaiting Info
Default: 1
Case subcategory.
Possible values:
subcategory 0: Question
Default: 0
Sys_id of the CSM manager assigned to the case. Located in the User
[sys_user] table.
support_manager
Data type: String
Possible values:
sync_driver true: Driver is synchronized
false: Driver is not synchronized
Maximum length: 80
Maximum length: 40
Default: global
Domain path.
Default: /
[Link] 61/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 32
Maximum length: 40
Possible values:
do_nothing
proceed
upon_approval
Data type: String
Maximum length: 40
Default: proceed
Possible values:
cancel
goto
upon_reject
Data type: String
Maximum length: 40
Default: cancel
Possible values:
1: High
urgency 2: Medium
3: Low
Default: 3
[Link] 62/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
List of sys_ids of the users who receive notifications about this case when
additional comments are added or if the state of a case is changed to
watch_list Resolved or Closed. Located in the User [sys_user] table.
Sys_id of the workflow activity record associated with the case. Located in
the Workflow Activity [wf_activity] table.
wf_activity
Data type: String
Information about how to resolve the case, or steps taken to resolve it.
List of sys_ids of the internal users who receive notifications about this case
when work notes are added. Located in the User [sys_user] table.
work_notes_list
Data type: Array
Curl
curl "[Link] \
--request GET \
--header "Accept:application/json" \
--user "username":"password"
[Link] 63/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
{
"result": {
"parent": "",
"caused_by": "",
"watch_list": "",
"active_escalation": "",
"upon_reject": "cancel",
"sys_updated_on": "2018-06-18 00:14:43",
"support_manager": "",
"approval_history": "",
"skills": "",
"number": "CS0000871",
"problem": "",
"state": "10",
"case": "Acme Analytics performance degradation
CS0000871",
"sys_created_by": "[Link]",
"knowledge": "false",
"order": "",
"cmdb_ci": "",
"delivery_plan": "",
"impact": "3",
"contract": "",
"active": "true",
"work_notes_list": "",
"auto_created_case": "false",
"priority": "1",
"sys_domain_path": "/",
"rejection_goto": "",
"first_response_time": "",
"business_duration": "",
"group_list": "",
"child_case_creation_progress": "false",
"sync_driver": "false",
"approval_set": "",
"wf_activity": "",
"short_description": "Acme Analytics performance degradation",
"correlation_display": "",
"delivery_task": "",
"work_start": "",
"recipient_list": "",
"additional_assignee_list": "",
"notify": "1",
"sys_class_name": "sn_customerservice_case",
"closed_by": "",
"follow_up": "",
"contact_local_time": "",
"sn_app_cs_social_social_profile": "",
"reassignment_count": "0",
"contact_time_zone": "",
"notes_to_comments": "false",
"assigned_to": "da419c1fc312310015519f2974d3ae15",
"product": "4c84a024c3211200bb779f2974d3aef6",
"variables": "",
"variable_pool": "",
"hierarchical_variables": "variable_pool",
"sla_due": "",
"change": "",
"comments_and_work_notes": "",
"partner": "",
"escalation": "0",
"upon_approval": "proceed",
"partner_contact": "",
"correlation_id": "",
"asset": "",
"made_sla": "true",
"resolved_by": "",
"sys_updated_by": "[Link]",
"opened_by": "da419c1fc312310015519f2974d3ae15",
"user_input": "",
"sys_created_on": "2018-06-18 00:14:39",
"contact": "",
"sys_domain": "global",
"closed_at": "",
"follow_the_sun": "false",
"entitlement": "",
"business_service": "",
"business_impact": "Acme Anaytics performance is extremely slow. Customers are not able to use it. ",
"time_worked": "",
"expected_start": "",
"opened_at": "2018-06-18 00:14:39",
"work_end": "",
"resolved_at": "",
"case_report": "27329dbe64f01300964fae39b050e93c",
[Link] 64/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
"subcategory": "0",
"work_notes": "",
"assignment_group": "",
"cause": "",
"description": "",
"calendar_duration": "",
"close_notes": "",
"sys_id": "ba325dbe64f01300964fae39b050e9a6",
"contact_type": "web",
"resolution_code": "",
"probable_cause": "",
"urgency": "3",
"company": "",
"major_case_state": "accepted",
"consumer": "",
"activity_due": "",
"comments": "",
"approval": "not requested",
"due_date": "",
"sys_mod_count": "2",
"sys_tags": "",
"active_account_escalation": "",
"location": "",
"category": "1",
"account": ""
}
}
Python
This request retrieves a case, with sysparm_display_value set to "all" to retrieve display and literal
field values.
# Decode the XML response into a dictionary and use the data
print([Link])
Because sysparm_display_value is set to "all", the includes literal values and display values for each
field. Removing this parameter or setting its value to "false" retrieves literal database values.
[Link] 65/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
[Link] 66/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<label>Initiated as request</label>
<type>boolean</type>
<value>0</value>
</initiated_as_request>
<state>
<display_value>Open</display_value>
<name>state</name>
<label>State</label>
<type>integer</type>
<value>10</value>
</state>
<case>
<display_value>I have a pending change request\xe2\x80\x8bCS0009003</display_value>
<name>case</name>
<label>Case</label>
<type>composite_field</type>
<value>I have a pending change request\xe2\x80\x8bCS0009003</value>
</case>
<sys_created_by>
<display_value>admin</display_value>
<name>sys_created_by</name>
<label>Created by</label>
<type>string</type>
<value>admin</value>
</sys_created_by>
<knowledge>
<display_value>false</display_value>
<name>knowledge</name>
<label>Knowledge</label>
<type>boolean</type>
<value>0</value>
</knowledge>
<order>
<display_value/>
<name>order</name>
<label>Order</label>
<type>integer</type>
<value>null</value>
</order>
<assigned_on>
<display_value/>
<name>assigned_on</name>
<label>Assigned on</label>
<type>glide_date_time</type>
<value/>
</assigned_on>
<cmdb_ci>
<display_value/>
<name>cmdb_ci</name>
<label>Configuration item</label>
<type>reference</type>
<value>null</value>
</cmdb_ci>
<delivery_plan>
<display_value/>
<name>delivery_plan</name>
<label>Delivery plan</label>
<type>reference</type>
<value>null</value>
</delivery_plan>
<impact>
<display_value>3 - Low</display_value>
<name>impact</name>
<label>Impact</label>
<type>integer</type>
<value>3</value>
</impact>
<contract>
<display_value/>
<name>contract</name>
<label>Contract</label>
<type>reference</type>
<value>null</value>
</contract>
<active>
<display_value>true</display_value>
<name>active</name>
<label>Active</label>
<type>boolean</type>
<value>1</value>
</active>
<work_notes_list>
<display_value/>
<name>work_notes_list</name>
<label>Work notes list</label>
[Link] 67/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<type>glide_list</type>
<value>null</value>
</work_notes_list>
<auto_created_case>
<display_value>false</display_value>
<name>auto_created_case</name>
<label>Auto Created Case</label>
<type>boolean</type>
<value>null</value>
</auto_created_case>
<priority>
<display_value>4 - Low</display_value>
<name>priority</name>
<label>Priority</label>
<type>integer</type>
<value>4</value>
</priority>
<sys_domain_path>
<display_value>/</display_value>
<name>sys_domain_path</name>
<label>Domain Path</label>
<type>domain_path</type>
<value>/</value>
</sys_domain_path>
<rejection_goto>
<display_value/>
<name>rejection_goto</name>
<label>Rejection goto</label>
<type>reference</type>
<value>null</value>
</rejection_goto>
<first_response_time>
<display_value/>
<name>first_response_time</name>
<label>First Response Time</label>
<type>glide_date_time</type>
<value/>
</first_response_time>
<business_duration>
<display_value/>
<name>business_duration</name>
<label>Business duration</label>
<type>glide_duration</type>
<value/>
</business_duration>
<group_list>
<display_value/>
<name>group_list</name>
<label>Group list</label>
<type>glide_list</type>
<value>null</value>
</group_list>
<child_case_creation_progress>
<display_value>false</display_value>
<name>child_case_creation_progress</name>
<label>Child Case creation progress</label>
<type>boolean</type>
<value>null</value>
</child_case_creation_progress>
<sync_driver>
<display_value>false</display_value>
<name>sync_driver</name>
<label>Sync Driver</label>
<type>boolean</type>
<value>0</value>
</sync_driver>
<internal_contact>
<display_value/>
<name>internal_contact</name>
<label>Internal Contact</label>
<type>reference</type>
<value>null</value>
</internal_contact>
<approval_set>
<display_value/>
<name>approval_set</name>
<label>Approval set</label>
<type>glide_date_time</type>
<value/>
</approval_set>
<wf_activity>
<display_value/>
<name>wf_activity</name>
<label>Workflow activity</label>
<type>reference</type>
[Link] 68/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<value>null</value>
</wf_activity>
<needs_attention>
<display_value>false</display_value>
<name>needs_attention</name>
<label>Needs attention</label>
<type>boolean</type>
<value>0</value>
</needs_attention>
<universal_request>
<display_value/>
<name>universal_request</name>
<label>Universal Request</label>
<type>reference</type>
<value>null</value>
</universal_request>
<short_description>
<display_value>I have a pending change request</display_value>
<name>short_description</name>
<label>Short description</label>
<type>string</type>
<value>I have a pending change request</value>
</short_description>
<correlation_display>
<display_value/>
<name>correlation_display</name>
<label>Correlation display</label>
<type>string</type>
<value>null</value>
</correlation_display>
<delivery_task>
<display_value/>
<name>delivery_task</name>
<label>Delivery task</label>
<type>reference</type>
<value>null</value>
</delivery_task>
<work_start>
<display_value/>
<name>work_start</name>
<label>Actual start</label>
<type>glide_date_time</type>
<value/>
</work_start>
<hierarchical_variables>
<display_value>variable_pool</display_value>
<name>hierarchical_variables</name>
<label>hierarchical_variables</label>
<type>variables</type>
<value>variable_pool</value>
</hierarchical_variables>
<recipient_list>
<display_value/>
<name>recipient_list</name>
<label>Affected Customers</label>
<type>reference</type>
<value>null</value>
</recipient_list>
<additional_assignee_list>
<display_value/>
<name>additional_assignee_list</name>
<label>Additional assignee list</label>
<type>glide_list</type>
<value>null</value>
</additional_assignee_list>
<variable_pool>
<display_value/>
<name>variable_pool</name>
<label>Variables</label>
<type>variables</type>
<value>null</value>
</variable_pool>
<notify>
<display_value>Do Not Notify</display_value>
<name>notify</name>
<label>Notify</label>
<type>integer</type>
<value>1</value>
</notify>
<sys_class_name>
<display_value>Case</display_value>
<name>sys_class_name</name>
<label>Task type</label>
<type>sys_class_name</type>
<value>sn_customerservice_case</value>
[Link] 69/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
</sys_class_name>
<service_offering>
<display_value/>
<name>service_offering</name>
<label>Service offering</label>
<type>reference</type>
<value>null</value>
</service_offering>
<closed_by>
<display_value/>
<name>closed_by</name>
<label>Closed by</label>
<type>reference</type>
<value>null</value>
</closed_by>
<follow_up>
<display_value/>
<name>follow_up</name>
<label>Follow up</label>
<type>glide_date_time</type>
<value/>
</follow_up>
<contact_local_time>
<display_value/>
<name>contact_local_time</name>
<label>Contact Local Time</label>
<type>string</type>
<value>null</value>
</contact_local_time>
<sn_app_cs_social_social_profile>null</sn_app_cs_social_social_profile>
<reassignment_count>
<display_value>1</display_value>
<name>reassignment_count</name>
<label>Reassignment count</label>
<type>integer</type>
<value>1</value>
</reassignment_count>
<contact_time_zone>
<display_value>null</display_value>
<name>contact_time_zone</name>
<label>Contact time zone</label>
<type>choice</type>
<value>null</value>
</contact_time_zone>
<notes_to_comments>
<display_value>false</display_value>
<name>notes_to_comments</name>
<label>Add resolution notes to comments</label>
<type>boolean</type>
<value>0</value>
</notes_to_comments>
<assigned_to>
<display_value>System Administrator</display_value>
<name>assigned_to</name>
<label>Assigned to</label>
<type>reference</type>
<value>6816f79cc0a8016401c5a33be04be441</value>
</assigned_to>
<product>
<display_value/>
<name>product</name>
<label>Product</label>
<type>reference</type>
<value>null</value>
</product>
<variables>
<display_value/>
<name>variables</name>
<label>Variables</label>
<type>variables</type>
<value>null</value>
</variables>
<sla_due>
<display_value>UNKNOWN</display_value>
<name>sla_due</name>
<label>SLA due</label>
<type>due_date</type>
<value/>
</sla_due>
<change>
<display_value>CHG0040007</display_value>
<name>change</name>
<label>Change Request</label>
<type>reference</type>
<value>c83c5e5347c12200e0ef563dbb9a7190</value>
[Link] 70/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
</change>
<comments_and_work_notes>
<display_value>2018-10-11 12:12:43 - System Administrator (Work notes)\nChange [code]<a href=\'/change_request.do?sys_id=c83c5e5
<name>comments_and_work_notes</name>
<label>Comments and Work notes</label>
<type>journal_list</type>
<value/>
</comments_and_work_notes>
<stage>
<display_value>null</display_value>
<name>stage</name>
<label>Stage</label>
<type>choice</type>
<value>null</value>
</stage>
<partner>
<display_value/>
<name>partner</name>
<label>Partner</label>
<type>reference</type>
<value>null</value>
</partner>
<escalation>
<display_value>Normal</display_value>
<name>escalation</name>
<label>Escalation</label>
<type>integer</type>
<value>0</value>
</escalation>
<upon_approval>
<display_value>Proceed to Next Task</display_value>
<name>upon_approval</name>
<label>Upon approval</label>
<type>string</type>
<value>proceed</value>
</upon_approval>
<partner_contact>
<display_value/>
<name>partner_contact</name>
<label>Partner Contact</label>
<type>reference</type>
<value>null</value>
</partner_contact>
<correlation_id>
<display_value/>
<name>correlation_id</name>
<label>Correlation ID</label>
<type>string</type>
<value>null</value>
</correlation_id>
<asset>
<display_value/>
<name>asset</name>
<label>Asset</label>
<type>reference</type>
<value>null</value>
</asset>
<made_sla>
<display_value>true</display_value>
<name>made_sla</name>
<label>Made SLA</label>
<type>boolean</type>
<value>1</value>
</made_sla>
<sn_esign_document>
<display_value/>
<name>sn_esign_document</name>
<label>E-signature document</label>
<type>reference</type>
<value>null</value>
</sn_esign_document>
<task_effective_number>
<display_value>CS0009003</display_value>
<name>task_effective_number</name>
<label>Effective number</label>
<type>string</type>
<value>CS0009003</value>
</task_effective_number>
<resolved_by>
<display_value/>
<name>resolved_by</name>
<label>Resolved by</label>
<type>reference</type>
<value>null</value>
</resolved_by>
[Link] 71/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<sys_updated_by>
<display_value>admin</display_value>
<name>sys_updated_by</name>
<label>Updated by</label>
<type>string</type>
<value>admin</value>
</sys_updated_by>
<opened_by>
<display_value>System Administrator</display_value>
<name>opened_by</name>
<label>Opened by</label>
<type>reference</type>
<value>6816f79cc0a8016401c5a33be04be441</value>
</opened_by>
<user_input>
<display_value/>
<name>user_input</name>
<label>User input</label>
<type>user_input</type>
<value/>
</user_input>
<sys_created_on>
<display_value>2018-10-11 12:11:34</display_value>
<name>sys_created_on</name>
<label>Created</label>
<type>glide_date_time</type>
<value>2018-10-11 19:11:34</value>
</sys_created_on>
<contact>
<country>
<display_value>null</display_value>
<name>country</name>
<label>Country code</label>
<type>string</type>
<value>null</value>
</country>
<calendar_integration>
<display_value>Outlook</display_value>
<name>calendar_integration</name>
<label>Calendar integration</label>
<type>integer</type>
<value>1</value>
</calendar_integration>
<last_position_update>
<display_value/>
<name>last_position_update</name>
<label>Last position update</label>
<type>glide_date_time</type>
<value/>
</last_position_update>
<last_login_time>
<display_value/>
<name>last_login_time</name>
<label>Last login time</label>
<type>glide_date_time</type>
<value/>
</last_login_time>
<last_login_device>
<display_value/>
<name>last_login_device</name>
<label>Last login device</label>
<type>string</type>
<value>null</value>
</last_login_device>
<source>
<display_value/>
<name>source</name>
<label>Source</label>
<type>string</type>
<value>null</value>
</source>
<sys_updated_on>
<display_value>2018-08-15 13:45:45</display_value>
<name>sys_updated_on</name>
<label>Updated</label>
<type>glide_date_time</type>
<value>2018-08-15 20:45:45</value>
</sys_updated_on>
<building>
<display_value/>
<name>building</name>
<label>Building</label>
<type>reference</type>
<value>null</value>
</building>
[Link] 72/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<web_service_access_only>
<display_value>false</display_value>
<name>web_service_access_only</name>
<label>Web service access only</label>
<type>boolean</type>
<value>0</value>
</web_service_access_only>
<notification>
<display_value>Enable</display_value>
<name>notification</name>
<label>Notification</label>
<type>integer</type>
<value>2</value>
</notification>
<sys_updated_by>
<display_value>admin</display_value>
<name>sys_updated_by</name>
<label>Updated by</label>
<type>string</type>
<value>admin</value>
</sys_updated_by>
<enable_multifactor_authn>
<display_value>false</display_value>
<name>enable_multifactor_authn</name>
<label>Enable Multifactor Authentication</label>
<type>boolean</type>
<value>0</value>
</enable_multifactor_authn>
<sys_created_on>
<display_value>2018-08-15 13:45:45</display_value>
<name>sys_created_on</name>
<label>Created</label>
<type>glide_date_time</type>
<value>2018-08-15 20:45:45</value>
</sys_created_on>
<sys_domain>
<display_value>global</display_value>
<name>sys_domain</name>
<label>Domain</label>
<type>domain_id</type>
<value>global</value>
</sys_domain>
<agent_status>
<display_value>null</display_value>
<name>agent_status</name>
<label>Work agent status</label>
<type>choice</type>
<value>null</value>
</agent_status>
<state>
<display_value/>
<name>state</name>
<label>State / Province</label>
<type>string</type>
<value>null</value>
</state>
<vip>
<display_value>false</display_value>
<name>vip</name>
<label>VIP</label>
<type>boolean</type>
<value>0</value>
</vip>
<sys_created_by>
<display_value>admin</display_value>
<name>sys_created_by</name>
<label>Created by</label>
<type>string</type>
<value>admin</value>
</sys_created_by>
<longitude>
<display_value/>
<name>longitude</name>
<label>Longitude</label>
<type>float</type>
<value>null</value>
</longitude>
<zip>
<display_value/>
<name>zip</name>
<label>Zip / Postal code</label>
<type>string</type>
<value>null</value>
</zip>
<home_phone>
[Link] 73/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<display_value/>
<name>home_phone</name>
<label>Home phone</label>
<type>ph_number</type>
<value>null</value>
</home_phone>
<time_format>
<display_value>null</display_value>
<name>time_format</name>
<label>Time format</label>
<type>string</type>
<value>null</value>
</time_format>
<last_login>
<display_value/>
<name>last_login</name>
<label>Last login</label>
<type>glide_date</type>
<value/>
</last_login>
<default_perspective>
<display_value/>
<name>default_perspective</name>
<label>Default perspective</label>
<type>reference</type>
<value>null</value>
</default_perspective>
<geolocation_tracked>
<display_value>false</display_value>
<name>geolocation_tracked</name>
<label>Geolocation tracked</label>
<type>boolean</type>
<value>0</value>
</geolocation_tracked>
<active>
<display_value>true</display_value>
<name>active</name>
<label>Active</label>
<type>boolean</type>
<value>1</value>
</active>
<time_sheet_policy>
<display_value/>
<name>time_sheet_policy</name>
<label>Time sheet policy</label>
<type>reference</type>
<value>null</value>
</time_sheet_policy>
<sys_domain_path>
<display_value>/</display_value>
<name>sys_domain_path</name>
<label>Domain Path</label>
<type>domain_path</type>
<value>/</value>
</sys_domain_path>
<transaction_log>
<display_value/>
<name>transaction_log</name>
<label>Transaction log</label>
<type>string</type>
<value>null</value>
</transaction_log>
<phone>
<display_value/>
<name>phone</name>
<label>Business phone</label>
<type>ph_number</type>
<value>null</value>
</phone>
<cost_center>
<display_value/>
<name>cost_center</name>
<label>Cost center</label>
<type>reference</type>
<value>null</value>
</cost_center>
<name>
<display_value>Amy Chen</display_value>
<name>name</name>
<label>Name</label>
<type>string</type>
<value>Amy Chen</value>
</name>
<employee_number>
<display_value/>
[Link] 74/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<name>employee_number</name>
<label>Employee number</label>
<type>string</type>
<value>null</value>
</employee_number>
<gender>
<display_value>null</display_value>
<name>gender</name>
<label>Gender</label>
<type>string</type>
<value>null</value>
</gender>
<city>
<display_value/>
<name>city</name>
<label>City</label>
<type>string</type>
<value>null</value>
</city>
<hr_integration_source>
<display_value/>
<name>hr_integration_source</name>
<label>HR Integration source</label>
<type>reference</type>
<value>null</value>
</hr_integration_source>
<user_name>
<display_value/>
<name>user_name</name>
<label>User ID</label>
<type>string</type>
<value>null</value>
</user_name>
<failed_attempts>
<display_value/>
<name>failed_attempts</name>
<label>Failed login attempts</label>
<type>integer</type>
<value>null</value>
</failed_attempts>
<edu_status>
<display_value>Faculty</display_value>
<name>edu_status</name>
<label>EDU Status</label>
<type>string</type>
<value>faculty</value>
</edu_status>
<latitude>
<display_value/>
<name>latitude</name>
<label>Latitude</label>
<type>float</type>
<value>null</value>
</latitude>
<roles>
<display_value/>
<name>roles</name>
<label>Roles</label>
<type>user_roles</type>
<value>null</value>
</roles>
<title>
<display_value/>
<name>title</name>
<label>Title</label>
<type>string</type>
<value>null</value>
</title>
<sys_class_name>
<display_value>Contact</display_value>
<name>sys_class_name</name>
<label>Class</label>
<type>sys_class_name</type>
<value>customer_contact</value>
</sys_class_name>
<sys_id>
<displayValue>b88d14843bc02300bfe04d72f3efc4cd</displayValue>
<label>Sys ID</label>
<type>GUID</type>
<value>b88d14843bc02300bfe04d72f3efc4cd</value>
</sys_id>
<internal_integration_user>
<display_value>false</display_value>
<name>internal_integration_user</name>
<label>Internal Integration User</label>
[Link] 75/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<type>boolean</type>
<value>0</value>
</internal_integration_user>
<ldap_server>
<display_value/>
<name>ldap_server</name>
<label>LDAP server</label>
<type>reference</type>
<value>null</value>
</ldap_server>
<mobile_phone>
<display_value/>
<name>mobile_phone</name>
<label>Mobile phone</label>
<type>ph_number</type>
<value>null</value>
</mobile_phone>
<street>
<display_value/>
<name>street</name>
<label>Street</label>
<type>multi_two_lines</type>
<value>null</value>
</street>
<company>
<display_value>Advances Super Computing</display_value>
<name>company</name>
<label>Company</label>
<type>reference</type>
<value>dc5dd0843bc02300bfe04d72f3efc41e</value>
</company>
<department>
<display_value/>
<name>department</name>
<label>Department</label>
<type>reference</type>
<value>null</value>
</department>
<first_name>
<display_value>Amy</display_value>
<name>first_name</name>
<label>First name</label>
<type>string</type>
<value>Amy</value>
</first_name>
<preferred_language>
<display_value>null</display_value>
<name>preferred_language</name>
<label>Language</label>
<type>string</type>
<value>null</value>
</preferred_language>
<introduction>
<display_value>null</display_value>
<name>introduction</name>
<label>Prefix</label>
<type>string</type>
<value>null</value>
</introduction>
<email>
<display_value>[Link]@[Link]</display_value>
<name>email</name>
<label>Email</label>
<type>email</type>
<value>[Link]@[Link]</value>
</email>
<manager>
<display_value/>
<name>manager</name>
<label>Manager</label>
<type>reference</type>
<value>null</value>
</manager>
<locked_out>
<display_value>false</display_value>
<name>locked_out</name>
<label>Locked out</label>
<type>boolean</type>
<value>0</value>
</locked_out>
<sys_mod_count>
<display_value>0</display_value>
<name>sys_mod_count</name>
<label>Updates</label>
<type>integer</type>
[Link] 76/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<value>0</value>
</sys_mod_count>
<last_name>
<display_value>Chen</display_value>
<name>last_name</name>
<label>Last name</label>
<type>string</type>
<value>Chen</value>
</last_name>
<photo>
<display_value/>
<name>photo</name>
<label>Photo</label>
<type>user_image</type>
<value>null</value>
</photo>
<avatar>
<display_value/>
<name>avatar</name>
<label>Avatar</label>
<type>user_image</type>
<value>null</value>
</avatar>
<sys_tags>
<display_value/>
<name>sys_tags</name>
<label>Tags</label>
<type>related_tags</type>
<value/>
</sys_tags>
<middle_name>
<display_value/>
<name>middle_name</name>
<label>Middle name</label>
<type>string</type>
<value>null</value>
</middle_name>
<time_zone>
<display_value>null</display_value>
<name>time_zone</name>
<label>Time zone</label>
<type>string</type>
<value>null</value>
</time_zone>
<schedule>
<display_value/>
<name>schedule</name>
<label>Schedule</label>
<type>reference</type>
<value>null</value>
</schedule>
<on_schedule>
<display_value>null</display_value>
<name>on_schedule</name>
<label>On schedule</label>
<type>choice</type>
<value>null</value>
</on_schedule>
<correlation_id>
<display_value/>
<name>correlation_id</name>
<label>Correlation ID</label>
<type>string</type>
<value>null</value>
</correlation_id>
<date_format>
<display_value>null</display_value>
<name>date_format</name>
<label>Date format</label>
<type>string</type>
<value>null</value>
</date_format>
<location>
<display_value/>
<name>location</name>
<label>Location</label>
<type>reference</type>
<value>null</value>
</location>
<account>
<display_value>Advances Super Computing</display_value>
<name>account</name>
<label>Account</label>
<type>reference</type>
<value>dc5dd0843bc02300bfe04d72f3efc41e</value>
[Link] 77/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
</account>
</contact>
<sys_domain>
<display_value>global</display_value>
<name>sys_domain</name>
<label>Domain</label>
<type>domain_id</type>
<value>global</value>
</sys_domain>
<route_reason>
<display_value/>
<name>route_reason</name>
<label>Route reason</label>
<type>integer</type>
<value>null</value>
</route_reason>
<closed_at>
<display_value/>
<name>closed_at</name>
<label>Closed</label>
<type>glide_date_time</type>
<value/>
</closed_at>
<follow_the_sun>
<display_value>false</display_value>
<name>follow_the_sun</name>
<label>Follow the sun</label>
<type>boolean</type>
<value>0</value>
</follow_the_sun>
<entitlement>
<display_value/>
<name>entitlement</name>
<label>Entitlement</label>
<type>reference</type>
<value>null</value>
</entitlement>
<business_service>
<display_value/>
<name>business_service</name>
<label>Service</label>
<type>reference</type>
<value>null</value>
</business_service>
<business_impact>
<display_value/>
<name>business_impact</name>
<label>Business impact</label>
<type>string</type>
<value>null</value>
</business_impact>
<time_worked>
<display_value/>
<name>time_worked</name>
<label>Time worked</label>
<type>timer</type>
<value/>
</time_worked>
<expected_start>
<display_value/>
<name>expected_start</name>
<label>Expected start</label>
<type>glide_date_time</type>
<value/>
</expected_start>
<opened_at>
<display_value>2018-10-11 12:11:28</display_value>
<name>opened_at</name>
<label>Opened</label>
<type>glide_date_time</type>
<value>2018-10-11 19:11:28</value>
</opened_at>
<work_end>
<display_value/>
<name>work_end</name>
<label>Actual end</label>
<type>glide_date_time</type>
<value/>
</work_end>
<resolved_at>
<display_value/>
<name>resolved_at</name>
<label>Resolved</label>
<type>glide_date_time</type>
<value/>
[Link] 78/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
</resolved_at>
<case_report>
<display_value/>
<name>case_report</name>
<label>Case Report</label>
<type>reference</type>
<value>b7baa59a0b412300c9c86c9037673a64</value>
</case_report>
<subcategory>
<display_value>Question</display_value>
<name>subcategory</name>
<label>Subcategory</label>
<type>integer</type>
<value>0</value>
</subcategory>
<work_notes>
<display_value>2018-10-11 12:12:43 - System Administrator (Work notes)\nChange [code]<a href=\'/change_request.do?sys_id=c83c5e5
<name>work_notes</name>
<label>Work notes</label>
<type>journal_input</type>
<value/>
</work_notes>
<assignment_group>
<display_value>Team Development Code Reviewers</display_value>
<name>assignment_group</name>
<label>Assignment group</label>
<type>reference</type>
<value>cfcbad03d711110050f5edcb9e61038f</value>
</assignment_group>
<cause>
<display_value/>
<name>cause</name>
<label>Cause</label>
<type>string</type>
<value>null</value>
</cause>
<description>
<display_value/>
<name>description</name>
<label>Description</label>
<type>string</type>
<value>null</value>
</description>
<proactive>
<display_value>false</display_value>
<name>proactive</name>
<label>Proactive</label>
<type>boolean</type>
<value>null</value>
</proactive>
<calendar_duration>
<display_value/>
<name>calendar_duration</name>
<label>Duration</label>
<type>glide_duration</type>
<value/>
</calendar_duration>
<close_notes>
<display_value/>
<name>close_notes</name>
<label>Resolution notes</label>
<type>string</type>
<value>null</value>
</close_notes>
<auto_close>
<display_value>false</display_value>
<name>auto_close</name>
<label>Auto close</label>
<type>boolean</type>
<value>null</value>
</auto_close>
<sys_id>
<displayValue>09ba659a0b412300c9c86c9037673af4</displayValue>
<label>Sys ID</label>
<type>GUID</type>
<value>09ba659a0b412300c9c86c9037673af4</value>
</sys_id>
<sn_esign_esignature_configuration>
<display_value/>
<name>sn_esign_esignature_configuration</name>
<label>E-signature template</label>
<type>reference</type>
<value>null</value>
</sn_esign_esignature_configuration>
<contact_type>
[Link] 79/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<display_value>Web</display_value>
<name>contact_type</name>
<label>Channel</label>
<type>string</type>
<value>web</value>
</contact_type>
<resolution_code>
<display_value>null</display_value>
<name>resolution_code</name>
<label>Resolution code</label>
<type>string</type>
<value>null</value>
</resolution_code>
<probable_cause>
<display_value/>
<name>probable_cause</name>
<label>Probable cause</label>
<type>string</type>
<value>null</value>
</probable_cause>
<urgency>
<display_value>3 - Low</display_value>
<name>urgency</name>
<label>Urgency</label>
<type>integer</type>
<value>3</value>
</urgency>
<company>
<display_value/>
<name>company</name>
<label>Company</label>
<type>reference</type>
<value>null</value>
</company>
<major_case_state>
<display_value>null</display_value>
<name>major_case_state</name>
<label>Major case state</label>
<type>string</type>
<value>null</value>
</major_case_state>
<consumer>null</consumer>
<activity_due>
<display_value>UNKNOWN</display_value>
<name>activity_due</name>
<label>Activity due</label>
<type>due_date</type>
<value/>
</activity_due>
<action_status>
<display_value>Blocked internally</display_value>
<name>action_status</name>
<label>Action status</label>
<type>integer</type>
<value>1</value>
</action_status>
<comments>
<display_value/>
<name>comments</name>
<label>Additional comments</label>
<type>journal_input</type>
<value/>
</comments>
<approval>
<display_value>Not Yet Requested</display_value>
<name>approval</name>
<label>Approval</label>
<type>string</type>
<value>not requested</value>
</approval>
<due_date>
<display_value/>
<name>due_date</name>
<label>Due date</label>
<type>glide_date_time</type>
<value/>
</due_date>
<sys_mod_count>
<display_value>9</display_value>
<name>sys_mod_count</name>
<label>Updates</label>
<type>integer</type>
<value>9</value>
</sys_mod_count>
<sys_tags>
[Link] 80/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<display_value/>
<name>sys_tags</name>
<label>Tags</label>
<type>related_tags</type>
<value/>
</sys_tags>
<active_account_escalation>
<display_value/>
<name>active_account_escalation</name>
<label>Active account escalation</label>
<type>reference</type>
<value>null</value>
</active_account_escalation>
<location>
<display_value/>
<name>location</name>
<label>Location</label>
<type>reference</type>
<value>null</value>
</location>
<category>
<display_value>Issue</display_value>
<name>category</name>
<label>Category</label>
<type>integer</type>
<value>1</value>
</category>
<incident>
<display_value/>
<name>incident</name>
<label>Incident</label>
<type>reference</type>
<value>null</value>
</incident>
<account>
<banner_image_light>
<display_value/>
<name>banner_image_light</name>
<label>UI16 Banner Image</label>
<type>user_image</type>
<value>null</value>
</banner_image_light>
<country>
<display_value>USA</display_value>
<name>country</name>
<label>Country</label>
<type>string</type>
<value>USA</value>
</country>
<parent>
<display_value/>
<name>parent</name>
<label>Parent</label>
<type>reference</type>
<value>null</value>
</parent>
<notes>
<display_value/>
<name>notes</name>
<label>Notes</label>
<type>string</type>
<value>null</value>
</notes>
<stock_symbol>
<display_value/>
<name>stock_symbol</name>
<label>Stock symbol</label>
<type>string</type>
<value>null</value>
</stock_symbol>
<discount>
<display_value/>
<name>discount</name>
<label>Discount</label>
<type>decimal</type>
<value>null</value>
</discount>
<active_escalation>
<display_value/>
<name>active_escalation</name>
<label>Active escalation</label>
<type>reference</type>
<value>null</value>
</active_escalation>
<sys_updated_on>
[Link] 81/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<display_value>2018-08-15 14:01:59</display_value>
<name>sys_updated_on</name>
<label>Updated</label>
<type>glide_date_time</type>
<value>2018-08-15 21:01:59</value>
</sys_updated_on>
<apple_icon>
<display_value/>
<name>apple_icon</name>
<label>Apple icon</label>
<type>user_image</type>
<value>null</value>
</apple_icon>
<number>
<display_value>ACCT0010212</display_value>
<name>number</name>
<label>Number</label>
<type>string</type>
<value>ACCT0010212</value>
</number>
<sys_updated_by>
<display_value>admin</display_value>
<name>sys_updated_by</name>
<label>Updated by</label>
<type>string</type>
<value>admin</value>
</sys_updated_by>
<fiscal_year>
<display_value/>
<name>fiscal_year</name>
<label>Fiscal year</label>
<type>glide_date</type>
<value/>
</fiscal_year>
<sys_created_on>
<display_value>2018-08-15 13:44:55</display_value>
<name>sys_created_on</name>
<label>Created</label>
<type>glide_date_time</type>
<value>2018-08-15 20:44:55</value>
</sys_created_on>
<contact>
<display_value/>
<name>contact</name>
<label>Contact</label>
<type>reference</type>
<value>null</value>
</contact>
<stock_price>
<display_value/>
<name>stock_price</name>
<label>Stock price</label>
<type>string</type>
<value>null</value>
</stock_price>
<state>
<display_value>CA</display_value>
<name>state</name>
<label>State / Province</label>
<type>string</type>
<value>CA</value>
</state>
<banner_image>
<display_value/>
<name>banner_image</name>
<label>Banner image</label>
<type>user_image</type>
<value>null</value>
</banner_image>
<sys_created_by>
<display_value>admin</display_value>
<name>sys_created_by</name>
<label>Created by</label>
<type>string</type>
<value>admin</value>
</sys_created_by>
<longitude>
<display_value>-121.9529992</display_value>
<name>longitude</name>
<label>Longitude</label>
<type>float</type>
<value>-121.9529992</value>
</longitude>
<zip>
<display_value>95050</display_value>
[Link] 82/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<name>zip</name>
<label>Zip / Postal code</label>
<type>string</type>
<value>95050</value>
</zip>
<profits>
<display_value>$0.00</display_value>
<name>profits</name>
<label>Profits</label>
<type>currency</type>
<value>0</value>
</profits>
<phone>
<display_value>(408) 839-2810</display_value>
<name>phone</name>
<label>Phone</label>
<type>ph_number</type>
<value>(408) 839-2810</value>
</phone>
<fax_phone>
<display_value/>
<name>fax_phone</name>
<label>Fax phone</label>
<type>ph_number</type>
<value>null</value>
</fax_phone>
<name>
<display_value>Advances Super Computing</display_value>
<name>name</name>
<label>Name</label>
<type>string</type>
<value>Advances Super Computing</value>
</name>
<banner_text>
<display_value/>
<name>banner_text</name>
<label>Banner text</label>
<type>string</type>
<value>null</value>
</banner_text>
<account_code>
<display_value>~~~~30</display_value>
<name>account_code</name>
<label>Account Code</label>
<type>string</type>
<value>~~~~30</value>
</account_code>
<primary>
<display_value>false</display_value>
<name>primary</name>
<label>Primary</label>
<type>boolean</type>
<value>0</value>
</primary>
<city>
<display_value>Santa Clara</display_value>
<name>city</name>
<label>City</label>
<type>string</type>
<value>Santa Clara</value>
</city>
<latitude>
<display_value>37.3539663</display_value>
<name>latitude</name>
<label>Latitude</label>
<type>float</type>
<value>37.3539663</value>
</latitude>
<sys_class_name>
<display_value>Account</display_value>
<name>sys_class_name</name>
<label>Class</label>
<type>sys_class_name</type>
<value>customer_account</value>
</sys_class_name>
<manufacturer>
<display_value>false</display_value>
<name>manufacturer</name>
<label>Manufacturer</label>
<type>boolean</type>
<value>0</value>
</manufacturer>
<account_parent>
<display_value/>
<name>account_parent</name>
[Link] 83/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<label>Parent Account</label>
<type>reference</type>
<value>null</value>
</account_parent>
<sys_id>
<displayValue>dc5dd0843bc02300bfe04d72f3efc41e</displayValue>
<label>Sys ID</label>
<type>GUID</type>
<value>dc5dd0843bc02300bfe04d72f3efc41e</value>
</sys_id>
<market_cap>
<display_value>$0.00</display_value>
<name>market_cap</name>
<label>Market cap</label>
<type>currency</type>
<value>0</value>
</market_cap>
<num_employees>
<display_value/>
<name>num_employees</name>
<label>Number of employees</label>
<type>integer</type>
<value>null</value>
</num_employees>
<rank_tier>
<display_value>null</display_value>
<name>rank_tier</name>
<label>Rank tier</label>
<type>string</type>
<value>null</value>
</rank_tier>
<street>
<display_value/>
<name>street</name>
<label>Street</label>
<type>multi_two_lines</type>
<value>null</value>
</street>
<vendor>
<display_value>false</display_value>
<name>vendor</name>
<label>Vendor</label>
<type>boolean</type>
<value>0</value>
</vendor>
<lat_long_error>
<display_value/>
<name>lat_long_error</name>
<label>Lat long error</label>
<type>string</type>
<value>null</value>
</lat_long_error>
<theme>
<display_value/>
<name>theme</name>
<label>Theme</label>
<type>reference</type>
<value>null</value>
</theme>
<vendor_type>
<display_value/>
<name>vendor_type</name>
<label>Vendor type</label>
<type>glide_list</type>
<value>null</value>
</vendor_type>
<website>
<display_value/>
<name>website</name>
<label>Website</label>
<type>url</type>
<value>null</value>
</website>
<revenue_per_year>
<display_value>$0.00</display_value>
<name>revenue_per_year</name>
<label>Revenue per year</label>
<type>currency</type>
<value>0</value>
</revenue_per_year>
<publicly_traded>
<display_value>false</display_value>
<name>publicly_traded</name>
<label>Publicly traded</label>
<type>boolean</type>
[Link] 84/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<value>0</value>
</publicly_traded>
<sys_mod_count>
<display_value>2</display_value>
<name>sys_mod_count</name>
<label>Updates</label>
<type>integer</type>
<value>2</value>
</sys_mod_count>
<sys_tags>
<display_value/>
<name>sys_tags</name>
<label>Tags</label>
<type>related_tags</type>
<value/>
</sys_tags>
<partner>
<display_value>false</display_value>
<name>partner</name>
<label>Partner</label>
<type>boolean</type>
<value>0</value>
</partner>
<registration_code>
<display_value/>
<name>registration_code</name>
<label>Registration Code</label>
<type>string</type>
<value>null</value>
</registration_code>
<vendor_manager>
<display_value/>
<name>vendor_manager</name>
<label>Vendor manager</label>
<type>glide_list</type>
<value>null</value>
</vendor_manager>
<account_path>
<display_value>~~~~30</display_value>
<name>account_path</name>
<label>Account Path</label>
<type>string</type>
<value>~~~~30</value>
</account_path>
<primary_contact>
<display_value>Amy Chen</display_value>
<name>primary_contact</name>
<label>Primary Contact</label>
<type>reference</type>
<value>b88d14843bc02300bfe04d72f3efc4cd</value>
</primary_contact>
<customer>
<display_value>true</display_value>
<name>customer</name>
<label>Customer</label>
<type>boolean</type>
<value>1</value>
</customer>
</account>
</result>
</response>
GET /sn_customerservice/case
Retrieves a specified set of Customer Service Management (CSM) cases.
Note: You can reference all sysparm query parameters using either their full name or their shortened
name (without the sysparm_ prefix). For example, for sysparm_limit you can also use limit.
[Link] 85/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
URL Format
Name Value
Path parameters
Name Description
Query parameters
[Link] 86/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Name Description
Based on this value, retrieves the display value and/or the actual value from
the database.
Valid values:
Default: false
Starting record index for which to begin retrieving records. Use this value to
paginate record retrieval. This functionality enables the retrieval of all
records, regardless of the number of records, in small manageable chunks.
For example, the first time you call this endpoint, sysparm_offset is set to "0".
To simply page through all available records, use
sysparm_offset=sysparm_offset+sysparm_limit , until you reach the end
sysparm_offset
of all records.
Default: 0
For example:
(sysparm_query=caller_id=javascript:[Link]()^active=true)
The encoded query supports order by. To sort responses based on certain
fields, use the ORDERBY and ORDERBYDESC clauses in sysparm_query.
For example,
sysparm_query=active=true^ORDERBYnumber^ORDERBYDESCcategory filters
all active records and orders the results in ascending order by number first,
sysparm_query and then in descending order by category.
If part of the query is invalid, such as by specifying an invalid field name, the
instance ignores the invalid part. It then returns rows using only the valid
portion of the query. You can control this behavior using the property
glide.invalid_query.returns_no_rows. Set this property to true to return no
rows on an invalid query.
Note: The glide.invalid_query.returns_no_rows property controls the behavior
of all queries across the instance, such as in lists, scripts
([Link]()), and web service APIs.
[Link] 87/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Default: true
Note: When using this endpoint, you can omit the sysparm_ prefix for this
query parameter and specify it as reference_fields.
Name Description
None
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in
a distinct way. For a list of general headers used in the REST API, see Supported REST API headers
([Link]
rest/concept/c_RESTAPI.html).
Request headers
Header Description
Response headers
Header Description
REST response data can be split into multiple result sets. Where applicable,
the response header contains different links for the first set, previous set,
next set, and the last set of records.
For example:
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=40&sysparm_limit=10000>;rel="next" ,
Link
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=40&sysparm_limit=10000>;rel="prev" ,
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=0&sysparm_limit=10000>;rel="first" ,
[Link] name>.[Link]/api/now/table/cmdb_ci?
sysparm_offset=2780&sysparm_limit=10000>;rel="last"
Response header showing the total number of records matching the request
X-Total-Count
when the sysparm_limit or sysparm_offset query parameters are specified.
Status codes
[Link] 88/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
The following status codes apply to this HTTP action. For a list of possible status codes used in the
REST API, see REST response codes ([Link]
development/page/integrate/inbound-rest/reference/r_RESTAPIHTTPResponseCodes.html).
Status codes
401 Unauthorized. The user credentials are incorrect or have not been passed.
500 Internal Server Error. A logic error on the server-side code occurred.
URL Format
[Link] 89/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Element Description
Sys_id of the account record associated with the case. Located in the
Account [customer_account] table.
account
Data type: String
Account details.
"account": {
"account_code": "String",
"account_parent": "String",
"account_path": "String",
"active_escalation": "String",
"apple_icon": Image,
"banner_image": Image,
"banner_image_light": Image,
"banner_text": "String",
"city": "String",
"contact": "String",
"country": "String",
"customer": "String",
"discount": "String",
"fax_phone": "String",
"fiscal_year": "String",
"lat_long_error": "String",
"latitude": "String",
"longitude": "String",
"market_cap": "String",
"name": "String",
"notes": "String",
"num_employees": Number,
"number": "String",
account "parent": "String",
"partner": "String",
"phone": "String",
"primary": Boolean,
"primary_contact": "String",
"profits": Number,
"publicly_traded": Boolean,
"rank_tier": "String",
"registration_code": "String",
"revenue_per_year": Number,
"state": "String",
"stock_price": "String",
"stock_symbol": "String",
"street": "String",
"sys_class_name": "String",
"sys_created_by": "String",
"sys_created_on": "String",
"sys_id": "String",
"sys_mod_count": Number,
"sys_updated_by": "String",
"sys_updated_on": "String",
"theme": "String",
"vendor": Boolean,
"vendor_manager": "String",
"vendor_type": "String",
"website": "String",
"zip": "String
}
[Link] 90/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Path from the parent to the child accounts in the account hierarchy.
Sys_id of the active escalation associated with the account. Located in the
Escalation [sn_customerservice_escalation] table.
account.active_escalation
Data type: String
City in which the company that is associated with this account resides.
Maximum length: 50
Sys_id of a contact record associated with this account. Located in the User
[sys_user] table.
[Link]
Data type: String
Country in which the company that is associated with this account resides.
Default: USA
Default: false
[Link] 91/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 15
Primary fax phone number for the company associated with this account.
Maximum length: 40
Maximum length: 40
Maximum length: 40
Flag that indicates whether the company associated with this account
manufactures goods.
Possible values:
Default: false
Maximum length: 20
Maximum length: 80
Maximum length: 40
[Link] 92/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Possible values:
Default: false
Possible values:
Default: false
Sys_id of the primary contact for the account. Located in the Contact
[customer_contact] table.
account.primary_contact
Data type: String
Maximum length: 40
Flag that indicates whether the company associated with this account is
publicly traded on the stock exchange.
Possible values:
account.publicly_traded
true: Publicly traded
false: Private company
Type of account.
Possible values:
blacklist
strategic
account.rank_tier tactical
valued
other
Maximum length: 40
[Link] 93/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Unique code that customers use when requesting a login on the customer
portal. This code provides a method for validating the customer on the
company before granting access.
account.registration_code
Data type: String
Maximum length: 40
Maximum length: 20
Maximum length: 40
Maximum length: 40
Maximum length: 40
Maximum length: 40
Maximum length: 40
[Link] 94/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the customer portal theme used by this account. Located in the
Theme [sys_ui_theme] table.
[Link]
Data type: String
Flag that indicates whether the company associated with this account is a
vendor.
Possible values:
Default: false
List of sys_ids of the vendor managers for the account. Located in the User
[sys_user] table.
account.vendor_manager
Data type: String
Maximum length: 40
Possible values:
1: Blocked internally
action_status 2: Blocked by customer
3: Blocked internally and by customer
4: Needs attention
Possible values:
Default: true
Sys_id of the active account escalation record associated with the case.
Located in the Escalation [sn_customerservice_escalation] table.
active_account_escalation
Data type: String
Sys_id of the active account escalation record associated with the case.
Located in the Escalation [sn_customerservice_escalation] table.
active_escalation
Data type: String
[Link] 95/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
List of the sys_ids of the additional persons (other than primary assignee)
that have been assigned to the account. Located in the User [sys_user] table.
additional_assignee_list Data type: Array
Maximum: 4,000
Possible values:
approved
cancelled
duplicate
not_required
approval not requested
rejected
requested
Maximum characters: 40
Sys_id of the asset record associated with the case. Located in the Asset
[alm_asset] table.
asset
Data type: String
Sys_id of the person assigned to the case. Located in the User [sys_user]
table.
assigned_to
Data type: String
Sys_id of the customer service agent group assigned to the case. Located in
the Group [sys_user_group] table.
assignment_group
Data type: String
Flag that indicates whether the case was automatically generated by another
action/event.
Possible values:
auto_created_case
true: Case was auto generated
false: Case was manually generated
Length in calendar work hours, work days, and work weeks that it took to
complete the case.
business_duration
Data type: String
[Link] 96/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the service record associated with the case. Located in the Service
[cmdb_ci_service] table.
business_service
Data type: String
Case category.
Possible values:
0: Question
category 1: Issue
2: Feature
Default: 1
Sys_id of the change request that caused the case to be created. Located in
the Change Request [change_request] table.
caused_by
Data type: String
Sys_id of the change request that caused the case to be created. Located in
the Change Request [change_request] table.
change
Data type: String
Flag that indicates whether the case is a child case that was created from a
major case.
Possible values:
child_case_creation_progress
true: Child case created from a major case
false: Not a child case
Sys_id of the user that closed the case. Located in the User [sys_user] table.
closed_by
Data type: String
Sys_id of the configuration item associated with the case. Located in the
Configuration Item [cmdb_ci] table.
cmdb_ci
Data type: String
[Link] 97/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the company associated with the case. Located in the Company
[core_company] table.
company
Data type: String
Possible values:
Default: true
Maximum length: 40
Maximum length: 40
Valid values:
dd-mm-yyyy
dd/mm/yyyy
[Link]
consumer.date_format mm-dd-yyyy
yyyy-mm-dd
Maximum length: 40
[Link] 98/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Maximum length: 50
Maximum length: 40
Maximum length: 40
Maximum length: 50
Maximum length: 50
Maximum length: 40
Notes on consumer.
Valid values:
1: Disabled
2: Enabled
[Link]
Data type: Integer
Maximum length: 40
Default: 2
[Link] 99/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Maximum length: 3
Maximum length: 40
Possible values:
Default: false
Maximum length: 40
[Link] 100/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Date and time when the consumer information was last updated.
consumer.sys_updated_on
Data type: String
Valid values:
Maximum length: 40
Maximum length: 40
Maximum length: 60
Maximum length: 40
Flag that indicates whether the contact is active within the system.
Possible values:
Default: true
[Link] 101/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Possible values:
Off work
On break
contact.agent_status
On route
On site
Maximum length: 40
Sys_id of the record that describes the building in which the contact resides;
Building [cmn_building] table.
[Link]
Data type: String
1: Outlook
contact.calendar_integration
Data type: Number (Integer)
Default: 1
Maximum length: 40
Sys_id of the cost center associated with the contact; Cost Center
[cmn_cost_center] table.
contact.cost_center
Data type: String
Maximum length: 3
Valid values:
dd/mm/yyyy
dd-mm-yyyy
[Link]
contact.date_format mm-dd-yyyy
yyyy-mm-dd
Maximum length: 40
Sys_id of the default perspective for the contact. Located in the Menu List
[sys_perspective] table.
contact.default_perspective
Data type: String
[Link] 102/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Default: faculty
Possible values:
Default: false
Maximum length: 50
Contact gender.
Maximum length: 40
Possible values:
Maximum length: 40
Possible values:
Default: false
[Link] 103/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Introduction
Maximum length: 40
Device the consumer used the last time they logged in to the system.
Maximum length: 40
Maximum length: 50
Maximum length: 40
Sys_id of the LDAP server used by the contact to last log in to the system;
LDAP Server [ldap_server_config] table.
contact.ldap_server
Data type: String
Sys_id of the record that describes the location of the contact; Location
[cmn_location] table.
[Link]
Data type: String
Possible values:
Default: false
Maximum length: 40
Sys_id of the record that describes the direct supervisor of the contact; User
[sys_user] table.
[Link]
Data type: String
Maximum length: 50
[Link] 104/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Valid values:
1: Disabled
[Link]
2: Enabled
Default: 2
Valid values:
Maximum length: 40
Maximum length: 40
Maximum length: 3
Maximum length: 40
Sys_id of the record that describes the work schedule for the associated
contact; Schedule [cmn_schedule] table.
[Link]
Data type: String
[Link] 105/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Maximum length: 80
Maximum length: 40
Default: / (global)
Number of times that the associated contact record has been modified.
contact.sys_mod_count
Data type: Number (Integer)
Maximum length: 40
[Link] 106/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Valid values:
Maximum length: 40
Sys_id of the record that contains the time sheet policy for the associated
contact; Time Sheet Policy [time_sheet_policy] table.
contact.time_sheet_policy
Data type: String
Maximum length: 40
Maximum length: 60
Maximum length: 40
Flag that indicates whether the associated contact has VIP status.
Possible values:
true: VIP
[Link]
false: Not VIP
Default: false
Flag that indicates whether the contact can only access services through the
web.
Possible values:
Default: false
Maximum length: 40
Maximum length: 70
[Link] 107/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
chat
email
phone
contact_type
social
web
Maximum length: 40
Sys_id of the contract associated with the case. Located in the Contract
[ast_contract] table. This contract contains information about the type of
support that is provided to the company associated to the case. A contract
contract can include a company and contact and the specific assets that are covered.
A contract can also include multiple service entitlements and SLAs.
Correlation display.
Correlation identifier.
Sys_id of the parent execution plan for this case. Located in the Execution
Plan [sc_cat_item_delivery_plan] table.
delivery_plan
Data type: String
Sys_id of the execution plan task. Located in the Execution Plan Task
[sc_cat_item_delivery_task] table.
delivery_task
Data type: String
Sys_id of the entitlement record associated with the case. Located in the
Entitlement [service_entitlement] table. Entitlements define the type of
support that a customer receives as well as the supported communication
entitlement channels. An entitlement can be associated with a product, an asset, an
account, or a contract.
[Link] 108/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Possible values:
0: Normal
1: Moderate
escalation
2: High
3: Overdue
Default: 0
Date and time when the first action was taken on the case.
first_response_time
Data type: String
Flag that indicates whether the case should be handed-off for global follow-
up.
Possible values:
follow_the_sun
true: Case should be handed-off for global follow-up
false: Case should not be handed-off for global follow-up
Default: false
List of sys_ids of the group records associated with the case. Located in the
Group [sys_user_group] table.
group_list
Data type: Array
Impact on customer.
Possible values:
1: High
impact 2: Medium
3: Low
Default: 3
Flag that indicates if there is a knowledge base article available for the
specified issue.
Possible values:
Default: false
[Link] 109/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Flag that indicates whether the case was resolved in alignment with the
associated service level agreement.
Possible values:
Default: true
Possible values:
Maximum length: 40
Possible values:
Default: false
Flag that indicates whether to add the resolution notes to the comments.
Possible values:
notes_to_comments true: Resolutions notes, when added, are also added to the comments
false: Resolution notes in comments are not required
Possible values:
1: Do not notify
notify 2: Send email
3: Telephone
Default: 1
Case number.
Maximum length: 40
Sys_id of the person that initially opened the case. Located in the User
[sys_user] table.
opened_by
Data type: String
[Link] 110/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the parent case to which this case (child) is associated. Located in
the Task [task] table.
parent
Data type: String
Sys_id of the partner associated with the case. Located in the Account
[customer_account] table.
partner
Data type: String
Sys_id of the partner contact associated with the case. Located in the
Contact [customer_contact] table.
partner_contact
Data type: String
1: Critical
2: High
priority 3: Moderate
4: Low
Default: 4
Sys_id of the issue that the customer is encountering. Located in the Problem
[problem] table.
problem
Data type: String
Sys_id of the product model of the asset associated to the case. Located in
the Product Model [cmdb_model] table. A model is a specific version or
product configuration of an asset (for example, Apple Mac Book Pro).
Number of times that the case was reassigned to a person that is responsible
for moving the case forward.
reassignment_count Data type: Number (Integer)
Default: 0
Sys_id of the record that contains the list of recipients for communications
about this case. Located in the Recipients List
recipient_list [sn_publications_recipients_list] table.
Sys_id of the task to execute if the case is rejected. Located in the Task [task]
table.
rejection_goto
Data type: String
Maximum length: 40
[Link] 111/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the person that resolved the case. Located in the User [sys_user]
table.
resolved_by
Data type: String
Array of objects in which each object describes a single value for the
requested field.
"result": [
result
{
"label": "String",
"value": "String"
}
]
Field value.
[Link]
Data type: String
List of the unique identifiers (sys_id) of the skills needed to complete the
case. Located in the Skill [cmn_skill] table.
skills
Data type: String
Date/time at which the case must be closed based on the associated service
level agreement.
sla_due
Data type: String
[Link] 112/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Array of objects that contain details for a specific social media profile, such as
Facebook, Twitter, or YouTube.
"sn_app_cs_social_social_profile": [
{
"account": "String",
"channel": [Array],
"contact": {Object},
"consumer": {Object},
"created_on": "String",
"profile": "String",
sn_app_cs_social_social_profile
"profile_url": "String",
"social_id": "String",
"source": "String",
"sys_created_by": "String",
"sys_created_on": "String",
"sys_id": "String",
"sys_mod_count": Number,
"sys_tags": "String",
"sys_updated_by": "String",
"sys_updated_on": "String"
}
]
Unique identifier of the record containing account information for the social
sn_app_cs_social_social_profile.ac media profile. Located in the Account [customer_account] table.
count
Data type: String
"channel": {
"name": "String",
"sys_class_name": "String",
"sys_created_by": "String",
"sys_created_on": "String",
sn_app_cs_social_social_profile.ch
"sys_mod_count": Number,
annel
"sys_package": "String",
"sys_policy": "String",
"sys_scope": "String",
"sys_tags": "String",
"sys_update_name": "String",
"sys_updated_by": "String",
"sys_updated_on": "String"
}
[Link] 113/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Number of times that information was modified for the associated social
sn_app_cs_social_social_profile.ch media profile channel.
annel.sys_mod_count
Data type: Integer
Unique identifier of the record that contains information about the package
sn_app_cs_social_social_profile.ch associated with the profile; Package [sys_package] table.
annel.sys_package
Data type: Reference
Possible values:
sn_app_cs_social_social_profile.ch protected
annel.sys_policy read
Maximum length: 40
Unique identifier of the record that contains information about the scope of
sn_app_cs_social_social_profile.ch the social profile; Application [sys_scope] table.
annel.sys_scope
Data type: Reference
Name of the person that last updated the social media profile channel.
sn_app_cs_social_social_profile.ch Data type: String
annel.sys_update_name
Maximum length: 250
Date and time the social media profile channel was last updated.
sn_app_cs_social_social_profile.ch Data type: Date/time
annel.sys_updated_on
Maximum length: 40
[Link] 114/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
"consumer": {
"active": Boolean,
"business_phone": "String",
"city": "String",
"country": "String",
"date_format": "String",
"email": "String",
"fax": "String",
"first_name": "String",
"gender": "String",
"home_phone": "String",
"household": "String",
"last_name": "String",
"middle_name": "String",
"mobile_phone": "String",
"name": "String",
"notes": "String",
"notification": Number,
sn_app_cs_social_social_profile.co
"number": "String",
nsumer
"photo": Image,
"preferred_language": "String",
"prefix": "String",
"primary": Boolean,
"state": "String",
"street": "String",
"suffix": "String",
"sys_created_by": "String",
"sys_created_on": "String",
"sys_domain": "String",
"sys_id": "String",
"sys_mod_count": Number,
"sys_tags": "String",
"sys_updated_by": "String",
"sys_updated_on": "String",
"time_format": "String",
"time_zone": "String",
"title": "String",
"user": "String",
"zip": "String"
}
Possible values:
Default: true
[Link] 115/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Valid values:
dd-mm-yyyy
dd/mm/yyyy
[Link]
sn_app_cs_social_social_profile.co
nsumer.date_format mm-dd-yyyy
yyyy-mm-dd
Maximum length: 40
[Link] 116/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Notes on consumer.
sn_app_cs_social_social_profile.co Data type: String
[Link]
Maximum length: 4,000
Valid values:
1: Disabled
sn_app_cs_social_social_profile.co 2: Enabled
[Link]
Data type: Integer
Maximum length: 40
Default: 2
Possible values:
Default: false
[Link] 117/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
sn_app_cs_social_social_profile.co
Consumer system tags.
nsumer.sys_tags
Date and time when the consumer information was last updated.
sn_app_cs_social_social_profile.co
nsumer.sys_updated_on Data type: String
Valid values:
Maximum length: 40
Maximum length: 60
[Link] 118/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Flag that indicates whether the contact is active within the system.
Possible values:
Default: true
Possible values:
Off work
sn_app_cs_social_social_profile.co On break
ntact.agent_status On route
On site
Maximum length: 40
Sys_id of the record that describes the building in which the contact resides;
sn_app_cs_social_social_profile.co Building [cmn_building] table.
[Link]
Data type: String
1: Outlook
sn_app_cs_social_social_profile.co
ntact.calendar_integration Data type: Number (Integer)
Default: 1
Sys_id of the cost center associated with the contact; Cost Center
sn_app_cs_social_social_profile.co [cmn_cost_center] table.
ntact.cost_center
Data type: String
[Link] 119/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Valid values:
dd/mm/yyyy
dd-mm-yyyy
[Link]
sn_app_cs_social_social_profile.co
ntact.date_format mm-dd-yyyy
yyyy-mm-dd
Maximum length: 40
Sys_id of the default perspective for the contact. Located in the Menu List
sn_app_cs_social_social_profile.co [sys_perspective] table.
ntact.default_perspective
Data type: String
Default: faculty
Possible values:
sn_app_cs_social_social_profile.co true: Multifactor authorization enabled
ntact.enable_multifactor_authn
false: Multifactor authorization disabled
Default: false
[Link] 120/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Contact gender.
sn_app_cs_social_social_profile.co
Data type: String
[Link]
Maximum length: 40
Possible values:
sn_app_cs_social_social_profile.co true: Contact location obtained through geotracking
ntact.geolocation_tracked
false: Contact location not obtained through geotracking
Possible values:
Default: false
Introduction
sn_app_cs_social_social_profile.co Data type: String
[Link]
Maximum length: 40
Device the consumer used the last time they logged in to the system.
sn_app_cs_social_social_profile.co
Data type: String
ntact.last_login_device
Maximum length: 40
[Link] 121/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the LDAP server used by the contact to last log in to the system;
sn_app_cs_social_social_profile.co LDAP Server [ldap_server_config] table.
ntact.ldap_server
Data type: String
Sys_id of the record that describes the location of the contact; Location
sn_app_cs_social_social_profile.co [cmn_location] table.
[Link]
Data type: String
Possible values:
Default: false
Sys_id of the record that describes the direct supervisor of the contact; User
sn_app_cs_social_social_profile.co [sys_user] table.
[Link]
Data type: String
Valid values:
sn_app_cs_social_social_profile.co 1: Disabled
[Link] 2: Enabled
Default: 2
Valid values:
Maximum length: 40
[Link] 122/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the record that describes the work schedule for the associated
sn_app_cs_social_social_profile.co contact; Schedule [cmn_schedule] table.
[Link]
Data type: String
Default: / (global)
[Link] 123/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Number of times that the associated contact record has been modified.
sn_app_cs_social_social_profile.co
ntact.sys_mod_count Data type: Number (Integer)
sn_app_cs_social_social_profile.co
Contact system tags.
ntact.sys_tags
Valid values:
Maximum length: 40
Sys_id of the record that contains the time sheet policy for the associated
sn_app_cs_social_social_profile.co contact; Time Sheet Policy [time_sheet_policy] table.
ntact.time_sheet_policy
Data type: String
Maximum length: 40
Flag that indicates whether the associated contact has VIP status.
Possible values:
Default: false
[Link] 124/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Flag that indicates whether the contact can only access services through the
web.
Possible values:
sn_app_cs_social_social_profile.co true: Web access only
ntact.web_service_access_only
false: Access through all available methods
Default: false
sn_app_cs_social_social_profile.cre
Date and time the associated social media profile was initially created.
ated_on
Social profile.
sn_app_cs_social_social_profile.pr Data type: String
ofile
Maximum length: 255
Unique social media account provider identifier for the associated social
media account.
sn_app_cs_social_social_profile.so
cial_id Data type: String
Date and time the social media profile was initially created.
sn_app_cs_social_social_profile.sy
s_created_on
Data type: String (Date/time)
Number of times that information was modified for the associated social
sn_app_cs_social_social_profile.sy media profile.
s_mod_count
Data type: Number (Integer)
sn_app_cs_social_social_profile.sy
Profile system tags.
s_tags
[Link] 125/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Possible values:
1: New
3: Closed
state 6: Resolved
10: Open
18: Awaiting Info
Default: 1
Case subcategory.
Possible values:
subcategory 0: Question
Default: 0
Sys_id of the CSM manager assigned to the case. Located in the User
[sys_user] table.
support_manager
Data type: String
Possible values:
sync_driver true: Driver is synchronized
false: Driver is not synchronized
Maximum length: 80
Maximum length: 40
Default: global
Domain path.
Default: /
[Link] 126/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 32
Maximum length: 40
Possible values:
do_nothing
proceed
upon_approval
Data type: String
Maximum length: 40
Default: proceed
Possible values:
cancel
goto
upon_reject
Data type: String
Maximum length: 40
Default: cancel
Possible values:
1: High
urgency 2: Medium
3: Low
Default: 3
[Link] 127/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
List of sys_ids of the users who receive notifications about this case when
additional comments are added or if the state of a case is changed to
watch_list Resolved or Closed. Located in the User [sys_user] table.
Sys_id of the workflow activity record associated with the case. Located in
the Workflow Activity [wf_activity] table.
wf_activity
Data type: String
Information about how to resolve the case, or steps taken to resolve it.
List of sys_ids of the internal users who receive notifications about this case
when work notes are added. Located in the User [sys_user] table.
work_notes_list
Data type: Array
Curl
Retrieve the third and fourth CSM cases listed for a specific account.
curl "[Link]
--request GET \
--header "Accept:application/json" \
--user "username":"password"
[Link] 128/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
{
"result": [{
"parent": "",
"caused_by": "",
"watch_list": "",
"active_escalation": "",
"upon_reject": "cancel",
"sys_updated_on": "2017-06-17 16:37:13",
"support_manager": "",
"approval_history": "",
"skills": "a6d64b11d772120058c92cf65e610357,9b178b11d772120058c92cf65e610382,1c76ec15d703120058c92cf65e61034a",
"number": "CS0000009",
"problem": "",
"state": "18",
"case": "Advanced and large routers making noise
CS0000009",
"sys_created_by": "alex linde",
"knowledge": "false",
"order": "",
"cmdb_ci": "",
"delivery_plan": "",
"impact": "3",
"contract": "",
"active": "true",
"work_notes_list": "",
"auto_created_case": "false",
"priority": "3",
"sys_domain_path": "/",
"rejection_goto": "",
"first_response_time": "",
"business_duration": "",
"group_list": "",
"child_case_creation_progress": "false",
"sync_driver": "false",
"approval_set": "",
"wf_activity": "",
"short_description": "Advanced and large routers making noise",
"correlation_display": "",
"delivery_task": "",
"work_start": "",
"recipient_list": "",
"additional_assignee_list": "",
"notify": "1",
"sys_class_name": "sn_customerservice_case",
"closed_by": "",
"follow_up": "",
"contact_local_time": "",
"sn_app_cs_social_social_profile": "",
"reassignment_count": "1",
"contact_time_zone": "",
"notes_to_comments": "false",
"assigned_to": "85453c616fc331003b3c498f5d3ee4fa",
"product": "5f5fbcc3c0a8010e00f3b27814f3b96b",
"variables": "",
"variable_pool": "",
"hierarchical_variables": "variable_pool",
"sla_due": "",
"change": "",
"comments_and_work_notes": "",
"partner": "",
"escalation": "0",
"upon_approval": "proceed",
"partner_contact": "",
"correlation_id": "",
"asset": "a8fb6024d7700200e5982cf65e61034d",
"made_sla": "true",
"resolved_by": "",
"sys_updated_by": "admin",
"opened_by": "60beb5e7d7600200e5982cf65e6103ad",
"user_input": "",
"sys_created_on": "2016-09-19 16:49:18",
"contact": {
"country": "",
"calendar_integration": "1",
"last_position_update": "",
"last_login_time": "2018-05-10 19:50:26",
"last_login_device": "0:0:0:0:0:0:0:1%0",
"source": "",
"sys_updated_on": "2018-02-16 21:30:03",
"building": "",
"web_service_access_only": "false",
"notification": "1",
"sys_updated_by": "venki",
"enable_multifactor_authn": "false",
[Link] 129/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
[Link] 130/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
"sys_mod_count": "5",
"sys_tags": "",
"active_account_escalation": "",
"location": "",
"category": "1",
"account": {
"banner_image_light": "",
"country": "USA",
"parent": "",
"notes": "",
"stock_symbol": "",
"discount": "",
"active_escalation": "",
"sys_updated_on": "2019-01-03 19:37:35",
"apple_icon": "",
"number": "ACCT0000001",
"sys_updated_by": "admin",
"fiscal_year": "",
"sys_created_on": "2018-02-20 21:29:16",
"contact": "4d147a386f0331003b3c498f5d3ee437",
"stock_price": "",
"state": "",
"banner_image": "",
"sys_created_by": "venki",
"longitude": "-122.4005464",
"zip": "94103",
"profits": "0",
"phone": "(626) 722-6999",
"fax_phone": "",
"name": "Boxeo",
"banner_text": "",
"account_code": "~~~~1",
"primary": "false",
"city": "San Francisco",
"latitude": "37.7838391",
"sys_class_name": "customer_account",
"manufacturer": "false",
"account_parent": "",
"sys_id": "86837a386f0331003b3c498f5d3ee4ca",
"market_cap": "0",
"num_employees": "",
"rank_tier": "",
"street": "747 Howard St",
"vendor": "false",
"lat_long_error": "",
"theme": "",
"vendor_type": "",
"website": "[Link]",
"revenue_per_year": "0",
"publicly_traded": "false",
"sys_mod_count": "9",
"sys_tags": "",
"partner": "false",
"registration_code": "BOXEO",
"vendor_manager": "",
"account_path": "~~~~1",
"primary_contact": "4d147a386f0331003b3c498f5d3ee437",
"customer": "true"
}
}, {
"parent": "",
"caused_by": "",
"watch_list": "",
"active_escalation": "",
"upon_reject": "cancel",
"sys_updated_on": "2019-01-15 23:28:00",
"support_manager": "",
"approval_history": "",
"skills": "a6d64b11d772120058c92cf65e610357,9b178b11d772120058c92cf65e610382,1c76ec15d703120058c92cf65e61034a",
"number": "CS0000005",
"problem": "",
"state": "6",
"case": "Urgent issue, need help ...
CS0000005",
"sys_created_by": "admin",
"knowledge": "false",
"order": "",
"cmdb_ci": "",
"delivery_plan": "",
"impact": "",
"contract": "495e16b96f0731003b3c498f5d3ee4af",
"active": "true",
"work_notes_list": "",
"auto_created_case": "false",
"priority": "1",
"sys_domain_path": "/",
[Link] 131/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
"rejection_goto": "",
"first_response_time": "",
"business_duration": "",
"group_list": "",
"child_case_creation_progress": "false",
"sync_driver": "false",
"approval_set": "",
"wf_activity": "",
"short_description": "Urgent issue, need help ...",
"correlation_display": "",
"delivery_task": "",
"work_start": "",
"recipient_list": "",
"additional_assignee_list": "",
"notify": "",
"sys_class_name": "sn_customerservice_case",
"closed_by": "",
"follow_up": "",
"contact_local_time": "",
"sn_app_cs_social_social_profile": "",
"reassignment_count": "",
"contact_time_zone": "",
"notes_to_comments": "false",
"assigned_to": "85453c616fc331003b3c498f5d3ee4fa",
"product": "9068b0a16fc331003b3c498f5d3ee438",
"variables": "",
"variable_pool": "",
"hierarchical_variables": "variable_pool",
"sla_due": "",
"change": "",
"comments_and_work_notes": "",
"partner": "",
"escalation": "",
"upon_approval": "proceed",
"partner_contact": "",
"correlation_id": "",
"asset": "b8defca16fc331003b3c498f5d3ee4e7",
"made_sla": "false",
"resolved_by": "",
"sys_updated_by": "[Link]",
"opened_by": "ddce70866f9331003b3c498f5d3ee417",
"user_input": "",
"sys_created_on": "2019-01-02 20:00:00",
"contact": {
"country": "",
"calendar_integration": "1",
"last_position_update": "",
"last_login_time": "2018-03-10 21:48:11",
"last_login_device": "",
"source": "",
"sys_updated_on": "2019-01-03 05:49:34",
"building": "",
"web_service_access_only": "false",
"notification": "2",
"sys_updated_by": "system",
"enable_multifactor_authn": "false",
"sys_created_on": "2018-03-04 20:26:32",
"sys_domain": "global",
"agent_status": "",
"state": "",
"vip": "false",
"sys_created_by": "admin",
"longitude": "",
"zip": "",
"home_phone": "",
"time_format": "",
"last_login": "",
"default_perspective": "",
"geolocation_tracked": "false",
"active": "true",
"time_sheet_policy": "",
"sys_domain_path": "/",
"phone": "+1 858 287 7834",
"cost_center": "",
"name": "George Warren",
"employee_number": "",
"gender": "",
"city": "",
"user_name": "[Link]",
"failed_attempts": "",
"edu_status": "",
"latitude": "",
"roles": "",
"title": "Network Administrator",
"sys_class_name": "customer_contact",
[Link] 132/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
"sys_id": "ddce70866f9331003b3c498f5d3ee417",
"internal_integration_user": "false",
"ldap_server": "",
"mobile_phone": "+1 858 867 7857",
"street": "",
"company": "86837a386f0331003b3c498f5d3ee4ca",
"department": "",
"first_name": "George",
"preferred_language": "",
"introduction": "",
"email": "[Link]@[Link]",
"manager": "",
"locked_out": "false",
"sys_mod_count": "3",
"last_name": "Warren",
"photo": "",
"sys_tags": "",
"middle_name": "",
"time_zone": "",
"schedule": "",
"on_schedule": "",
"date_format": "",
"location": "25ab8e460a0a0bb300857304ff811af5",
"account": "86837a386f0331003b3c498f5d3ee4ca"
},
"sys_domain": "global",
"closed_at": "",
"follow_the_sun": "false",
"entitlement": "1eb7893a6f1b31003b3c498f5d3ee4dd",
"business_service": "",
"business_impact": "",
"time_worked": "",
"expected_start": "",
"opened_at": "2019-01-02 20:00:00",
"work_end": "",
"resolved_at": "",
"case_report": "",
"subcategory": "0",
"work_notes": "",
"assignment_group": "0df0c400c322310015519f2974d3ae23",
"cause": "",
"description": "",
"calendar_duration": "",
"close_notes": "",
"sys_id": "cf866683c3033100b12d9f2974d3ae1f",
"contact_type": "web",
"resolution_code": "",
"probable_cause": "",
"urgency": "3",
"company": "",
"major_case_state": "",
"consumer": "",
"activity_due": "",
"comments": "",
"approval": "",
"due_date": "2016-08-04 20:36:23",
"sys_mod_count": "0",
"sys_tags": "",
"active_account_escalation": "",
"location": "",
"category": "1",
"account": {
"banner_image_light": "",
"country": "USA",
"parent": "",
"notes": "",
"stock_symbol": "",
"discount": "",
"active_escalation": "",
"sys_updated_on": "2019-01-03 19:37:35",
"apple_icon": "",
"number": "ACCT0000001",
"sys_updated_by": "admin",
"fiscal_year": "",
"sys_created_on": "2018-02-20 21:29:16",
"contact": "4d147a386f0331003b3c498f5d3ee437",
"stock_price": "",
"state": "",
"banner_image": "",
"sys_created_by": "venki",
"longitude": "-122.4005464",
"zip": "94103",
"profits": "0",
"phone": "(626) 722-6999",
"fax_phone": "",
[Link] 133/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
"name": "Boxeo",
"banner_text": "",
"account_code": "~~~~1",
"primary": "false",
"city": "San Francisco",
"latitude": "37.7838391",
"sys_class_name": "customer_account",
"manufacturer": "false",
"account_parent": "",
"sys_id": "86837a386f0331003b3c498f5d3ee4ca",
"market_cap": "0",
"num_employees": "",
"rank_tier": "",
"street": "747 Howard St",
"vendor": "false",
"lat_long_error": "",
"theme": "",
"vendor_type": "",
"website": "[Link]",
"revenue_per_year": "0",
"publicly_traded": "false",
"sys_mod_count": "9",
"sys_tags": "",
"partner": "false",
"registration_code": "BOXEO",
"vendor_manager": "",
"account_path": "~~~~1",
"primary_contact": "4d147a386f0331003b3c498f5d3ee437",
"customer": "true"
}
}]
}
Python
This request retrieves the seventh and eighth cases for a customer account, with display values
instead of literal database values.
# Decode the XML response into a dictionary and use the data
print([Link])
Because sysparm_display_value is set to "true", the includes display values, such as the state value
of "Open," instead of literal database values. Removing this parameter or setting its value to "false"
[Link] 134/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
[Link] 135/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
[Link] 136/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<last_position_update/>
<last_login_time>2020-03-18 05:21:58</last_login_time>
<last_login_device>[Link]</last_login_device>
<source/>
<sys_updated_on>2020-03-17 23:24:26</sys_updated_on>
<building/>
<web_service_access_only>false</web_service_access_only>
<notification>Enable</notification>
<sys_updated_by>system</sys_updated_by>
<enable_multifactor_authn>false</enable_multifactor_authn>
<sys_created_on>2019-05-16 13:26:32</sys_created_on>
<sys_domain>global</sys_domain>
<agent_status>null</agent_status>
<state/>
<vip>true</vip>
<sys_created_by>admin</sys_created_by>
<longitude/>
<zip/>
<home_phone/>
<time_format>null</time_format>
<last_login>2020-03-18</last_login>
<default_perspective/>
<geolocation_tracked>false</geolocation_tracked>
<active>true</active>
<time_sheet_policy/>
<sys_domain_path>/</sys_domain_path>
<transaction_log/>
<phone>+1 858 287 7834</phone>
<cost_center/>
<name>George Warren</name>
<employee_number/>
<gender>null</gender>
<city/>
<hr_integration_source/>
<user_name>[Link]</user_name>
<failed_attempts>0</failed_attempts>
<edu_status>null</edu_status>
<latitude/>
<roles/>
<title>Network Administrator</title>
<sys_class_name>Contact</sys_class_name>
<sys_id>ddce70866f9331003b3c498f5d3ee417</sys_id>
<internal_integration_user>false</internal_integration_user>
<ldap_server/>
<mobile_phone>+1 858 867 7857</mobile_phone>
<street/>
<company>Boxeo</company>
<department/>
<first_name>George</first_name>
<preferred_language>null</preferred_language>
<introduction>null</introduction>
<email>[Link]@[Link]</email>
<manager/>
<locked_out>false</locked_out>
<sys_mod_count>5</sys_mod_count>
<last_name>Warren</last_name>
<photo/>
<avatar>[Link]</avatar>
<sys_tags/>
<middle_name/>
<time_zone>null</time_zone>
<schedule/>
<on_schedule>null</on_schedule>
<correlation_id/>
<date_format>null</date_format>
<location>2200 Powell Street, San Francisco,CA</location>
<account>Boxeo</account>
</contact>
<sys_domain>global</sys_domain>
<route_reason/>
<closed_at/>
<follow_the_sun>false</follow_the_sun>
<entitlement/>
<business_service/>
<business_impact/>
<time_worked/>
<expected_start/>
<opened_at>2020-03-18 00:21:53</opened_at>
<work_end/>
<resolved_at>2020-03-18 05:46:14</resolved_at>
<case_report>CSR0010014</case_report>
<subcategory>Question</subcategory>
<work_notes/>
<assignment_group/>
<cause/>
[Link] 137/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<description/>
<proactive>false</proactive>
<calendar_duration/>
<close_notes/>
<auto_close>false</auto_close>
<sys_id>04692d36db2b0010f99ed3fa5e96191f</sys_id>
<sn_esign_esignature_configuration/>
<contact_type>Phone</contact_type>
<resolution_code>null</resolution_code>
<probable_cause/>
<urgency>3 - Low</urgency>
<company/>
<major_case_state>null</major_case_state>
<consumer/>
<activity_due>UNKNOWN</activity_due>
<action_status>Needs attention</action_status>
<comments>2020-03-18 05:47:00 - George Warren (Additional comments)\nreject resolution\n\n2020-03-18 05:46:14 - test external (Additi
<approval>Not Yet Requested</approval>
<due_date/>
<sys_mod_count>5</sys_mod_count>
<sys_tags/>
<active_account_escalation/>
<location/>
<category>Issue</category>
<incident/>
<account>
<banner_image_light/>
<country>USA</country>
<parent/>
<notes/>
<stock_symbol/>
<discount/>
<active_escalation/>
<sys_updated_on>2020-03-16 12:37:35</sys_updated_on>
<apple_icon/>
<number>ACCT0000001</number>
<sys_updated_by>admin</sys_updated_by>
<fiscal_year/>
<sys_created_on>2019-05-04 14:29:16</sys_created_on>
<contact>Julie Lewis</contact>
<stock_price/>
<state/>
<banner_image/>
<sys_created_by>venki</sys_created_by>
<longitude>-122.4005464</longitude>
<zip>94103</zip>
<profits>$0.00</profits>
<phone>(626) 722-6999</phone>
<fax_phone/>
<name>Boxeo</name>
<banner_text/>
<account_code>~~~~1</account_code>
<primary>false</primary>
<city>San Francisco</city>
<latitude>37.7838391</latitude>
<sys_class_name>Account</sys_class_name>
<manufacturer>false</manufacturer>
<account_parent/>
<sys_id>86837a386f0331003b3c498f5d3ee4ca</sys_id>
<market_cap>$0.00</market_cap>
<num_employees/>
<rank_tier>null</rank_tier>
<street>747 Howard St</street>
<vendor>false</vendor>
<lat_long_error/>
<theme/>
<vendor_type/>
<website>[Link]</website>
<revenue_per_year>$0.00</revenue_per_year>
<publicly_traded>false</publicly_traded>
<sys_mod_count>9</sys_mod_count>
<sys_tags/>
<partner>false</partner>
<registration_code>BOXEO</registration_code>
<vendor_manager/>
<account_path>~~~~1</account_path>
<primary_contact>Julie Lewis</primary_contact>
<customer>true</customer>
</account>
</result>
<result>
<parent/>
<caused_by/>
<watch_list/>
<active_escalation/>
[Link] 138/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
[Link] 139/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<enable_multifactor_authn>false</enable_multifactor_authn>
<sys_created_on>2019-05-16 13:26:32</sys_created_on>
<sys_domain>global</sys_domain>
<agent_status>null</agent_status>
<state/>
<vip>true</vip>
<sys_created_by>admin</sys_created_by>
<longitude/>
<zip/>
<home_phone/>
<time_format>null</time_format>
<last_login>2020-03-18</last_login>
<default_perspective/>
<geolocation_tracked>false</geolocation_tracked>
<active>true</active>
<time_sheet_policy/>
<sys_domain_path>/</sys_domain_path>
<transaction_log/>
<phone>+1 858 287 7834</phone>
<cost_center/>
<name>George Warren</name>
<employee_number/>
<gender>null</gender>
<city/>
<hr_integration_source/>
<user_name>[Link]</user_name>
<failed_attempts>0</failed_attempts>
<edu_status>null</edu_status>
<latitude/>
<roles/>
<title>Network Administrator</title>
<sys_class_name>Contact</sys_class_name>
<sys_id>ddce70866f9331003b3c498f5d3ee417</sys_id>
<internal_integration_user>false</internal_integration_user>
<ldap_server/>
<mobile_phone>+1 858 867 7857</mobile_phone>
<street/>
<company>Boxeo</company>
<department/>
<first_name>George</first_name>
<preferred_language>null</preferred_language>
<introduction>null</introduction>
<email>[Link]@[Link]</email>
<manager/>
<locked_out>false</locked_out>
<sys_mod_count>5</sys_mod_count>
<last_name>Warren</last_name>
<photo/>
<avatar>[Link]</avatar>
<sys_tags/>
<middle_name/>
<time_zone>null</time_zone>
<schedule/>
<on_schedule>null</on_schedule>
<correlation_id/>
<date_format>null</date_format>
<location>2200 Powell Street, San Francisco,CA</location>
<account>Boxeo</account>
</contact>
<sys_domain>global</sys_domain>
<route_reason/>
<closed_at/>
<follow_the_sun>false</follow_the_sun>
<entitlement>24x7 Customer Support</entitlement>
<business_service/>
<business_impact/>
<time_worked/>
<expected_start/>
<opened_at>2020-03-18 00:20:22</opened_at>
<work_end/>
<resolved_at/>
<case_report>CSR0010012</case_report>
<subcategory>Question</subcategory>
<work_notes/>
<assignment_group/>
<cause/>
<description/>
<proactive>false</proactive>
<calendar_duration/>
<close_notes/>
<auto_close>false</auto_close>
<sys_id>69f86df2db2b0010f99ed3fa5e96194d</sys_id>
<sn_esign_esignature_configuration/>
<contact_type>Web</contact_type>
<resolution_code>null</resolution_code>
[Link] 140/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
<probable_cause/>
<urgency>3 - Low</urgency>
<company/>
<major_case_state>null</major_case_state>
<consumer/>
<activity_due>UNKNOWN</activity_due>
<action_status/>
<comments>2020-03-18 00:20:22 - George Warren (Additional comments)\ndsdf sdasfd\n\n</comments>
<approval>Not Yet Requested</approval>
<due_date/>
<sys_mod_count>2</sys_mod_count>
<sys_tags/>
<active_account_escalation/>
<location/>
<category>Issue</category>
<incident/>
<account>
<banner_image_light/>
<country>USA</country>
<parent/>
<notes/>
<stock_symbol/>
<discount/>
<active_escalation/>
<sys_updated_on>2020-03-16 12:37:35</sys_updated_on>
<apple_icon/>
<number>ACCT0000001</number>
<sys_updated_by>admin</sys_updated_by>
<fiscal_year/>
<sys_created_on>2019-05-04 14:29:16</sys_created_on>
<contact>Julie Lewis</contact>
<stock_price/>
<state/>
<banner_image/>
<sys_created_by>venki</sys_created_by>
<longitude>-122.4005464</longitude>
<zip>94103</zip>
<profits>$0.00</profits>
<phone>(626) 722-6999</phone>
<fax_phone/>
<name>Boxeo</name>
<banner_text/>
<account_code>~~~~1</account_code>
<primary>false</primary>
<city>San Francisco</city>
<latitude>37.7838391</latitude>
<sys_class_name>Account</sys_class_name>
<manufacturer>false</manufacturer>
<account_parent/>
<sys_id>86837a386f0331003b3c498f5d3ee4ca</sys_id>
<market_cap>$0.00</market_cap>
<num_employees/>
<rank_tier>null</rank_tier>
<street>747 Howard St</street>
<vendor>false</vendor>
<lat_long_error/>
<theme/>
<vendor_type/>
<website>[Link]</website>
<revenue_per_year>$0.00</revenue_per_year>
<publicly_traded>false</publicly_traded>
<sys_mod_count>9</sys_mod_count>
<sys_tags/>
<partner>false</partner>
<registration_code>BOXEO</registration_code>
<vendor_manager/>
<account_path>~~~~1</account_path>
<primary_contact>Julie Lewis</primary_contact>
<customer>true</customer>
</account>
</result>
</response>
POST /sn_customerservice/case
Creates a new Customer Service Management (CSM) case.
[Link] 141/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
You can create different types of cases depending on whether you are working in a business-to-
business (B2B) or business-to-consumer (B2C) environment, or creating a case for an order or
product.
In addition, you can create a social media profile for a contact, consumer, or account using this
endpoint. To create a social media profile, you must specify the following parameters in the request
body:
social_channel
social_handle
social_handle_type
social_handle_url
social_post_url
All request body parameters are optional. Some parameters are only valid in one environment or the
other (B2B or B2C), and are noted as such in the request body parameter descriptions. If you specify
a contact, the account, case report, contract, and entitlement parameters are defaulted to the values
defined in the contact/account records. If you specify an account, the case report, contract, and
entitlement parameters are defaulted to the values defined in the account record (unless overridden
by passed in parameters.) If you do not pass any parameters to the endpoint, the case record is
created with only default information (defined in the table below) and instance generated values
(sys_*). All other parameters are set with their equivalent of a null value. In addition to the list of
parameters defined below, which define the parameters found in a base system, the endpoint also
accepts custom case fields and any additional case fields configured in your instance. For additional
information on these elements, refer to your specific table definitions [System Definition > Tables].
Warning: This endpoint does not perform parameter validation as doing so can create excessive
overhead. If a request parameter is misspelled, is not valid for the type of case, or is not supported by
the endpoint, it is either ignored without warning or can cause unexpected results. For example, if you
create a consumer or contact for the wrong type of case or mismatch a contact with an account.
Note: You can reference all sysparm query parameters using either their full name or their shortened
name (without the sysparm_ prefix). For example, for sysparm_limit you can also use limit.
URL Format
Name Value
[Link] 142/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Path parameters
Name Description
Query parameters
Name Description
None
[Link] 143/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Element Description
Sys_id of the account associated with the case; located in the Account
[customer_account] table.
account Data type: String
Possible values:
Default: true
Sys_id of the active account escalation record associated with the case.
Located in the Escalation [sn_customerservice_escalation] table.
active_account_escalation
Data type: String
Sys_id of the active account escalation record associated with the case.
Located in the Escalation [sn_customerservice_escalation] table.
active_escalation
Data type: String
List of the sys_ids of the additional persons (other than primary assignee)
that have been assigned to the account. Located in the User [sys_user] table.
additional_assignee_list Data type: Array
Maximum: 4,000
Possible values:
approved
cancelled
duplicate
not_required
approval not requested
rejected
requested
Maximum characters: 40
Sys_id of the person assigned to the case. Located in the User [sys_user]
table.
assigned_to
Data type: String
Sys_id of the customer service agent group assigned to the case. Located in
the Group [sys_user_group] table.
assignment_group
Data type: String
[Link] 144/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Flag that indicates whether the case was automatically generated by another
action/event.
Possible values:
auto_created_case
true: Case was auto generated
false: Case was manually generated
Length in calendar work hours, work days, and work weeks that it took to
complete the case.
business_duration
Data type: String
Sys_id of the service record associated with the case. Located in the Service
[cmdb_ci_service] table.
business_service
Data type: String
Case category.
Possible values:
0: Question
category 1: Issue
2: Feature
Default: 1
Sys_id of the change request that caused the case to be created. Located in
the Change Request [change_request] table.
caused_by
Data type: String
Sys_id of the change request that caused the case to be created. Located in
the Change Request [change_request] table.
change
Data type: String
Flag that indicates whether the case is a child case that was created from a
major case.
Possible values:
child_case_creation_progress
true: Child case created from a major case
false: Not a child case
[Link] 145/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the user that closed the case. Located in the User [sys_user] table.
closed_by
Data type: String
Sys_id of the configuration item associated with the case. Located in the
Configuration Item [cmdb_ci] table.
cmdb_ci
Data type: String
Sys_id of the company associated with the case. Located in the Company
[core_company] table.
company
Data type: String
Maximum length: 40
chat
email
phone
contact_type
social
web
Maximum length: 40
Sys_id of the contract associated with the case. Located in the Contract
[ast_contract] table. This contract contains information about the type of
support that is provided to the company associated to the case. A contract
contract can include a company and contact and the specific assets that are covered.
A contract can also include multiple service entitlements and SLAs.
Correlation display.
Correlation identifier.
Sys_id of the parent execution plan for this case. Located in the Execution
Plan [sc_cat_item_delivery_plan] table.
delivery_plan
Data type: String
[Link] 146/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the execution plan task. Located in the Execution Plan Task
[sc_cat_item_delivery_task] table.
delivery_task
Data type: String
Sys_id of the entitlement record associated with the case. Located in the
Entitlement [service_entitlement] table. Entitlements define the type of
support that a customer receives as well as the supported communication
entitlement channels. An entitlement can be associated with a product, an asset, an
account, or a contract.
Possible values:
0: Normal
1: Moderate
escalation
2: High
3: Overdue
Default: 0
Date and time when the first action was taken on the case.
first_response_time
Data type: String
Flag that indicates whether the case should be handed-off for global follow-
up.
Possible values:
follow_the_sun
true: Case should be handed-off for global follow-up
false: Case should not be handed-off for global follow-up
Default: false
List of sys_ids of the group records associated with the case. Located in the
Group [sys_user_group] table.
group_list
Data type: Array
Impact on customer.
Possible values:
1: High
impact 2: Medium
3: Low
Default: 3
[Link] 147/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Flag that indicates if there is a knowledge base article available for the
specified issue.
Possible values:
Default: false
Flag that indicates whether the case was resolved in alignment with the
associated service level agreement.
Possible values:
Default: true
Possible values:
Maximum length: 40
Flag that indicates whether to add the resolution notes to the comments.
Possible values:
notes_to_comments true: Resolutions notes, when added, are also added to the comments
false: Resolution notes in comments are not required
Possible values:
1: Do not notify
notify 2: Send email
3: Telephone
Default: 1
Case number.
Maximum length: 40
[Link] 148/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the person that initially opened the case. Located in the User
[sys_user] table.
opened_by
Data type: String
Sys_id of the parent case to which this case (child) is associated. Located in
the Task [task] table.
parent
Data type: String
Sys_id of the partner associated with the case. Located in the Account
[customer_account] table.
partner
Data type: String
Sys_id of the partner contact associated with the case. Located in the
Contact [customer_contact] table.
partner_contact
Data type: String
1: Critical
2: High
priority 3: Moderate
4: Low
Default: 4
Sys_id of the issue that the customer is encountering. Located in the Problem
[problem] table.
problem
Data type: String
Sys_id of the product model of the asset associated to the case. Located in
the Product Model [cmdb_model] table. A model is a specific version or
product configuration of an asset (for example, Apple Mac Book Pro).
Number of times that the case was reassigned to a person that is responsible
for moving the case forward.
reassignment_count Data type: Number (Integer)
Default: 0
Sys_id of the record that contains the list of recipients for communications
about this case. Located in the Recipients List
recipient_list [sn_publications_recipients_list] table.
Sys_id of the task to execute if the case is rejected. Located in the Task [task]
table.
rejection_goto
Data type: String
[Link] 149/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Sys_id of the person that resolved the case. Located in the User [sys_user]
table.
resolved_by
Data type: String
List of the unique identifiers (sys_id) of the skills needed to complete the
case. Located in the Skill [cmn_skill] table.
skills
Data type: String
Date/time at which the case must be closed based on the associated service
level agreement.
sla_due
Data type: String
Valid values:
social_handle_type account
consumer
contact
URL of the social message from which the case is being generated.
social_post_url
Data type: String
Possible values:
1: New
3: Closed
state 6: Resolved
10: Open
18: Awaiting Info
Default: 1
[Link] 150/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Case subcategory.
Possible values:
subcategory 0: Question
Default: 0
Sys_id of the CSM manager assigned to the case. Located in the User
[sys_user] table.
support_manager
Data type: String
Possible values:
sync_driver true: Driver is synchronized
false: Driver is not synchronized
Domain path.
Default: /
Possible values:
do_nothing
proceed
upon_approval
Data type: String
Maximum length: 40
Default: proceed
Possible values:
cancel
goto
upon_reject
Data type: String
Maximum length: 40
Default: cancel
Possible values:
1: High
urgency 2: Medium
3: Low
Default: 3
[Link] 151/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
List of sys_ids of the users who receive notifications about this case when
additional comments are added or if the state of a case is changed to
watch_list Resolved or Closed. Located in the User [sys_user] table.
Sys_id of the workflow activity record associated with the case. Located in
the Workflow Activity [wf_activity] table.
wf_activity
Data type: String
List of sys_ids of the internal users who receive notifications about this case
when work notes are added. Located in the User [sys_user] table.
work_notes_list
Data type: Array
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in
a distinct way. For a list of general headers used in the REST API, see Supported REST API headers
([Link]
rest/concept/c_RESTAPI.html).
Request headers
Header Description
Response headers
Header Description
None
Status codes
[Link] 152/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
The following status codes apply to this HTTP action. For a list of possible status codes used in the
REST API, see REST response codes ([Link]
development/page/integrate/inbound-rest/reference/r_RESTAPIHTTPResponseCodes.html).
Status codes
401 Unauthorized. The user credentials are incorrect or have not been passed.
500 Internal Server Error. A logic error on the server-side code occurred.
URL Format
Element Description
Curl
The following illustrates how to create a case based on a consumer and also create a new social
media account that is associated with the case.
curl "[Link] \
--request POST \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data "{ \
consumer: \"cd97ef1ddb8bc7006b7a9646db9619ac\", \
contact_type: \"social\", \
priority: \"4\", \
short_description: \"Consumer Test Case\", \
social_channel: \"TWITTER\", \
social_handle: \"consumertwo\", \
social_handle_type: \"Consumer\", \
social_handle_url: \"[Link] \
social_post_url: \"[Link] \
--user "username":"password"
{
"result": {
"sys_id": "0397c743db436f0057c3fd441d96197f",
"number": "CS0001005"
}
}
Curl
[Link] 153/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
curl "[Link] \
--request POST \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data "{ \
account: \"051f62b0d7300200e5982cf65e610333\", \
contact_type: \"phone\", \
priority: \"1\", \
short_description: \"Power Outage\"}" \
--user "username":"password"
{
"result": {
"sys_id": "b88366ffdb1b0b00216e9ee6db96190b",
"number": "CS0001021"
}
}
Curl
The following illustrates how to create a case for a specific contact. Note that if an account is
specified within the contact record, that account is automatically assigned to the case.
curl "[Link] \
--request POST \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data "{ \
contact: \"62fe1c97db76c3006b7a9646db961999\", \
contact_type: \"phone\", \
priority: \"3\", \
short_description: \"Power Outage\"}" \
--user "username":"password"
{
"result": {
"sys_id": "bf916affdb1b0b00216e9ee6db961937",
"number": "CS0001013"
}
}
Python
[Link] 154/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
# Decode the JSON response into a dictionary and use the data
data = [Link]()
print(data)
{
"result": {
"sys_id":"c7940ed1db9ba30057c3fd441d961967",
"number":"CS0001074"
}
}
PUT /sn_customerservice/case/{id}
Updates the specified existing Customer Service Management (CSM) case with the passed-in
parameters.
Warning: This endpoint does not perform parameter validation as doing so can create excessive
overhead. If a request parameter is misspelled, is not valid for the type of case, or is not supported by
the endpoint, it is either ignored without warning or can cause unexpected results. For example, if you
create a consumer or contact for the wrong type of case or mismatch a contact with an account.
Warning: By default, external users who have the sn_customerservice.customer or
sn_customerservice.consumer role can only set the comments and state fields using this endpoint.
Admins can enable external users to set additional fields by specifying the field names in the
UPDATE_ALLOWED_FIELDS array defined in the CaseRESTAPIValidatorForExternalUser script
include. Exercise caution when adding new fields to this array, as there may not be existing validators
for input into those fields. For more information on script includes, see Script includes
([Link]
scripting/concept/c_ScriptIncludes.html).
Note: You can reference all sysparm query parameters using either their full name or their shortened
name (without the sysparm_ prefix). For example, for sysparm_limit you can also use limit.
URL Format
[Link] 155/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Name Value
All request body parameters are optional. Not all parameters apply to all case
types (B2B vs B2C and order vs product.) Ensure that the parameters that
Additional info you set do not conflict, such as a mismatch between the account and contact
or consumer. In addition to the list of elements defined below (which define
the elements found in a base system), the endpoint also accepts custom
case fields and any additional case fields configured in your instance. For
additional information on these elements, refer to your specific table
definitions [System Definition > Tables].
Path parameters
Name Description
Query parameters
[Link] 156/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Name Description
Determines the type of data returned, either the actual values from the
database or the display values of the fields. Display values are manipulated
based on the actual value in the database and user or system settings and
preferences.
If returning display values, the value that is returned is dependent on the field
type.
Choice fields: The database value may be a number, but the display
value will be more descriptive.
Date fields: The database value is in UTC format, while the display
value is based on the user's time zone.
Encrypted text: The database value is encrypted, while the displayed
value is unencrypted based on the user's encryption context.
Reference fields: The database value is sys_id, but the display value is
a display field of the referenced record.
sysparm_display_value
Data type: String
Valid values:
Default: false
Valid values:
Default: false
[Link] 157/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Element Description
Sys_id of the account associated with the case. Located in the Account
[customer_account] table.
account Data type: String
Possible values:
Default: true
Sys_id of the active account escalation record associated with the case.
Located in the Escalation [sn_customerservice_escalation] table.
active_account_escalation
Data type: String
Sys_id of the active account escalation record associated with the case.
Located in the Escalation [sn_customerservice_escalation] table.
active_escalation
Data type: String
List of the sys_ids of the additional persons (other than primary assignee)
that have been assigned to the account. Located in the User [sys_user] table.
additional_assignee_list Data type: Array
Maximum: 4,000
Possible values:
approved
cancelled
duplicate
not_required
approval not requested
rejected
requested
Maximum characters: 40
Sys_id of the person assigned to the case. Located in the User [sys_user]
table.
assigned_to
Data type: String
Sys_id of the customer service agent group assigned to the case. Located in
the Group [sys_user_group] table.
assignment_group
Data type: String
[Link] 158/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Flag that indicates whether the case was automatically generated by another
action/event.
Possible values:
auto_created_case
true: Case was auto generated
false: Case was manually generated
Length in calendar work hours, work days, and work weeks that it took to
complete the case.
business_duration
Data type: String
Sys_id of the service record associated with the case. Located in the Service
[cmdb_ci_service] table.
business_service
Data type: String
Case category.
Possible values:
0: Question
category 1: Issue
2: Feature
Default: 1
Sys_id of the change request that caused the case to be created. Located in
the Change Request [change_request] table.
caused_by
Data type: String
Sys_id of the change request that caused the case to be created. Located in
the Change Request [change_request] table.
change
Data type: String
Flag that indicates whether the case is a child case that was created from a
major case.
Possible values:
child_case_creation_progress
true: Child case created from a major case
false: Not a child case
[Link] 159/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the user that closed the case. Located in the User [sys_user] table.
closed_by
Data type: String
Sys_id of the configuration item associated with the case. Located in the
Configuration Item [cmdb_ci] table.
cmdb_ci
Data type: String
Sys_id of the company associated with the case. Located in the Company
[core_company] table.
company
Data type: String
Maximum length: 40
chat
email
phone
contact_type
social
web
Maximum length: 40
Sys_id of the contract associated with the case. Located in the Contract
[ast_contract] table. This contract contains information about the type of
support that is provided to the company associated to the case. A contract
contract can include a company and contact and the specific assets that are covered.
A contract can also include multiple service entitlements and SLAs.
Correlation display.
Correlation identifier.
Sys_id of the parent execution plan for this case. Located in the Execution
Plan [sc_cat_item_delivery_plan] table.
delivery_plan
Data type: String
[Link] 160/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the execution plan task. Located in the Execution Plan Task
[sc_cat_item_delivery_task] table.
delivery_task
Data type: String
Sys_id of the entitlement record associated with the case. Located in the
Entitlement [service_entitlement] table. Entitlements define the type of
support that a customer receives as well as the supported communication
entitlement channels. An entitlement can be associated with a product, an asset, an
account, or a contract.
Possible values:
0: Normal
1: Moderate
escalation
2: High
3: Overdue
Default: 0
Date and time when the first action was taken on the case.
first_response_time
Data type: String
Flag that indicates whether the case should be handed-off for global follow-
up.
Possible values:
follow_the_sun
true: Case should be handed-off for global follow-up
false: Case should not be handed-off for global follow-up
Default: false
List of sys_ids of the group records associated with the case. Located in the
Group [sys_user_group] table.
group_list
Data type: Array
Impact on customer.
Possible values:
1: High
impact 2: Medium
3: Low
Default: 3
[Link] 161/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Flag that indicates if there is a knowledge base article available for the
specified issue.
Possible values:
Default: false
Flag that indicates whether the case was resolved in alignment with the
associated service level agreement.
Possible values:
Default: true
Possible values:
Maximum length: 40
Flag that indicates whether to add the resolution notes to the comments.
Possible values:
notes_to_comments true: Resolutions notes, when added, are also added to the comments
false: Resolution notes in comments are not required
Possible values:
1: Do not notify
notify 2: Send email
3: Telephone
Default: 1
Case number.
Maximum length: 40
[Link] 162/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the person that initially opened the case. Located in the User
[sys_user] table.
opened_by
Data type: String
Sys_id of the parent case to which this case (child) is associated. Located in
the Task [task] table.
parent
Data type: String
Sys_id of the partner associated with the case. Located in the Account
[customer_account] table.
partner
Data type: String
Sys_id of the partner contact associated with the case. Located in the
Contact [customer_contact] table.
partner_contact
Data type: String
1: Critical
2: High
priority 3: Moderate
4: Low
Default: 4
Sys_id of the issue that the customer is encountering. Located in the Problem
[problem] table.
problem
Data type: String
Sys_id of the product model of the asset associated to the case. Located in
the Product Model [cmdb_model] table. A model is a specific version or
product configuration of an asset (for example, Apple Mac Book Pro).
Number of times that the case was reassigned to a person that is responsible
for moving the case forward.
reassignment_count Data type: Number (Integer)
Default: 0
Sys_id of the record that contains the list of recipients for communications
about this case. Located in the Recipients List
recipient_list [sn_publications_recipients_list] table.
Sys_id of the task to execute if the case is rejected. Located in the Task [task]
table.
rejection_goto
Data type: String
[Link] 163/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Sys_id of the person that resolved the case. Located in the User [sys_user]
table.
resolved_by
Data type: String
List of the unique identifiers (sys_id) of the skills needed to complete the
case. Located in the Skill [cmn_skill] table.
skills
Data type: String
Date/time at which the case must be closed based on the associated service
level agreement.
sla_due
Data type: String
Valid values:
social_handle_type account
contact
consumer
URL of the social message from which the case is being generated.
social_post_url
Data type: String
Possible values:
1: New
3: Closed
state 6: Resolved
10: Open
18: Awaiting Info
Default: 1
[Link] 164/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Case subcategory.
Possible values:
subcategory 0: Question
Default: 0
Sys_id of the CSM manager assigned to the case. Located in the User
[sys_user] table.
support_manager
Data type: String
Possible values:
sync_driver true: Driver is synchronized
false: Driver is not synchronized
Domain path.
Default: /
Possible values:
do_nothing
proceed
upon_approval
Data type: String
Maximum length: 40
Default: proceed
Possible values:
cancel
goto
upon_reject
Data type: String
Maximum length: 40
Default: cancel
Possible values:
1: High
urgency 2: Medium
3: Low
Default: 3
[Link] 165/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
List of sys_ids of the users who receive notifications about this case when
additional comments are added or if the state of a case is changed to
watch_list Resolved or Closed. Located in the User [sys_user] table.
Sys_id of the workflow activity record associated with the case. Located in
the Workflow Activity [wf_activity] table.
wf_activity
Data type: String
List of sys_ids of the internal users who receive notifications about this case
when work notes are added. Located in the User [sys_user] table.
work_notes_list
Data type: Array
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in
a distinct way. For a list of general headers used in the REST API, see Supported REST API headers
([Link]
rest/concept/c_RESTAPI.html).
Request headers
Header Description
Response headers
Header Description
None
Status codes
[Link] 166/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
The following status codes apply to this HTTP action. For a list of possible status codes used in the
REST API, see REST response codes ([Link]
development/page/integrate/inbound-rest/reference/r_RESTAPIHTTPResponseCodes.html).
Status codes
201 Successful.
400 Bad Request. A bad request type or malformed request was detected.
401 Unauthorized. The user credentials are incorrect or have not been passed.
500 Internal Server Error. A logic error on the server-side code occurred.
URL Format
[Link] 167/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Element Description
Sys_id of the account record associated with the case. Located in the
Account [customer_account] table.
account
Data type: String
Account details.
"account": {
"account_code": "String",
"account_parent": "String",
"account_path": "String",
"active_escalation": "String",
"apple_icon": Image,
"banner_image": Image,
"banner_image_light": Image,
"banner_text": "String",
"city": "String",
"contact": "String",
"country": "String",
"customer": "String",
"discount": "String",
"fax_phone": "String",
"fiscal_year": "String",
"lat_long_error": "String",
"latitude": "String",
"longitude": "String",
"market_cap": "String",
"name": "String",
"notes": "String",
"num_employees": Number,
"number": "String",
account "parent": "String",
"partner": "String",
"phone": "String",
"primary": Boolean,
"primary_contact": "String",
"profits": Number,
"publicly_traded": Boolean,
"rank_tier": "String",
"registration_code": "String",
"revenue_per_year": Number,
"state": "String",
"stock_price": "String",
"stock_symbol": "String",
"street": "String",
"sys_class_name": "String",
"sys_created_by": "String",
"sys_created_on": "String",
"sys_id": "String",
"sys_mod_count": Number,
"sys_updated_by": "String",
"sys_updated_on": "String",
"theme": "String",
"vendor": Boolean,
"vendor_manager": "String",
"vendor_type": "String",
"website": "String",
"zip": "String
}
[Link] 168/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Path from the parent to the child accounts in the account hierarchy.
Sys_id of the active escalation associated with the account. Located in the
Escalation [sn_customerservice_escalation] table.
account.active_escalation
Data type: String
City in which the company that is associated with this account resides.
Maximum length: 50
Sys_id of a contact record associated with this account. Located in the User
[sys_user] table.
[Link]
Data type: String
Country in which the company that is associated with this account resides.
Default: USA
Default: false
[Link] 169/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 15
Primary fax phone number for the company associated with this account.
Maximum length: 40
Maximum length: 40
Maximum length: 40
Flag that indicates whether the company associated with this account
manufactures goods.
Possible values:
Default: false
Maximum length: 20
Maximum length: 80
Maximum length: 40
[Link] 170/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Possible values:
Default: false
Possible values:
Default: false
Sys_id of the primary contact for the account. Located in the Contact
[customer_contact] table.
account.primary_contact
Data type: String
Maximum length: 40
Flag that indicates whether the company associated with this account is
publicly traded on the stock exchange.
Possible values:
account.publicly_traded
true: Publicly traded
false: Private company
Type of account.
Possible values:
blacklist
strategic
account.rank_tier tactical
valued
other
Maximum length: 40
[Link] 171/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Unique code that customers use when requesting a login on the customer
portal. This code provides a method for validating the customer on the
company before granting access.
account.registration_code
Data type: String
Maximum length: 40
Maximum length: 20
Maximum length: 40
Maximum length: 40
Maximum length: 40
Maximum length: 40
Maximum length: 40
[Link] 172/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the customer portal theme used by this account. Located in the
Theme [sys_ui_theme] table.
[Link]
Data type: String
Flag that indicates whether the company associated with this account is a
vendor.
Possible values:
Default: false
List of sys_ids of the vendor managers for the account. Located in the User
[sys_user] table.
account.vendor_manager
Data type: String
Maximum length: 40
Possible values:
1: Blocked internally
action_status 2: Blocked by customer
3: Blocked internally and by customer
4: Needs attention
Possible values:
Default: true
Sys_id of the active account escalation record associated with the case.
Located in the Escalation [sn_customerservice_escalation] table.
active_account_escalation
Data type: String
Sys_id of the active account escalation record associated with the case.
Located in the Escalation [sn_customerservice_escalation] table.
active_escalation
Data type: String
[Link] 173/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
List of the sys_ids of the additional persons (other than primary assignee)
that have been assigned to the account. Located in the User [sys_user] table.
additional_assignee_list Data type: Array
Maximum: 4,000
Possible values:
approved
cancelled
duplicate
not_required
approval not requested
rejected
requested
Maximum characters: 40
Sys_id of the asset record associated with the case. Located in the Asset
[alm_asset] table.
asset
Data type: String
Sys_id of the person assigned to the case. Located in the User [sys_user]
table.
assigned_to
Data type: String
Sys_id of the customer service agent group assigned to the case. Located in
the Group [sys_user_group] table.
assignment_group
Data type: String
Flag that indicates whether the case was automatically generated by another
action/event.
Possible values:
auto_created_case
true: Case was auto generated
false: Case was manually generated
Length in calendar work hours, work days, and work weeks that it took to
complete the case.
business_duration
Data type: String
[Link] 174/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the service record associated with the case. Located in the Service
[cmdb_ci_service] table.
business_service
Data type: String
Case category.
Possible values:
0: Question
category 1: Issue
2: Feature
Default: 1
Sys_id of the change request that caused the case to be created. Located in
the Change Request [change_request] table.
caused_by
Data type: String
Sys_id of the change request that caused the case to be created. Located in
the Change Request [change_request] table.
change
Data type: String
Flag that indicates whether the case is a child case that was created from a
major case.
Possible values:
child_case_creation_progress
true: Child case created from a major case
false: Not a child case
Sys_id of the user that closed the case. Located in the User [sys_user] table.
closed_by
Data type: String
Sys_id of the configuration item associated with the case. Located in the
Configuration Item [cmdb_ci] table.
cmdb_ci
Data type: String
[Link] 175/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the company associated with the case. Located in the Company
[core_company] table.
company
Data type: String
Possible values:
Default: true
Maximum length: 40
Maximum length: 40
Valid values:
dd-mm-yyyy
dd/mm/yyyy
[Link]
consumer.date_format mm-dd-yyyy
yyyy-mm-dd
Maximum length: 40
[Link] 176/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Maximum length: 50
Maximum length: 40
Maximum length: 40
Maximum length: 50
Maximum length: 50
Maximum length: 40
Notes on consumer.
Valid values:
1: Disabled
2: Enabled
[Link]
Data type: Integer
Maximum length: 40
Default: 2
[Link] 177/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Maximum length: 3
Maximum length: 40
Possible values:
Default: false
Maximum length: 40
[Link] 178/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Date and time when the consumer information was last updated.
consumer.sys_updated_on
Data type: String
Valid values:
Maximum length: 40
Maximum length: 40
Maximum length: 60
Maximum length: 40
Flag that indicates whether the contact is active within the system.
Possible values:
Default: true
[Link] 179/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Possible values:
Off work
On break
contact.agent_status
On route
On site
Maximum length: 40
Sys_id of the record that describes the building in which the contact resides;
Building [cmn_building] table.
[Link]
Data type: String
1: Outlook
contact.calendar_integration
Data type: Number (Integer)
Default: 1
Maximum length: 40
Sys_id of the cost center associated with the contact; Cost Center
[cmn_cost_center] table.
contact.cost_center
Data type: String
Maximum length: 3
Valid values:
dd/mm/yyyy
dd-mm-yyyy
[Link]
contact.date_format mm-dd-yyyy
yyyy-mm-dd
Maximum length: 40
Sys_id of the default perspective for the contact. Located in the Menu List
[sys_perspective] table.
contact.default_perspective
Data type: String
[Link] 180/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Default: faculty
Possible values:
Default: false
Maximum length: 50
Contact gender.
Maximum length: 40
Possible values:
Maximum length: 40
Possible values:
Default: false
[Link] 181/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Introduction
Maximum length: 40
Device the consumer used the last time they logged in to the system.
Maximum length: 40
Maximum length: 50
Maximum length: 40
Sys_id of the LDAP server used by the contact to last log in to the system;
LDAP Server [ldap_server_config] table.
contact.ldap_server
Data type: String
Sys_id of the record that describes the location of the contact; Location
[cmn_location] table.
[Link]
Data type: String
Possible values:
Default: false
Maximum length: 40
Sys_id of the record that describes the direct supervisor of the contact; User
[sys_user] table.
[Link]
Data type: String
Maximum length: 50
[Link] 182/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Valid values:
1: Disabled
[Link]
2: Enabled
Default: 2
Valid values:
Maximum length: 40
Maximum length: 40
Maximum length: 3
Maximum length: 40
Sys_id of the record that describes the work schedule for the associated
contact; Schedule [cmn_schedule] table.
[Link]
Data type: String
[Link] 183/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
Maximum length: 80
Maximum length: 40
Default: / (global)
Number of times that the associated contact record has been modified.
contact.sys_mod_count
Data type: Number (Integer)
Maximum length: 40
[Link] 184/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Valid values:
Maximum length: 40
Sys_id of the record that contains the time sheet policy for the associated
contact; Time Sheet Policy [time_sheet_policy] table.
contact.time_sheet_policy
Data type: String
Maximum length: 40
Maximum length: 60
Maximum length: 40
Flag that indicates whether the associated contact has VIP status.
Possible values:
true: VIP
[Link]
false: Not VIP
Default: false
Flag that indicates whether the contact can only access services through the
web.
Possible values:
Default: false
Maximum length: 40
Maximum length: 70
[Link] 185/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
chat
email
phone
contact_type
social
web
Maximum length: 40
Sys_id of the contract associated with the case. Located in the Contract
[ast_contract] table. This contract contains information about the type of
support that is provided to the company associated to the case. A contract
contract can include a company and contact and the specific assets that are covered.
A contract can also include multiple service entitlements and SLAs.
Correlation display.
Correlation identifier.
Sys_id of the parent execution plan for this case. Located in the Execution
Plan [sc_cat_item_delivery_plan] table.
delivery_plan
Data type: String
Sys_id of the execution plan task. Located in the Execution Plan Task
[sc_cat_item_delivery_task] table.
delivery_task
Data type: String
Sys_id of the entitlement record associated with the case. Located in the
Entitlement [service_entitlement] table. Entitlements define the type of
support that a customer receives as well as the supported communication
entitlement channels. An entitlement can be associated with a product, an asset, an
account, or a contract.
[Link] 186/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Possible values:
0: Normal
1: Moderate
escalation
2: High
3: Overdue
Default: 0
Date and time when the first action was taken on the case.
first_response_time
Data type: String
Flag that indicates whether the case should be handed-off for global follow-
up.
Possible values:
follow_the_sun
true: Case should be handed-off for global follow-up
false: Case should not be handed-off for global follow-up
Default: false
List of sys_ids of the group records associated with the case. Located in the
Group [sys_user_group] table.
group_list
Data type: Array
Impact on customer.
Possible values:
1: High
impact 2: Medium
3: Low
Default: 3
Flag that indicates if there is a knowledge base article available for the
specified issue.
Possible values:
Default: false
[Link] 187/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Flag that indicates whether the case was resolved in alignment with the
associated service level agreement.
Possible values:
Default: true
Possible values:
Maximum length: 40
Possible values:
Default: false
Flag that indicates whether to add the resolution notes to the comments.
Possible values:
notes_to_comments true: Resolutions notes, when added, are also added to the comments
false: Resolution notes in comments are not required
Possible values:
1: Do not notify
notify 2: Send email
3: Telephone
Default: 1
Case number.
Maximum length: 40
Sys_id of the person that initially opened the case. Located in the User
[sys_user] table.
opened_by
Data type: String
[Link] 188/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the parent case to which this case (child) is associated. Located in
the Task [task] table.
parent
Data type: String
Sys_id of the partner associated with the case. Located in the Account
[customer_account] table.
partner
Data type: String
Sys_id of the partner contact associated with the case. Located in the
Contact [customer_contact] table.
partner_contact
Data type: String
1: Critical
2: High
priority 3: Moderate
4: Low
Default: 4
Sys_id of the issue that the customer is encountering. Located in the Problem
[problem] table.
problem
Data type: String
Sys_id of the product model of the asset associated to the case. Located in
the Product Model [cmdb_model] table. A model is a specific version or
product configuration of an asset (for example, Apple Mac Book Pro).
Number of times that the case was reassigned to a person that is responsible
for moving the case forward.
reassignment_count Data type: Number (Integer)
Default: 0
Sys_id of the record that contains the list of recipients for communications
about this case. Located in the Recipients List
recipient_list [sn_publications_recipients_list] table.
Sys_id of the task to execute if the case is rejected. Located in the Task [task]
table.
rejection_goto
Data type: String
Maximum length: 40
[Link] 189/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the person that resolved the case. Located in the User [sys_user]
table.
resolved_by
Data type: String
Array of objects in which each object describes a single value for the
requested field.
"result": [
result
{
"label": "String",
"value": "String"
}
]
Field value.
[Link]
Data type: String
List of the unique identifiers (sys_id) of the skills needed to complete the
case. Located in the Skill [cmn_skill] table.
skills
Data type: String
Date/time at which the case must be closed based on the associated service
level agreement.
sla_due
Data type: String
[Link] 190/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Array of objects that contain details for a specific social media profile, such as
Facebook, Twitter, or YouTube.
"sn_app_cs_social_social_profile": [
{
"account": "String",
"channel": [Array],
"contact": {Object},
"consumer": {Object},
"created_on": "String",
"profile": "String",
sn_app_cs_social_social_profile
"profile_url": "String",
"social_id": "String",
"source": "String",
"sys_created_by": "String",
"sys_created_on": "String",
"sys_id": "String",
"sys_mod_count": Number,
"sys_tags": "String",
"sys_updated_by": "String",
"sys_updated_on": "String"
}
]
Unique identifier of the record containing account information for the social
sn_app_cs_social_social_profile.ac media profile. Located in the Account [customer_account] table.
count
Data type: String
"channel": {
"name": "String",
"sys_class_name": "String",
"sys_created_by": "String",
"sys_created_on": "String",
sn_app_cs_social_social_profile.ch
annel "sys_mod_count": Number,
"sys_package": "String",
"sys_policy": "String",
"sys_scope": "String",
"sys_tags": "String",
"sys_update_name": "String",
"sys_updated_by": "String",
"sys_updated_on": "String"
}
[Link] 191/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Number of times that information was modified for the associated social
sn_app_cs_social_social_profile.ch media profile channel.
annel.sys_mod_count
Data type: Integer
Unique identifier of the record that contains information about the package
sn_app_cs_social_social_profile.ch associated with the profile; Package [sys_package] table.
annel.sys_package
Data type: Reference
Possible values:
sn_app_cs_social_social_profile.ch protected
annel.sys_policy read
Maximum length: 40
Unique identifier of the record that contains information about the scope of
sn_app_cs_social_social_profile.ch the social profile; Application [sys_scope] table.
annel.sys_scope
Data type: Reference
Name of the person that last updated the social media profile channel.
sn_app_cs_social_social_profile.ch Data type: String
annel.sys_update_name
Maximum length: 250
Date and time the social media profile channel was last updated.
sn_app_cs_social_social_profile.ch Data type: Date/time
annel.sys_updated_on
Maximum length: 40
[Link] 192/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
"consumer": {
"active": Boolean,
"business_phone": "String",
"city": "String",
"country": "String",
"date_format": "String",
"email": "String",
"fax": "String",
"first_name": "String",
"gender": "String",
"home_phone": "String",
"household": "String",
"last_name": "String",
"middle_name": "String",
"mobile_phone": "String",
"name": "String",
"notes": "String",
"notification": Number,
sn_app_cs_social_social_profile.co
"number": "String",
nsumer
"photo": Image,
"preferred_language": "String",
"prefix": "String",
"primary": Boolean,
"state": "String",
"street": "String",
"suffix": "String",
"sys_created_by": "String",
"sys_created_on": "String",
"sys_domain": "String",
"sys_id": "String",
"sys_mod_count": Number,
"sys_tags": "String",
"sys_updated_by": "String",
"sys_updated_on": "String",
"time_format": "String",
"time_zone": "String",
"title": "String",
"user": "String",
"zip": "String"
}
Possible values:
Default: true
[Link] 193/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Valid values:
dd-mm-yyyy
dd/mm/yyyy
[Link]
sn_app_cs_social_social_profile.co
nsumer.date_format mm-dd-yyyy
yyyy-mm-dd
Maximum length: 40
[Link] 194/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Notes on consumer.
sn_app_cs_social_social_profile.co
Data type: String
[Link]
Maximum length: 4,000
Valid values:
1: Disabled
sn_app_cs_social_social_profile.co 2: Enabled
[Link]
Data type: Integer
Maximum length: 40
Default: 2
Possible values:
Default: false
[Link] 195/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
sn_app_cs_social_social_profile.co
Consumer system tags.
nsumer.sys_tags
Date and time when the consumer information was last updated.
sn_app_cs_social_social_profile.co
nsumer.sys_updated_on Data type: String
Valid values:
Maximum length: 40
Maximum length: 60
[Link] 196/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Flag that indicates whether the contact is active within the system.
Possible values:
Default: true
Possible values:
Off work
sn_app_cs_social_social_profile.co On break
ntact.agent_status On route
On site
Maximum length: 40
Sys_id of the record that describes the building in which the contact resides;
sn_app_cs_social_social_profile.co Building [cmn_building] table.
[Link]
Data type: String
1: Outlook
sn_app_cs_social_social_profile.co
ntact.calendar_integration Data type: Number (Integer)
Default: 1
Sys_id of the cost center associated with the contact; Cost Center
sn_app_cs_social_social_profile.co [cmn_cost_center] table.
ntact.cost_center
Data type: String
[Link] 197/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Valid values:
dd/mm/yyyy
dd-mm-yyyy
[Link]
sn_app_cs_social_social_profile.co
ntact.date_format mm-dd-yyyy
yyyy-mm-dd
Maximum length: 40
Sys_id of the default perspective for the contact. Located in the Menu List
sn_app_cs_social_social_profile.co [sys_perspective] table.
ntact.default_perspective
Data type: String
Default: faculty
Possible values:
sn_app_cs_social_social_profile.co true: Multifactor authorization enabled
ntact.enable_multifactor_authn
false: Multifactor authorization disabled
Default: false
[Link] 198/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Contact gender.
sn_app_cs_social_social_profile.co Data type: String
[Link]
Maximum length: 40
Possible values:
sn_app_cs_social_social_profile.co true: Contact location obtained through geotracking
ntact.geolocation_tracked
false: Contact location not obtained through geotracking
Possible values:
Default: false
Introduction
sn_app_cs_social_social_profile.co
Data type: String
[Link]
Maximum length: 40
Device the consumer used the last time they logged in to the system.
sn_app_cs_social_social_profile.co Data type: String
ntact.last_login_device
Maximum length: 40
[Link] 199/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the LDAP server used by the contact to last log in to the system;
sn_app_cs_social_social_profile.co LDAP Server [ldap_server_config] table.
ntact.ldap_server
Data type: String
Sys_id of the record that describes the location of the contact; Location
sn_app_cs_social_social_profile.co [cmn_location] table.
[Link]
Data type: String
Possible values:
Default: false
Sys_id of the record that describes the direct supervisor of the contact; User
sn_app_cs_social_social_profile.co [sys_user] table.
[Link]
Data type: String
Valid values:
sn_app_cs_social_social_profile.co 1: Disabled
[Link] 2: Enabled
Default: 2
Valid values:
Maximum length: 40
[Link] 200/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Sys_id of the record that describes the work schedule for the associated
sn_app_cs_social_social_profile.co contact; Schedule [cmn_schedule] table.
[Link]
Data type: String
Default: / (global)
[Link] 201/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Number of times that the associated contact record has been modified.
sn_app_cs_social_social_profile.co
ntact.sys_mod_count Data type: Number (Integer)
sn_app_cs_social_social_profile.co
Contact system tags.
ntact.sys_tags
Valid values:
Maximum length: 40
Sys_id of the record that contains the time sheet policy for the associated
sn_app_cs_social_social_profile.co contact; Time Sheet Policy [time_sheet_policy] table.
ntact.time_sheet_policy
Data type: String
Maximum length: 40
Flag that indicates whether the associated contact has VIP status.
Possible values:
Default: false
[Link] 202/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Flag that indicates whether the contact can only access services through the
web.
Possible values:
sn_app_cs_social_social_profile.co true: Web access only
ntact.web_service_access_only
false: Access through all available methods
Default: false
sn_app_cs_social_social_profile.cre
Date and time the associated social media profile was initially created.
ated_on
Social profile.
sn_app_cs_social_social_profile.pr Data type: String
ofile
Maximum length: 255
Unique social media account provider identifier for the associated social
media account.
sn_app_cs_social_social_profile.so
cial_id Data type: String
Date and time the social media profile was initially created.
sn_app_cs_social_social_profile.sy
s_created_on Data type: String (Date/time)
Number of times that information was modified for the associated social
sn_app_cs_social_social_profile.sy media profile.
s_mod_count
Data type: Number (Integer)
sn_app_cs_social_social_profile.sy
Profile system tags.
s_tags
[Link] 203/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Possible values:
1: New
3: Closed
state 6: Resolved
10: Open
18: Awaiting Info
Default: 1
Case subcategory.
Possible values:
subcategory 0: Question
Default: 0
Sys_id of the CSM manager assigned to the case. Located in the User
[sys_user] table.
support_manager
Data type: String
Possible values:
sync_driver true: Driver is synchronized
false: Driver is not synchronized
Maximum length: 80
Maximum length: 40
Default: global
Domain path.
Default: /
[Link] 204/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 32
Maximum length: 40
Possible values:
do_nothing
proceed
upon_approval
Data type: String
Maximum length: 40
Default: proceed
Possible values:
cancel
goto
upon_reject
Data type: String
Maximum length: 40
Default: cancel
Possible values:
1: High
urgency 2: Medium
3: Low
Default: 3
[Link] 205/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
Maximum length: 40
List of sys_ids of the users who receive notifications about this case when
additional comments are added or if the state of a case is changed to
watch_list Resolved or Closed. Located in the User [sys_user] table.
Sys_id of the workflow activity record associated with the case. Located in
the Workflow Activity [wf_activity] table.
wf_activity
Data type: String
Information about how to resolve the case, or steps taken to resolve it.
List of sys_ids of the internal users who receive notifications about this case
when work notes are added. Located in the User [sys_user] table.
work_notes_list
Data type: Array
Curl
curl "[Link] \
--request PUT \
--header "Accept:application/json" \
--header "Content-Type:application/json" \
--data "{ \
consumer: \"cd97ef1ddb8bc7006b7a9646db9619ac\", \
contact_type: \"phone\", \
priority: \"4\", \
short_description: \"Consumer Test Case\"}" \
--user "username":"password"
{
"result": {
"sys_id": "0397c743db436f0057c3fd441d96197f",
"number": "CS0001005"
}
}
Python
[Link] 206/207
07/09/2022, 22:52 Api | Case API - ServiceNow Developers
# Decode the JSON response into a dictionary and use the data
data = [Link]()
print(data)
{
"result": {
"sys_id": "c7940ed1db9ba30057c3fd441d961967",
"number": "CS0001074"
}
}
[Link] 207/207