rDraw
AI-generatedSummary
Generate a report file (PDF, DOCX, or XLSX) from an rDraw report template by specifying the template ID, data sources, and output format. Return the generated file as binary data attached to the specified binary property for further use in the workflow.
Inputs
- Report ID (required) — The ID of the rDraw report template to use for generating the report.
- Format (required) — The output format of the generated report file: PDF, DOCX, or XLSX.
- Data Sources Name or ID (required) — The JSON data structure matching the report's data source schema. Loaded via the report ID and editable in expression mode.
- Binary Property — The name of the binary property in which to store the generated file. Defaults to 'data'.
- File Name — The base file name for the generated report without extension. Defaults to 'report'.
- Additional Options — Optional settings including a timeout in milliseconds for the rDraw API response (default: 120000 ms).
Output shape
An array of items where each item contains JSON data with generation metadata and a binary property holding the generated report file.
Each output item corresponds to an input item and includes JSON with success status, reportId, format, and fileName plus the binary data of the generated report under the specified binary property name. Errors per item are included as JSON error messages if 'continue on fail' is enabled; otherwise, execution errors are thrown.
Examples
Example 1: Generate a PDF report from a specified rDraw report template using provided data source values, attaching the resulting PDF binary file to the workflow data for downstream processing.
Set Report ID to the target template UUID, select PDF as the format, load and fill the Data Sources JSON schema, and specify output file name and binary property as needed.