CreateRecord
Frends Task for creating records from ServiceNow.
Task version: 1.1.0
Required Frends version: 5.5+
Required .NET version: 6.0
Compatible Agents: Crossplatform
Source code: https://github.com/FrendsPlatform/Frends.ServiceNow/tree/main/Frends.ServiceNow.CreateRecord
Task Parameters
Url : String
The URL with protocol and path to the ServiceNow instance. You can include query parameters directly in the url.
Default: https://dev123456.service-now.com/api/now/table/{tableName}
Example: https://dev123456.service-now.com/api/now/table/{tableName}
Format : MessageFormat
Format of the message. Possible values: JSON, XML
Possible values:
JSON: Format of the message. Possible values: JSON, XMLXML: Format of the message. Possible values: JSON, XML
Default: -
Example: -
Json : String
Body of the request message in JSON format.
Content-Type: application/json header is passed automatically to the HttpContent.
Default: -
Example: { "short_description":"Hello World", "caller_id":"oauth.user" }
Xml : String
Body of the request message in XML format.
Content-Type: application/xml header is passed automatically to the HttpContent.
Default: -
Example: <short_description>Hello World</short_description> <caller_id>oauth.user</caller_id>
Headers : Header[]
List of HTTP headers to be added to the request.
Content-Type headers are passed automatically depending on the message format.
Default: -
Example: Name: Accept, Value: application/json
Authentication : Authentication
Method of authenticating request. By default, ServiceNow REST APIs use basic authentication or OAuth.
Possible values:
None: Method of authenticating request. By default, ServiceNow REST APIs use basic authentication or OAuth.Basic: Method of authenticating request. By default, ServiceNow REST APIs use basic authentication or OAuth.OAuth: Method of authenticating request. By default, ServiceNow REST APIs use basic authentication or OAuth.
Default: -
Example: OAuth
Username : String
Username for basic authentication.
Default: -
Example: Username
🗝Password : String
Password for the user.
Default: -
Example: Password123
🗝Token : String
Bearer token to be used for request. Token will be added as Authorization header.
Default: -
Example: Token123
ConnectionTimeoutSeconds : Int32
Timeout in seconds to be used for the connection and operation.
Default: 30
Example: 30
FollowRedirects : Boolean
If FollowRedirects is set to false, all responses with an HTTP status code from 300 to 399 is returned to the application.
Default: True
Example: true
AllowInvalidCertificate : Boolean
Do not throw an exception on certificate error.
Default: -
Example: true
AllowInvalidResponseContentTypeCharSet : Boolean
Some Api's return faulty content-type charset header. This setting overrides the returned charset.
Default: -
Example: true
ThrowExceptionOnErrorResponse : Boolean
Throw exception if return code of request is not successfull.
Default: -
Example: true
AutomaticCookieHandling : Boolean
If set to false, cookies must be handled manually. Defaults to true.
Default: True
Example: true
Task Result
Body : Object
Body of response
Example: {"id": "abcdefghijkl123456789", "success": true, "errors": []}
Headers : Dictionary<String, String>
Headers of response
Example: {[ "content-type": "application/json", ... ]}
StatusCode : Int32
Statuscode of response
Example: 200
Task Changelog
Changelog for Task Frends.ServiceNow.CreateRecord.
[1.1.0] - 2025-03-18
Changed
Update packages: Newtonsoft.Json 12.0.3 -> 13.0.3 System.ComponentModel.Annotations 4.7.0 -> 5.0.0 System.Runtime.Caching 7.0.0 -> 9.0.3 coverlet.collector 3.1.2 -> 6.0.4 Microsoft.NET.Test.Sdk 16.6.1 -> 17.13.0 nunit 3.12.0 -> 4.3.2 NUnit3TestAdapter 3.17.0 -> 5.0.0
[1.0.0] - 2023-10-16
Changed
Initial implementation
Last updated
Was this helpful?

