Post Post

yaml
type: "io.kestra.plugin.servicenow.Post"

Insert data inside a ServiceNow table.

Examples

Create an incident.

yaml
id: servicenow_post
namespace: company.team

tasks:
  - id: post
    type: io.kestra.plugin.servicenow.Post
    domain: "snow_domain"
    username: "snow_username"
    password: "snow_password"
    clientId: "snow_client_id"
    clientSecret: "snow_client_secret"
    table: incident
    data:
      short_description: "API Create Incident..."
      requester_id: f8266e2adb16fb00fa638a3a489619d2
      requester_for_id: a7ec77cbdefac300d322d182689619dc
      product_id: 01a2e3c1db15f340d329d18c689ed922

Properties

clientId

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Min length: 1

ServiceNow client ID.

clientSecret

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Min length: 1

ServiceNow client secret.

data

  • Type: object
  • Dynamic: ✔️
  • Required: ✔️

The data to insert.

domain

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Min length: 1

ServiceNow domain.

Will be used to generate the url: https://[[DOMAIN]].service-now.com/

password

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Min length: 1

ServiceNow password.

table

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Min length: 1

ServiceNow table.

username

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Min length: 1

ServiceNow username.

headers

  • Type: object
  • SubType: string
  • Dynamic: ✔️
  • Required:

The headers to pass to the request

Outputs

result

  • Type: object
  • Required:

The result data..

Definitions

Was this page helpful?