πŸ“„ Call External Services

Call External Services

The Call External Services Step enables communication with third-party applications through API requests, allowing the Workflow to retrieve, create, or update data with these applications.


Requirements

Basic knowledge of APIs and how to build API requests are required.

Make sure that Web Service Client Settings is configured in the Strato Admin Tool.


Functionality

  • Integrate with third-party applications to create, read, update, or delete data through APIs
  • Upload generated documents to the third-party application
  • Handle complex functionalities not covered natively in Strato
πŸ’‘

Most properties and parameters can be mapped using the following options:

  • Static Values: This includes Static Text, Date/Time, and True/False. Values for these should be manually defined.
  • Container or Step Export Parameter: Select a Container or an Output Parameter from previous Steps as the value.
  • Datasource Field: Select a field from SuccessFactors to use as the value.


Step Properties

Name
The name of the Step as it appears in the Workflow Editor. By default, this is set as Call External Services.
Description
A short description of the Step. By default, this is set as "Step to call a 3rd party web service."
3rd Party Application
Select which Workflow to execute. The list of third-party applications comes from the configured Web Service Client Settings in the Strato Admin Tool.
Method

Select the HTTP method to send to the third-party application:

  • DELETE: A request to delete data.
  • POST: A request to submit new data.
  • GET: A request to retrieve data.
  • PUT: A request to replace data with a new one.
Number of Retries
Set the number of times this Step will re-execute when it encounters an error.
Time between retries

Set the time delay in seconds between each try.

⚠️

Avoid setting the value higher than 300 seconds (5 minutes).

API User

Set the user that interacts with the API.

Aside from Static Text, Container or Step Export Parameter, and Datasource Field, this property can also be mapped to the following:

  • API User: Select from the list of valid Strato users.
Asynchronous
If enabled, the Workflow will be paused until a response is received from the API through the callback URL or when a Step Validity has been set. This also enables the Step Validity tab and the Callback Response Parameters section in the Output Parameters tab.
File Output
If enabled, users can download a file attachment (in PDF format) from the third-party application API. This PDF file can be used in other Workflow Steps.
HTTP Headers
Set the parameters and context of the API request.
URL
Shows the base URL of the selected third-party application. Click to add or modify the URL parameters.
Body

Select how the request body is defined:

  • Raw: This is the default way to build the request body. Allows you to build the request using JSON.
  • Multipart: Allows you to build the request similar to a website form.
πŸ’‘

Learn more about how to use the Raw and Multipart Body Builder.


Input Parameters

Catalog Key
The key ID used when running this Step.
Output Filename

Allows you to set the file name of the output from this Step.


Output Parameters

Generic Output Parameters

Regardless of the selected third-party application, all Call External Services Step will have the following generic output parameters:

  • Step Status
  • Error Message
  • HTTP Response Code
  • Callback Status
  • Validity Messages
  • Validity Action

When File Output is enabled, two output parameters are added in the list of generic parameters:

  • File
  • Filename


Dynamic Output Parameters

However, unlike other Steps, Call External Services allows you to add and define output parameters depending on the API response from the selected third-party application, which may not be covered by the generic ones. This is done through the Dynamic Output Parameters section.

⚠️

This section is not available when File Output is enabled.


Callback Response Parameters

When Asynchronous is enabled, the Callback Response Parameters section is shown. This allows you to add, define, capture, and retrieve the parameters sent back through the Callback URL.

This section enables admins to set up the Source (either URL or Body) and the Body Format (either JSON or XML) for the parameters retrieved from the Callback URL.

Conditions can also be added to this section through the Add Conditions button.


Error Handling

The Error Handling tab allows you to define the actions to be executed when an error occurs in this Step.

πŸ’‘

Learn more about Error Handlers.


Step Delay

The Step Delay tab allows you to set a specific time for the Step to execute.

πŸ’‘

Learn more about Scheduler.


Step Validity

The Step Validity tab allows you to set until when the Step is available, and define the actions to be executed afterwards.

πŸ’‘

Learn more about Step Validity.

⚠️

This tab is not available when Asynchronous is disabled.


Related articles