Actions40
- Account Actions
- Contact Actions
- Meter Actions
- Opportunity Actions
- Other Actions
- Purchase Line Item Actions
- Revenue Line Item Actions
- Website Registration Actions
Overview
This node integrates with the SugarCRM API to perform various operations on CRM resources such as Opportunities, Accounts, Contacts, and others. Specifically for the Opportunity - Delete operation, it deletes an existing Opportunity record in SugarCRM by its unique ID.
Common scenarios where this node is useful include:
- Automating cleanup of outdated or invalid opportunity records.
- Integrating SugarCRM with other systems to synchronize deletions.
- Building workflows that remove opportunities after certain business conditions are met.
For example, a sales automation workflow could delete an opportunity automatically when it is marked as lost in another system, keeping the CRM data clean and up-to-date.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the Opportunity record to delete. This must be provided to specify which record to remove. |
Output
The output JSON contains the response from the SugarCRM API after attempting to delete the specified Opportunity record. Typically, this will confirm successful deletion or provide error details if the operation failed.
The structure generally includes fields returned by the API indicating the status of the deletion request. No binary data is output by this operation.
Example output JSON might look like:
{
"id": "record-id",
"deleted": true,
"status": "success"
}
Dependencies
- Requires an active connection to SugarCRM via an API key credential configured in n8n.
- The node uses OAuth2 password grant flow internally to obtain access tokens for authenticating API requests.
- The SugarCRM instance URL and user credentials must be set up in the node's credential configuration.
Troubleshooting
- Missing or invalid ID: If the ID property is empty or incorrect, the API will return an error indicating the record was not found. Ensure the correct Opportunity ID is provided.
- Authentication errors: If the API credentials are invalid or expired, authentication will fail. Verify the API key and user credentials in the node settings.
- API endpoint issues: If the SugarCRM base URL is incorrect or the API version changes, requests may fail. Confirm the base URL and API version compatibility.
- Permission denied: The authenticated user must have permission to delete Opportunity records. Check user roles and permissions in SugarCRM.
Common error messages:
"No records found or unexpected API response structure": Indicates the record ID does not exist or the API response was malformed.- Authentication failures typically mention invalid token or unauthorized access.