Opencell icon

Opencell

Consume Opencell API

Overview

The Duplicate Quote Version operation for the "Quote" resource in this custom n8n node allows users to create a duplicate of an existing quote version within the Opencell CPQ (Configure, Price, Quote) system. This is useful when you want to quickly create a new version of a quote based on an existing one, preserving all its details and structure, which can then be modified or sent to a different customer.

Common scenarios:

  • Creating a new quote version for revision or negotiation purposes.
  • Duplicating a quote for a similar customer or opportunity.
  • Maintaining version history while making changes to quotes.

Practical example:
A sales team needs to send a revised offer to a client. Instead of creating a new quote from scratch, they use this operation to duplicate the current quote version, make necessary adjustments, and send it out.


Properties

Name Type Meaning
Authentication options Selects the authentication method for connecting to Opencell (Basic Authentication or OAuth2).
Quote Code string The unique code identifying the quote to be duplicated.
Quote Version number The specific version number of the quote to duplicate.
Body Content Type hidden Internal property set to "multipart-form-data"; not user-configurable.

Output

  • The output is a JSON object containing the result of the duplication operation as returned by the Opencell API.
  • The exact structure depends on the Opencell API response, but typically includes details about the newly created quote version (such as its code, version number, status, etc.).
  • No binary data is produced by this operation.

Example output (structure may vary):

{
  "quoteCode": "Q12345",
  "quoteVersion": 3,
  "status": "DRAFT",
  "createdDate": "2024-06-10T12:34:56Z",
  // ...other fields as provided by Opencell
}

Dependencies

  • External Service: Requires access to an Opencell instance with the CPQ module enabled.
  • Authentication: Needs valid credentials for either Basic Authentication or OAuth2, configured in n8n credentials.
  • n8n Configuration: The node must be properly set up with the required credentials (opencellApi or opencellOAuth2Api).

Troubleshooting

Common issues:

  • Invalid Quote Code or Version: If the provided quote code or version does not exist, the API will return an error.
  • Authentication Errors: Incorrect credentials or insufficient permissions will prevent the operation from succeeding.
  • API Connectivity Issues: Network problems or incorrect Opencell API endpoint configuration can cause failures.

Error messages and resolutions:

  • "Username/password error. Error code : XXX": Check your Opencell credentials in n8n.
  • "Host error. Error code : XXX": Verify the Opencell API URL and network connectivity.
  • "Invalid credentials (unknown error)": Double-check authentication settings.
  • "Resource not found" or similar: Ensure the quote code and version are correct and exist in Opencell.

Links and References

Discussion