Cherwell Service Management
App · 20 actions
Create, find, update and delete Cherwell records such as incidents, changes and customers, run saved searches, work with related records, lifecycle transitions and One-Step Actions, and look up teams and users.
Actions
| Action | What it does |
|---|---|
| Create record | Create a record, such as an incident or a customer, from field values by field name. |
| Create related record | Create a record related to another, such as a journal note or a task on an incident. |
| Delete record | Delete a record by its public ID or record ID. |
| Get business object schema | Get a business object's fields (names, types, required) and, if asked, its relationships. |
| Get lifecycle transitions | List the lifecycle transitions (status changes) a record can make now. |
| Get record | Get a record, such as an incident, by its public ID or record ID, with every field's value. |
| Get related records | Get the records related to a record through one relationship, such as an incident's journals or tasks. |
| Get service info | Get the Cherwell server's CSM and REST API versions, culture and time. |
| Get user | Get a CSM user by their login ID, with their record ID and fields. |
| Link related record | Link an existing record to another through a relationship. |
| List business objects | List the business objects, such as Incident, Change Request and Customer, with each one's ID. |
| List One-Step Actions | List the One-Step Actions for a business object, in their folders. |
| List saved searches | List the saved searches for a business object, in their folders. |
| List teams | List the teams, with each one's ID. |
| Run One-Step Action | Run a One-Step Action on a record. |
| Run saved search | Run a saved search by its name and get its records. |
| Search records | Find records of a business object by text or by field values, with every field of each. |
| Transition record | Move a record to another lifecycle status, by a transition from Get lifecycle transitions. |
| Unlink related record | Remove the link between two related records. |
| Update record | Change a record's fields. |
Create record
Create a record, such as an incident or a customer, from field values by field name.
Inputs
- Business object
bus_ob_idtextRequired - The business object, such as Incident. Pick one, or give its ID.
- Field values
valuesobjectRequired - Field values by field name, such as {"ShortDescription": "Printer jam"}. Get Business Object schema lists the names.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"busObId": "example",
"busObPublicId": "example",
"busObRecId": "example",
"fieldValidationErrors": [
{
"error": "example",
"errorCode": "example",
"fieldId": "example"
}
]
}
}Create related record
Create a record related to another, such as a journal note or a task on an incident.
Inputs
- Business object
bus_ob_idtextRequired - The business object, such as Incident. Pick one, or give its ID.
- Record ID
rec_idtextRequired - The record's record ID (busObRecId), from an earlier step.
- Relationship ID
relationship_idtextRequired - The relationship's ID, from Get Business Object schema with relationships.
- Related business object
related_bus_ob_idtextRequired - The related record's business object.
- Field values
valuesobjectRequired - Field values by field name, such as {"ShortDescription": "Printer jam"}. Get Business Object schema lists the names.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"busObId": "example",
"busObPublicId": "example",
"busObRecId": "example",
"fieldValidationErrors": [
{
"error": "example",
"errorCode": "example",
"fieldId": "example"
}
]
}
}Delete record
Delete a record by its public ID or record ID.
Inputs
- Business object
bus_ob_idtextRequired - The business object, such as Incident. Pick one, or give its ID.
- Public ID
public_idtext - The record's public ID, the number people see, such as an incident's number.
- Record ID
rec_idtext - The record's record ID (busObRecId), from an earlier step.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"busObId": "example",
"busObPublicId": "example",
"busObRecId": "example",
"done": true
}
}Get business object schema
Get a business object's fields (names, types, required) and, if asked, its relationships.
Inputs
- Business object
bus_ob_idtextRequired - The business object, such as Incident. Pick one, or give its ID.
- Include relationships
include_relationshipstrue/false - Also list its relationships to other business objects.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"busObId": "example",
"fieldDefinitions": [
{
"calculated": true,
"description": "example",
"displayName": "example",
"fieldId": "example",
"maximumSize": "example",
"name": "example",
"readOnly": true,
"required": true,
"type": "example"
}
],
"name": "example",
"relationships": [
{
"cardinality": "example",
"description": "example",
"displayName": "example",
"relationshipId": "example",
"target": "example"
}
],
"stateFieldId": "example",
"states": "example"
}
}Get lifecycle transitions
List the lifecycle transitions (status changes) a record can make now.
Inputs
- Business object
bus_ob_idtextRequired - The business object, such as Incident. Pick one, or give its ID.
- Record ID
rec_idtextRequired - The record's record ID (busObRecId), from an earlier step.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"transitions": [
{
"id": "example",
"isAvailable": true,
"name": "example"
}
]
}
}Get record
Get a record, such as an incident, by its public ID or record ID, with every field's value.
Inputs
- Business object
bus_ob_idtextRequired - The business object, such as Incident. Pick one, or give its ID.
- Public ID
public_idtext - The record's public ID, the number people see, such as an incident's number.
- Record ID
rec_idtext - The record's record ID (busObRecId), from an earlier step.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"busObId": "example",
"busObPublicId": "example",
"busObRecId": "example",
"fields": [
{
"dirty": true,
"displayName": "example",
"fieldId": "example",
"name": "example",
"value": "example"
}
],
"values": {}
}
}Get related records
Get the records related to a record through one relationship, such as an incident's journals or tasks.
Inputs
- Business object
bus_ob_idtextRequired - The business object, such as Incident. Pick one, or give its ID.
- Record ID
rec_idtextRequired - The record's record ID (busObRecId), from an earlier step.
- Relationship ID
relationship_idtextRequired - The relationship's ID, from Get Business Object schema with relationships.
- Page
page_numbernumber - Which page of results, from 1.At least 1.
- Page size
page_sizenumber - How many to return, 1 to 200.From 1 to 200.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"pageNumber": 1,
"pageSize": 1,
"parentBusObId": "example",
"parentBusObRecId": "example",
"relatedBusinessObjects": [
{
"busObId": "example",
"busObPublicId": "example",
"busObRecId": "example",
"fields": [
{
"dirty": true,
"displayName": "example",
"fieldId": "example",
"name": "example",
"value": "example"
}
],
"values": {}
}
],
"relationshipId": "example",
"totalRecords": 1
}
}Get service info
Get the Cherwell server's CSM and REST API versions, culture and time.
Inputs
None.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"apiVersion": "example",
"csmCulture": "example",
"csmVersion": "example",
"systemDateTime": "example",
"systemUtcOffset": "example"
}
}Get user
Get a CSM user by their login ID, with their record ID and fields.
Inputs
- Login ID
login_idtextRequired - The user's login ID.
- Login type
login_id_typetext - Whether it is a CSM login or a Windows login. Defaults to CSM login.One of:
Internal(CSM login),Windows(Windows login).
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"accountLocked": true,
"createDateTime": "example",
"displayName": "example",
"fields": [
{
"dirty": true,
"displayName": "example",
"fieldId": "example",
"name": "example",
"value": "example"
}
],
"publicId": "example",
"recordId": "example",
"securityGroupId": "example",
"shortDisplayName": "example",
"values": {}
}
}Link related record
Link an existing record to another through a relationship.
Inputs
- Business object
bus_ob_idtextRequired - The business object, such as Incident. Pick one, or give its ID.
- Record ID
rec_idtextRequired - The record's record ID (busObRecId), from an earlier step.
- Relationship ID
relationship_idtextRequired - The relationship's ID, from Get Business Object schema with relationships.
- Related business object
related_bus_ob_idtextRequired - The related record's business object.
- Related record ID
related_rec_idtextRequired - The related record's record ID.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"busObId": "example",
"busObPublicId": "example",
"busObRecId": "example",
"done": true
}
}List business objects
List the business objects, such as Incident, Change Request and Customer, with each one's ID.
Inputs
- Kind
object_typetextRequired - Which kind of business objects to list.One of:
Major(Major (incidents, changes, customers…)),Supporting,Lookup(Lookup tables),Groups,All. - Name contains
nametext - Only business objects whose name contains this, such as Incident.
Outputs
datalist- The response from Cherwell Service Management.
Example output
{
"data": [
{
"busObId": "example",
"displayName": "example",
"group": true,
"lookup": true,
"major": true,
"name": "example",
"stateFieldId": "example",
"states": "example",
"supporting": true
}
]
}List One-Step Actions
List the One-Step Actions for a business object, in their folders.
Inputs
- Business object
associationtextRequired - The business object the searches or actions belong to, by ID.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"root": {
"association": "example",
"childFolders": [
{}
],
"childItems": [
{}
],
"id": "example",
"name": "example",
"scope": "example",
"scopeOwner": "example"
}
}
}List saved searches
List the saved searches for a business object, in their folders.
Inputs
- Business object
associationtextRequired - The business object the searches or actions belong to, by ID.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"root": {
"association": "example",
"childFolders": [
{}
],
"childItems": [
{}
],
"id": "example",
"name": "example",
"scope": "example",
"scopeOwner": "example"
}
}
}List teams
List the teams, with each one's ID.
Inputs
None.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"teams": [
{
"teamId": "example",
"teamName": "example"
}
]
}
}Run One-Step Action
Run a One-Step Action on a record.
Inputs
- One-Step Action key
stand_in_keytextRequired - The One-Step Action's key, from List One-Step Actions.
- Business object
bus_ob_idtextRequired - The business object, such as Incident. Pick one, or give its ID.
- Record ID
rec_idtextRequired - The record's record ID (busObRecId), from an earlier step.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"completed": true,
"currentPrimaryBusObId": "example",
"currentPrimaryBusObRecId": "example"
}
}Run saved search
Run a saved search by its name and get its records.
Inputs
- Business object
associationtextRequired - The business object the searches or actions belong to, by ID.
- Scope
scopetextRequired - The search's scope, such as Global, Team or User.
- Scope owner
scope_ownertext - The scope owner's ID. Leave empty when there is none.
- Search name
search_nametextRequired - The saved search's name.
- Search text
search_termtext - Words to narrow the results.
- Page
page_numbernumber - Which page of results, from 1.At least 1.
- Page size
page_sizenumber - How many to return, 1 to 200.From 1 to 200.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"businessObjects": [
{
"busObId": "example",
"busObPublicId": "example",
"busObRecId": "example",
"fields": [
{
"dirty": true,
"displayName": "example",
"fieldId": "example",
"name": "example",
"value": "example"
}
],
"values": {}
}
],
"hasMoreRecords": true,
"hasPrompts": true,
"totalRows": 1
}
}Search records
Find records of a business object by text or by field values, with every field of each.
Inputs
- Business object
bus_ob_idtextRequired - The business object, such as Incident. Pick one, or give its ID.
- Search text
search_texttext - Words to find in the records.
- Equals
equalsobject - Fields whose value equals, by field name, such as {"Status": "New"}.
- Contains
containsobject - Fields whose value contains, by field name, such as {"ShortDescription": "printer"}.
- Starts with
starts_withobject - Fields whose value starts with, by field name, such as {"CustomerDisplayName": "Ann"}.
- Greater than
greater_thanobject - Fields whose value is greater than, by field name, such as {"Priority": "2"}.
- Less than
less_thanobject - Fields whose value is less than, by field name, such as {"Priority": "4"}.
- Newest first by
newest_first_bytext - A date field to sort by, newest first, such as CreatedDateTime.
- Page
page_numbernumber - Which page of results, from 1.At least 1.
- Page size
page_sizenumber - How many to return, 1 to 200.From 1 to 200.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"businessObjects": [
{
"busObId": "example",
"busObPublicId": "example",
"busObRecId": "example",
"fields": [
{
"dirty": true,
"displayName": "example",
"fieldId": "example",
"name": "example",
"value": "example"
}
],
"values": {}
}
],
"hasMoreRecords": true,
"hasPrompts": true,
"totalRows": 1
}
}Transition record
Move a record to another lifecycle status, by a transition from Get lifecycle transitions.
Inputs
- Business object
bus_ob_idtextRequired - The business object, such as Incident. Pick one, or give its ID.
- Record ID
rec_idtextRequired - The record's record ID (busObRecId), from an earlier step.
- Transition ID
transition_option_idtextRequired - The transition's ID.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"busObId": "example",
"busObPublicId": "example",
"busObRecId": "example",
"done": true
}
}Unlink related record
Remove the link between two related records. Neither record is deleted.
Inputs
- Business object
bus_ob_idtextRequired - The business object, such as Incident. Pick one, or give its ID.
- Record ID
rec_idtextRequired - The record's record ID (busObRecId), from an earlier step.
- Relationship ID
relationship_idtextRequired - The relationship's ID, from Get Business Object schema with relationships.
- Related business object
related_bus_ob_idtextRequired - The related record's business object.
- Related record ID
related_rec_idtextRequired - The related record's record ID.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"busObId": "example",
"busObPublicId": "example",
"busObRecId": "example",
"done": true
}
}Update record
Change a record's fields. Give its public ID or record ID; fields not named are kept.
Inputs
- Business object
bus_ob_idtextRequired - The business object, such as Incident. Pick one, or give its ID.
- Public ID
public_idtext - The record's public ID, the number people see, such as an incident's number.
- Record ID
rec_idtext - The record's record ID (busObRecId), from an earlier step.
- Field values
valuesobjectRequired - Field values by field name, such as {"ShortDescription": "Printer jam"}. Get Business Object schema lists the names.
Outputs
dataobject- The response from Cherwell Service Management.
Example output
{
"data": {
"busObId": "example",
"busObPublicId": "example",
"busObRecId": "example",
"fieldValidationErrors": [
{
"error": "example",
"errorCode": "example",
"fieldId": "example"
}
]
}
}