Manipulating Data

Creating Records

Creating records in ServiceNow through Kognitos allows for automation of tasks such as incident reporting, task creation, and more. This process involves specifying the type of record and providing necessary details.

Example: Creating an Incident

create an incident in ServiceNow with #
    the short description is "Network outage in Building 1"
    the urgency is "1 - High"

This example demonstrates how to create a new incident record with a short description and urgency level.

Steps:

  1. Specify Record Type: Determine the type of record you want to create (e.g., incident, problem, task).

  2. Provide Record Details: Include all necessary details for the record, such as description, urgency, and any other required fields.

Updating Records

Updating existing records in ServiceNow via Kognitos can be crucial for maintaining accurate and current data. This might involve changing the status of an incident, updating task assignments, or modifying user details.

Examples: Updating Records

  • Updating an Incident:

    update an incident in ServiceNow with #
        the status is "Resolved"
        whose number is "INC0012345"
    

    This example updates the status of a specific incident to "Resolved."

  • Updating a Task:

    update a task in ServiceNow with #
        the assignment group is "Network Support"
        whose number is "TASK0012345"
    

    This example changes the assignment group of a specific task.

Steps:

  1. Identify the Record: Use identifiers (e.g., incident number) to specify the record you wish to update.

  2. Specify Changes: Clearly define what changes need to be made to the record.

  3. Apply Filters: Use filters to narrow down the record(s) if necessary.

Deleting Records

Deleting records should be done with caution. Kognitos allows for deleting specific records in ServiceNow, such as incidents or problems, based on provided identifiers.

Examples: Deleting Records

  • Deleting an Incident:

    delete an incident in servicenow whose number is "INC0012345" #
    

    This example deletes a specific incident based on its number.

  • Deleting a Problem:

    delete a problem in servicenow whose number is "PRB678910" #
    

    This example deletes a specific problem record.

Steps:

  1. Specify Record Type: Determine the type of record you wish to delete.

  2. Provide Identifiers: Use specific identifiers (e.g., incident number) to ensure accuracy.

  3. Confirm Deletion: Always double-check before deleting records to prevent accidental data loss.

Last updated

Was this helpful?