Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.此内容没有您所选择的语言版本。
Chapter 145. ServiceNow
ServiceNow Component 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The ServiceNow component provides access to all of ServiceNow REST API.
Maven users will need to add the following dependency to their pom.xml for this component:
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-servicenow</artifactId> <version>${camel-version}</version> </dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-servicenow</artifactId>
<version>${camel-version}</version>
</dependency>
URI format 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
servicenow://InstanceName[?Options]
servicenow://InstanceName[?Options]
Options 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Name
|
Default Value
|
Description
|
---|---|---|
userName
|
null
|
The user name to use for authentication
|
password
|
null
|
The password to use for authentication |
oauthClientId
|
null
|
OAuth2 client id |
oauthClientSecret
|
null
|
OAuth2 client secret |
oauthTokenUrl
|
https://incenceName.service-now.com/oauth_token.do
|
The OAuth2 token url |
apiUrl
|
https://incenceName.service-now.com/api/now
|
The ServiceNow API url |
table
|
null
|
The default table, can be overridden by header CamelServiceNowTable |
excludeReferenceLink
|
false
|
True to exclude Table API links for reference fields |
suppressAutoSysField
|
false
|
True to suppress auto generation of system fields |
displayValue
|
false
|
Return the display value (true), actual value (false), or both (all) for reference fields (default: false)
|
inputDisplayValue
|
false
|
True to set raw value of input fields |
models
|
null
|
Defines the default model to use for a table i.e models.incident = my.company.model.Incident |
mapper
|
ServiceNow component uses Jackson Databind to translate request/response to/from Json and you can customize how it is done by providing a custom ObjectMapper |
Headers 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Name | Type | Description |
---|---|---|
CamelServiceNowResource
|
String
|
The resource to access TABLE, AGGREGATE, IMPORT |
CamelServiceNowTable
|
String
|
The table to access
|
CamelServiceNowAction
|
String
|
The action to perform RETRIEVE, CREATE, MODIFY, DELETE, UPDATE
|
CamelServiceNowModel
|
Class
|
The data model |
CamelServiceNowSysId
|
String
|
ServiceNow sysy_id |
CamelServiceNowQuery
|
String
|
An encoded query |
CamelServiceNowDisplayValue
|
String
|
Return the display value (true), actual value (false), or both (all) for reference fields (default: false) |
CamelServiceNowInputDisplayValue
|
Boolean
|
True to set raw value of input fields |
CamelServiceNowExcludeReferenceLink
|
Boolean
|
True to exclude Table API links for reference fields |
CamelServiceNowFields
|
String
|
Comma-separated field names to return in the response |
CamelServiceNowMinFields
|
String
|
A comma-separated list of fields for which to calculate the minimum value |
CamelServiceNowMaxFields
|
String
|
A comma-separated list of fields for which to calculate the maximum value |
CamelServiceNowSumFields
|
String
|
A comma-separated list of fields for which to calculate the sum of the values |
CamelServiceNowLimit
|
Integer
|
Limit to be applied on pagination |
CamelServiceNowView
|
String
|
UI view to determine fields returned in the response. |
CamelServiceNowSuppressAutoSysField
|
Boolean
|
True to suppress auto generation of system fields |
CamelServiceNowAvgFields
|
String
|
A comma-separated list of fields for which to calculate the average value |
CamelServiceNowCount
|
Boolean
|
A boolean flag. You can set this parameter to true for the number of records returned by the query |
CamelServiceGroupBy
|
String
|
The fields to group the returned data by |
CamelServiceOrderBy
|
String
|
A list of values to order grouped results by |
CamelServiceHaving
|
String
|
An additional query allowing you to filter the data based on an aggregate operation |
Usage examples 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!