Carbone
carboneCarbone is a fast and simple report generator that converts JSON data into various document formats such as PDF, DOCX, XLSX, ODT, and more, using templates.
Acciones disponibles (7)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Delete Carbone TemplateCARBONE_DELETE_TEMPLATEAcciónTool to delete a template from the carbone server. use after confirming you have the correct template id.
CARBONE_DELETE_TEMPLATEAcciónTool to delete a template from the carbone server. use after confirming you have the correct template id.
Parámetros de entrada
templateIdstringObligatorioUnique identifier (SHA-256 hash) of the template to delete, as returned when uploading
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download TemplateCARBONE_DOWNLOAD_TEMPLATEAcciónTool to download a template from carbone by template id. use when you need to retrieve the original template file.
CARBONE_DOWNLOAD_TEMPLATEAcciónTool to download a template from carbone by template id. use when you need to retrieve the original template file.
Parámetros de entrada
template_idstringObligatorioThe unique identifier (SHA256) of the template to download.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate Carbone ReportCARBONE_GENERATE_REPORTAcciónTool to generate a carbone report from a template and json data. use when you need to render documents in various formats.
CARBONE_GENERATE_REPORTAcciónTool to generate a carbone report from a template and json data. use when you need to render documents in various formats.
Parámetros de entrada
dataobjectObligatorioData to merge into the template as a JSON object or an array of objects
enumobjectEnumerations to use with convEnum formatter, e.g. {'ORDER_STATUS': ['open', 'close']}
langstringLocale of the generated document, e.g. 'en-us'
timezonestringConvert document dates to this timezone, e.g. 'Europe/Paris'
convertTostringOutput file format as a string, e.g. 'pdf', or an object with formatName and formatOptions
complementobjectExtra data object merged into the template with tags {c.}
reportNamestringStatic or dynamic file name returned in the content-disposition header, e.g. '{d.date}.odt'
templateIdstringObligatorioUnique identifier of the Carbone template used to generate the report
batchOutputstringenumOutput type for batch processing: 'zip' or 'pdf'
zippdfhardRefreshbooleanForce recompute pagination and table of contents
variableStrstringPredefined alias for template variables, e.g. '{#def = d.id}'
batchSplitBystringBatch processing split key, e.g. 'd.items'
translationsobjectLocalization dictionary for translations formatter, e.g. {'fr-ca': {'one': 'un'}}
currencyRatesobjectMapping of currency codes to exchange rates
currencySourcestringCurrency source code for conversions, e.g. 'EUR'
currencyTargetstringTarget currency code for conversions, e.g. 'USD'
carbone-webhook-urlstringWebhook URL for asynchronous report generation. Include to enable async jobs.
carbone-webhook-headersobjectCustom headers for webhook calls, as a map of header name to value.
Parámetros de salida
dataobjectData containing the renderId if the generation succeeded
errorstringError if any occurred during the execution of the action
successbooleanObligatorioWhether the generation was successful
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate Template IDCARBONE_GENERATE_TEMPLATE_IDAcciónTool to generate a unique template id for a new template. use when you need the template identifier before uploading.
CARBONE_GENERATE_TEMPLATE_IDAcciónTool to generate a unique template id for a new template. use when you need the template identifier before uploading.
Parámetros de entrada
templatestringObligatorioBase64-encoded content of the template file (pure base64 or data-URI), used to compute the template ID without uploading.
Parámetros de salida
dataobjectObligatorioContainer for the generated template ID.
errorstringError if any occurred during the execution of the action
successbooleanObligatorioIndicates if the ID generation was successful.
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Carbone Server StatusCARBONE_GET_STATUSAcciónTool to retrieve the current status and health of the carbone server. use before generating reports to ensure the service is operational.
CARBONE_GET_STATUSAcciónTool to retrieve the current status and health of the carbone server. use before generating reports to ensure the service is operational.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Set Carbone API VersionCARBONE_SET_API_VERSIONAcciónTool to set the carbone api version to be used for subsequent requests. use before rendering or managing templates to ensure correct version is applied.
CARBONE_SET_API_VERSIONAcciónTool to set the carbone api version to be used for subsequent requests. use before rendering or managing templates to ensure correct version is applied.
Parámetros de entrada
versionintegerObligatorioMajor Carbone API version (e.g., 4)
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upload a templateCARBONE_UPLOAD_TEMPLATEAcciónTool to upload a template to the carbone server. use when you need to add or replace a template by providing its content.
CARBONE_UPLOAD_TEMPLATEAcciónTool to upload a template to the carbone server. use when you need to add or replace a template by providing its content.
Parámetros de entrada
templatestringObligatorioTemplate file content to upload. Provide raw bytes for multipart/form-data upload, or a base64-encoded string (pure base64 or data-URI) for JSON upload.
Parámetros de salida
dataobjectObligatorioContainer for the template ID of the uploaded file.
errorstringError if any occurred during the execution of the action
successbooleanObligatorioTrue if the upload was successful.
successfulbooleanObligatorioWhether or not the action execution was successful or not