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

ActionWhat it does
Create recordCreate a record, such as an incident or a customer, from field values by field name.
Create related recordCreate a record related to another, such as a journal note or a task on an incident.
Delete recordDelete a record by its public ID or record ID.
Get business object schemaGet a business object's fields (names, types, required) and, if asked, its relationships.
Get lifecycle transitionsList the lifecycle transitions (status changes) a record can make now.
Get recordGet a record, such as an incident, by its public ID or record ID, with every field's value.
Get related recordsGet the records related to a record through one relationship, such as an incident's journals or tasks.
Get service infoGet the Cherwell server's CSM and REST API versions, culture and time.
Get userGet a CSM user by their login ID, with their record ID and fields.
Link related recordLink an existing record to another through a relationship.
List business objectsList the business objects, such as Incident, Change Request and Customer, with each one's ID.
List One-Step ActionsList the One-Step Actions for a business object, in their folders.
List saved searchesList the saved searches for a business object, in their folders.
List teamsList the teams, with each one's ID.
Run One-Step ActionRun a One-Step Action on a record.
Run saved searchRun a saved search by its name and get its records.
Search recordsFind records of a business object by text or by field values, with every field of each.
Transition recordMove a record to another lifecycle status, by a transition from Get lifecycle transitions.
Unlink related recordRemove the link between two related records.
Update recordChange a record's fields.

Create record

Create a record, such as an incident or a customer, from field values by field name.

Inputs

Business objectbus_ob_idtextRequired
The business object, such as Incident. Pick one, or give its ID.
Field valuesvaluesobjectRequired
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 a record related to another, such as a journal note or a task on an incident.

Inputs

Business objectbus_ob_idtextRequired
The business object, such as Incident. Pick one, or give its ID.
Record IDrec_idtextRequired
The record's record ID (busObRecId), from an earlier step.
Relationship IDrelationship_idtextRequired
The relationship's ID, from Get Business Object schema with relationships.
Related business objectrelated_bus_ob_idtextRequired
The related record's business object.
Field valuesvaluesobjectRequired
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 objectbus_ob_idtextRequired
The business object, such as Incident. Pick one, or give its ID.
Public IDpublic_idtext
The record's public ID, the number people see, such as an incident's number.
Record IDrec_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 objectbus_ob_idtextRequired
The business object, such as Incident. Pick one, or give its ID.
Include relationshipsinclude_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 objectbus_ob_idtextRequired
The business object, such as Incident. Pick one, or give its ID.
Record IDrec_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 objectbus_ob_idtextRequired
The business object, such as Incident. Pick one, or give its ID.
Public IDpublic_idtext
The record's public ID, the number people see, such as an incident's number.
Record IDrec_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 the records related to a record through one relationship, such as an incident's journals or tasks.

Inputs

Business objectbus_ob_idtextRequired
The business object, such as Incident. Pick one, or give its ID.
Record IDrec_idtextRequired
The record's record ID (busObRecId), from an earlier step.
Relationship IDrelationship_idtextRequired
The relationship's ID, from Get Business Object schema with relationships.
Pagepage_numbernumber
Which page of results, from 1.At least 1.
Page sizepage_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 IDlogin_idtextRequired
The user's login ID.
Login typelogin_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 an existing record to another through a relationship.

Inputs

Business objectbus_ob_idtextRequired
The business object, such as Incident. Pick one, or give its ID.
Record IDrec_idtextRequired
The record's record ID (busObRecId), from an earlier step.
Relationship IDrelationship_idtextRequired
The relationship's ID, from Get Business Object schema with relationships.
Related business objectrelated_bus_ob_idtextRequired
The related record's business object.
Related record IDrelated_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

Kindobject_typetextRequired
Which kind of business objects to list.One of: Major (Major (incidents, changes, customers…)), Supporting, Lookup (Lookup tables), Groups, All.
Name containsnametext
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 objectassociationtextRequired
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 objectassociationtextRequired
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 keystand_in_keytextRequired
The One-Step Action's key, from List One-Step Actions.
Business objectbus_ob_idtextRequired
The business object, such as Incident. Pick one, or give its ID.
Record IDrec_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 a saved search by its name and get its records.

Inputs

Business objectassociationtextRequired
The business object the searches or actions belong to, by ID.
ScopescopetextRequired
The search's scope, such as Global, Team or User.
Scope ownerscope_ownertext
The scope owner's ID. Leave empty when there is none.
Search namesearch_nametextRequired
The saved search's name.
Search textsearch_termtext
Words to narrow the results.
Pagepage_numbernumber
Which page of results, from 1.At least 1.
Page sizepage_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 objectbus_ob_idtextRequired
The business object, such as Incident. Pick one, or give its ID.
Search textsearch_texttext
Words to find in the records.
Equalsequalsobject
Fields whose value equals, by field name, such as {"Status": "New"}.
Containscontainsobject
Fields whose value contains, by field name, such as {"ShortDescription": "printer"}.
Starts withstarts_withobject
Fields whose value starts with, by field name, such as {"CustomerDisplayName": "Ann"}.
Greater thangreater_thanobject
Fields whose value is greater than, by field name, such as {"Priority": "2"}.
Less thanless_thanobject
Fields whose value is less than, by field name, such as {"Priority": "4"}.
Newest first bynewest_first_bytext
A date field to sort by, newest first, such as CreatedDateTime.
Pagepage_numbernumber
Which page of results, from 1.At least 1.
Page sizepage_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 objectbus_ob_idtextRequired
The business object, such as Incident. Pick one, or give its ID.
Record IDrec_idtextRequired
The record's record ID (busObRecId), from an earlier step.
Transition IDtransition_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
  }
}

Remove the link between two related records. Neither record is deleted.

Inputs

Business objectbus_ob_idtextRequired
The business object, such as Incident. Pick one, or give its ID.
Record IDrec_idtextRequired
The record's record ID (busObRecId), from an earlier step.
Relationship IDrelationship_idtextRequired
The relationship's ID, from Get Business Object schema with relationships.
Related business objectrelated_bus_ob_idtextRequired
The related record's business object.
Related record IDrelated_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 objectbus_ob_idtextRequired
The business object, such as Incident. Pick one, or give its ID.
Public IDpublic_idtext
The record's public ID, the number people see, such as an incident's number.
Record IDrec_idtext
The record's record ID (busObRecId), from an earlier step.
Field valuesvaluesobjectRequired
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"
      }
    ]
  }
}

On this page