In certain scenarios, obtaining URLs pointing to uploaded documents for use in integrations is essential. This process involves adding a custom action to your workflow that requests URLs from the Documents plugin.
Before retrieving document URLs, ensure:
Access Permissions: Ensure that the user account has the necessary access rights.
Kafka Configuration:
types
: A list of document types.To obtain document URLs, follow these steps:
Create the process
Create a process that will contain the following types of nodes:
Configure the User Task
Start configuring the User Task node:
ai.flowx.updates.document.html.persist.v1
and its key: uploadedDocument
.We will configure the following node actions:
Upload action parameters
Configure the parameters for the Upload Action:
For more details on uploading a document and configuring the file upload child actions, refer to the following sections:
Configure the Send Message Task
Next, configure the Send Message Tas (Kafka) node by adding a Kafka Send Action and specifying the ..in
Kafka topic to send the request.
Identify defined topics in your environment:
KafkaTopicsHealthCheckIndicator
line and then details → configuration → topic → document → get. Here will find the in and out topics for getting URLs for documents.Configure the request action
Fill in the body of the request message for the Kafka Send action to send the get URLs request:
types
: A list of document types.Example of a message following the custom integration data model:
Configure the Receive Message Task
Configure the Receive Message Task (Kafka) by adding the ..out
kafka topic on which the response will be sent.
The response body should include the following values:
In certain scenarios, obtaining URLs pointing to uploaded documents for use in integrations is essential. This process involves adding a custom action to your workflow that requests URLs from the Documents plugin.
Before retrieving document URLs, ensure:
Access Permissions: Ensure that the user account has the necessary access rights.
Kafka Configuration:
types
: A list of document types.To obtain document URLs, follow these steps:
Create the process
Create a process that will contain the following types of nodes:
Configure the User Task
Start configuring the User Task node:
ai.flowx.updates.document.html.persist.v1
and its key: uploadedDocument
.We will configure the following node actions:
Upload action parameters
Configure the parameters for the Upload Action:
For more details on uploading a document and configuring the file upload child actions, refer to the following sections:
Configure the Send Message Task
Next, configure the Send Message Tas (Kafka) node by adding a Kafka Send Action and specifying the ..in
Kafka topic to send the request.
Identify defined topics in your environment:
KafkaTopicsHealthCheckIndicator
line and then details → configuration → topic → document → get. Here will find the in and out topics for getting URLs for documents.Configure the request action
Fill in the body of the request message for the Kafka Send action to send the get URLs request:
types
: A list of document types.Example of a message following the custom integration data model:
Configure the Receive Message Task
Configure the Receive Message Task (Kafka) by adding the ..out
kafka topic on which the response will be sent.
The response body should include the following values: