Overview
This node manages products associated with deals in RD Station CRM. It allows users to add, update, remove, or list products linked to a specific deal. This is useful for automating sales workflows where product details within deals need to be synchronized or modified programmatically.
Common scenarios:
- Adding multiple products to a new or existing deal automatically after a sales event.
- Updating quantities, unit prices, discounts, or totals of products already linked to a deal.
- Removing products from a deal when they are no longer relevant.
- Retrieving all products currently associated with a deal for reporting or further processing.
Practical example:
A sales automation workflow that, upon deal creation, adds a predefined set of products with specified quantities and discounts to the deal. Later, if the customer changes their order, the workflow updates the product details accordingly.
Properties
| Name | Meaning |
|---|---|
| ID do Negócio | The unique identifier of the deal to which products will be added, updated, removed, or listed. |
| Produtos | A collection of products to add or update in the deal. Each product includes: - ID do Produto: Product catalog ID to link. - Quantidade: Quantity of the product in the deal. - Valor Unitário: Unit price of the product in the context of the deal. - Desconto (%): Percentage discount applied to the product (0-100). - Total: Total value of the item (auto-calculated if not provided). |
Output
The node outputs JSON data representing the response from the RD Station CRM API for each operation:
- For add and update operations, it returns the updated list or status of products linked to the deal.
- For remove, it returns confirmation of removal.
- For getAll, it returns an array of all products currently associated with the specified deal.
The output JSON structure corresponds directly to the API's response body and includes product details such as IDs, quantities, prices, discounts, and totals.
No binary data output is produced by this node.
Dependencies
- Requires an active connection to RD Station CRM via an API key credential configured in n8n.
- The node uses the RD Station CRM API endpoint at
https://crm.rdstation.com/api/v1. - Proper permissions on the API key to manage deal products are necessary.
Troubleshooting
- Missing Deal ID: If the "ID do Negócio" property is empty or invalid, the node throws an error indicating a valid deal ID is required.
- Empty Products List: For add or update operations, providing an empty product list causes an error prompting to supply at least one product.
- Empty Product IDs for Removal: When removing products, failing to provide at least one product ID results in an error.
- API Authentication Errors: Ensure the API key credential is correctly set up and has sufficient permissions.
- Network Issues: Connectivity problems with the RD Station CRM API can cause request failures; verify network access.
- Data Validation: Incorrect data types or out-of-range values (e.g., discount > 100%) may lead to API rejections.
To resolve errors:
- Double-check input parameters for completeness and correctness.
- Verify API credentials and permissions.
- Review API limits and quotas if requests fail repeatedly.