Actions7
Crear Registro
AI-generatedSummary
Creates a record in the selected Comercia module by POSTing its configured fields to that module’s API endpoint. For SalesOrder, Quotes, and PurchaseOrder, it also parses and includes the required products JSON array.
Inputs
- authentication — Choose Comercia Key (default) or OAuth2 credentials.
- moduleName (required) — Select the Comercia module where the record will be created. Available modules are loaded from Comercia.
- fields (required) — Map values for the selected module’s editable fields. Empty, null, and undefined values are omitted from the request.
- products (required) — For SalesOrder, Quotes, and PurchaseOrder, provide a JSON array of products; invalid JSON or a non-array value causes an error. The UI describes this as intended for SalesOrder and Quotes, but the implementation also reads it for PurchaseOrder.
Output shape
One n8n output item per input item, containing a JSON object.
On a successful request, the object includes success: true, the Comercia response under response, and _metadata with the module, submitted field names, field count, and timestamp. A request failure is returned as success: false with error details and metadata; JSON parsing errors follow the node’s continue-on-fail behavior or are thrown. The request sends a POST to /comercia_ws/{moduleName}.