Insert data into a ServiceNow table.

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

Create an incident using BasicAuth.

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"
    table: incident
    data:
      short_description: "API Create Incident..."
      requester_id: f8266e2adb16fb00fa638a3a489619d2
      requester_for_id: a7ec77cbdefac300d322d182689619dc
      product_id: 01a2e3c1db15f340d329d18c689ed922

Create an incident using OAuth.

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: "my_registered_kestra_application_client_id"
    clientSecret: "my_registered_kestra_application_client_secret"
    table: incident
    data:
      short_description: "API Create Incident..."
      requester_id: f8266e2adb16fb00fa638a3a489619d2
      requester_for_id: a7ec77cbdefac300d322d182689619dc
      product_id: 01a2e3c1db15f340d329d18c689ed922
Properties

The data to insert.

ServiceNow domain.

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

ServiceNow password.

to be used with 'username'

ServiceNow table.

ServiceNow username.

to be used with 'password' for a BasicAuth authentication

ServiceNow client ID.

to be used with 'clientSecret', 'username' and 'password' for a OAuth authentication

ServiceNow client secret.

to be used with 'clientId'

SubType string

The headers to pass to the request

The HTTP client configuration.

The result data..

Format duration

The time allowed to establish a connection to the server before failing.

Default PT5M
Format duration

The time allowed for a read connection to remain idle before closing it.

The password for HTTP basic authentication.

The username for HTTP basic authentication.

Default false

If true, allow a failed response code (response code >= 400)

SubType integer

List of response code allowed for this request

The authentification to use.

Default UTF-8

The default charset for the request.

Default true

Whether redirects should be followed automatically.

SubType string
Possible Values
REQUEST_HEADERSREQUEST_BODYRESPONSE_HEADERSRESPONSE_BODY

The enabled log.

The proxy configuration.

The SSL request options

The timeout configuration.

The address of the proxy server.

The password for proxy authentication.

The port of the proxy server.

Default DIRECT
Possible Values
DIRECTHTTPSOCKS

The type of proxy to use.

The username for proxy authentication.

Whether to disable checking of the remote SSL certificate.

Only applies if no trust store is configured. Note: This makes the SSL connection insecure and should only be used for testing. If you are using a self-signed certificate, set up a trust store instead.

The token for bearer token authentication.