OmniFlow icon

OmniFlow

Consume OmniFlow API

Actions20

Overview

This node integrates with the OmniFlow API to manage company data within a workflow. Specifically, for the Company - Delete operation, it deletes a company record identified by its unique ID. This is useful in scenarios where you want to automate the removal of outdated or irrelevant company entries from your CRM or marketing database.

Practical examples include:

  • Automatically deleting companies that have been marked as inactive or duplicates.
  • Cleaning up test or temporary company records after a campaign.
  • Integrating with other systems to synchronize deletions across platforms.

Properties

Name Meaning
Authentication Method of authentication to use: either "Credentials" (API key) or "OAuth2"
Company ID The unique identifier of the company to delete
Simplify Whether to return a simplified version of the response (only main fields) or raw full data

Output

The output JSON contains the deleted company's data under the json field. If the "Simplify" option is enabled, the output includes only the main fields of the deleted company; otherwise, it returns the full raw response from the API.

No binary data is output by this operation.

Example output structure when simplified:

{
  "companyname": "Example Company",
  "industry": "Technology",
  "phone": "+1234567890",
  "...": "other main fields"
}

If not simplified, the output will contain the full detailed company object as returned by the OmniFlow API.

Dependencies

  • Requires an active OmniFlow API connection configured in n8n, using either:
    • An API key credential, or
    • OAuth2 authentication.
  • The node depends on the OmniFlow REST API being accessible and the provided company ID being valid.

Troubleshooting

  • Common issues:

    • Invalid or missing Company ID: The API call will fail if the company ID does not exist or is malformed.
    • Authentication errors: Ensure the API credentials or OAuth2 token are correctly set up and have sufficient permissions.
    • Network or API downtime: The node requires connectivity to the OmniFlow API endpoint.
  • Error messages:

    • "error": "Company not found" — Indicates the specified company ID does not exist. Verify the ID.
    • Authentication failures typically return HTTP 401 or 403 errors. Recheck credentials.
    • Rate limiting or server errors may cause temporary failures; retry later or check API status.
  • To handle errors gracefully, enable the "Continue On Fail" option in the node settings to prevent workflow interruption.

Links and References

Discussion