Fetch information from an external source using APIs
To use information from an external source in your process, you can fetch it via API, including APIs requiring OAuth 2.0 authentication.
To do this, follow these steps:
Add a new service task to the process.
Define
Delegate expression
to be${API}
.Configure the
Class fields
as described in the table:
Name | Required / Optional | Description |
---|---|---|
| Required | URL to access the API. If request parameters are used, embed them to the url as well. |
| Optional, but required for OAuth 2.0 | URL of the authentication service if OAuth 2.0 is used. |
| Optional | Authentication type:
|
| Optional, but required if | External source's application Client ID. |
| Required | Username for the API authentication. If If grantType is |
| Required | Password for the API authentication. |
| Optional | Defines the response format:
|
| Optional | The API method to use in the request: |
| Optional with method Required with method | Request body to send in the API call. For example, in GraphQL, the body would be structured as follows: |
| Optional | Comma-separated list of keys from the API response that you want to filter. If you define a key with If you want to rename a key, define the following: |
| Optional | The prefix of the key names in the API response. Example: If not specified, then |