AvantGuard - ConnectSecure icon

AvantGuard - ConnectSecure

AvantGuard - ConnectSecure

Actions223

Overview

This node interacts with the "Reports" resource to retrieve a downloadable report based on a specific job identifier. It is designed to fetch reports that may be either global or user-specific, depending on the input parameters. This functionality is useful in scenarios where users need to programmatically access generated reports from an external service, such as audit logs, analytics summaries, or batch job results.

For example, after submitting a job to generate a report, this node can be used to download the resulting report file by specifying the job ID and user context.

Properties

Name Meaning
X USER ID The user identifier header sent with the request to specify which user's report to fetch.
Job Id The unique identifier of the job for which the report is requested.
Is Global Boolean flag indicating whether the report is global (true) or user-specific (false).

Output

The node outputs JSON data representing the downloaded report content. The exact structure depends on the external API's response but typically includes the report data associated with the specified job ID.

If the report contains binary data (e.g., a PDF or CSV file), it would be included in the binary output field, allowing further processing or saving within n8n workflows.

Dependencies

  • Requires an API key credential for authentication with the external service.
  • The base URL for the API must be configured in the node credentials.
  • The node uses an OpenAPI specification internally to build its properties and handle requests.

Troubleshooting

  • Missing or invalid X USER ID: Ensure the user ID is correctly provided; otherwise, the API may reject the request.
  • Invalid Job Id: If the job ID does not exist or has expired, the API will likely return an error or empty response.
  • Incorrect Is Global flag: Setting this flag incorrectly might result in no data being returned if the report scope does not match.
  • Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
  • Network issues: Check connectivity to the configured base URL.

Links and References

  • Refer to the external service’s API documentation for details on the Reports resource and the expected format of the downloadable report.
  • n8n documentation on using HTTP Request nodes and handling binary data for further customization.

Discussion