Knack icon

Knack

Knack Api

Overview

The Knack node for n8n allows you to interact with the Knack API to manage records in your Knack applications.
Resource: Default, Operation: Delete is used to delete a specific record from a selected object within your Knack app.

Common scenarios:

  • Automating the removal of outdated or incorrect records.
  • Cleaning up data as part of a workflow (e.g., after archiving or exporting).
  • Integrating with other systems that require deletion of records based on external triggers.

Example use case:
When a customer unsubscribes from a service, automatically delete their record from the "Customers" object in Knack.


Properties

Name Meaning
Object Name or ID The Knack object (table) from which you want to delete a record. You can select from a list or specify an object ID using an expression.
Record ID The unique identifier of the record you wish to delete from the selected object. This field is required for the Delete operation.

Output

  • json:
    • Contains the response from the Knack API after attempting to delete the record.
    • If successful, it typically includes confirmation details or may be empty depending on Knack's API response.
    • If an error occurs and "Continue On Fail" is enabled, the output will include an error property with the error message.

Example output (success):

{
  "json": {
    // Response from Knack API, often empty or with minimal info
  }
}

Example output (failure with Continue On Fail):

{
  "json": {
    "error": "Record not found"
  }
}
  • binary:
    • Not used by this operation.

Dependencies

  • External Service: Requires access to the Knack API.
  • Credentials: You must configure Knack API credentials (knackApi) in n8n.
  • Environment: No special environment variables are needed beyond standard n8n credential setup.

Troubleshooting

Common issues:

  • Invalid Object or Record ID:
    • Error: "Record not found" or similar.
      • Ensure the Object Name/ID and Record ID are correct and exist in your Knack app.
  • Missing Credentials:
    • Error: Authentication or authorization errors.
      • Make sure the Knack API credentials are set up correctly in n8n.
  • Insufficient Permissions:
    • Error: Permission denied or forbidden.
      • Check that the API user has permission to delete records in the specified object.
  • Network/API Errors:
    • Error: Timeout or connection errors.
      • Verify network connectivity and Knack API status.

How to resolve:

  • Double-check the values entered for Object Name/ID and Record ID.
  • Confirm that your n8n instance has valid Knack API credentials.
  • Review Knack app permissions for the API user.

Links and References

Discussion