ServiceNow create record action

Use the Create Record action to create a new data record in the ServiceNow Table app.

Prerequisites

  • Ensure that you are authenticated before calling any ServiceNow action. For more details, see ServiceNow authentication action.
  • You must create a table in your ServiceNow instance as this action only creates a new record for an existing table entry with the data provided. For more details, see Creating a table.

Procedure

  1. From the Actions pane, select ServiceNow > Records > Create Record and place it in the canvas.
  2. Specify details in the following fields:
    1. Enter the Table name. You can use a standard table name available in ServiceNow, for example: Incident. Or you can use a custom user defined table name, for example: u_test_table.
      Note: For ServiceNow tables, ensure that you provide the Table name instead of the Label name.
    2. Enter the Fields and data to insert. Choose either Dictionary or Entry list. For this example, Dictionary is selected.
      1. Select the Type as String, Number, Datetime, or Boolean based on the data you want to insert in the table.
      2. Enter a key-value pair, where key is the ServiceNow field name and value is the data you want to update in the field.
        Note: The key name for a field is different from the displayed label name. You can view the key name of the file by using one of the following options:
        • In your ServiceNow developer instance, navigate to System Definition > Language File. You can use the filter option to view fields for specific Tables. For example: Incident.
        • Right-click on the field name (as shown below) to display the key name. For example: caller_id is the key name for the field Caller.

        ServiceNow field name
    3. Enter Default as the session name.
    4. Save the record ID to a variable. For example, the record ID is saved to sys_id.
      ServiceNow create record
  3. Click Run to save and run your bot.
  4. Verify whether the record is created in the ServiceNow table.
    1. Find the sys_id variable value in the Debug mode.
    2. Replace the ID in the ServiceNow URL (as shown below) to view the latest record created.

      View servicenow record created