Actions26
Overview
This node integrates with the GoHighLevel V2 API, allowing users to manage various resources such as Contacts, Companies, Opportunities, and Custom Fields within their GoHighLevel account. Specifically, for the Opportunity - Delete operation, it enables users to delete an existing opportunity by specifying its unique identifier.
Common scenarios where this node is beneficial include automating CRM cleanup tasks, removing outdated or irrelevant sales opportunities, and integrating opportunity management into broader workflows that maintain data hygiene.
For example, a user might set up a workflow that automatically deletes opportunities marked as lost after a certain period, helping keep the sales pipeline current.
Properties
| Name | Meaning |
|---|---|
| Opportunity ID | The unique identifier of the opportunity to delete. This is a required string property. |
Output
The node outputs JSON data representing the result of the delete operation. Typically, this will be a confirmation object indicating success or details about the deleted opportunity. If the operation fails and "Continue On Fail" is enabled, the output will contain an error message in the json.error field.
No binary data output is involved in this operation.
Dependencies
- Requires an active connection to the GoHighLevel V2 API.
- Requires an API authentication token configured via OAuth2 credentials in n8n.
- The node depends on internal utility methods and resource handlers to perform API requests.
Troubleshooting
Common Issues:
- Providing an invalid or non-existent Opportunity ID will cause the delete operation to fail.
- Missing or expired API authentication tokens will prevent successful API calls.
- Selecting an unsupported resource or operation will throw an error.
Error Messages:
"The resource \"opportunity\" is not known!": Indicates the resource parameter was incorrect or unsupported.- API errors returned from GoHighLevel (e.g., 404 Not Found if the Opportunity ID does not exist).
Resolutions:
- Verify the Opportunity ID is correct and exists in the GoHighLevel account.
- Ensure the API credentials are valid and have necessary permissions.
- Use the node’s "Continue On Fail" option to handle errors gracefully in workflows.
Links and References
- GoHighLevel API Documentation (for detailed API capabilities)
- n8n OAuth2 Credential Setup (for configuring API authentication)