Knack icon

Knack

Knack Api

Overview

The Knack node for n8n allows you to interact with the Knack API, specifically to retrieve a single record from a specified object in your Knack application. Using the "Get" operation, you can fetch detailed information about a specific record by providing its Object Name or ID and Record ID.

Common scenarios:

  • Fetching customer, order, or project details from a Knack database for use in automated workflows.
  • Retrieving a record to enrich data before sending it to another service (e.g., email, CRM, reporting).
  • Validating or checking the existence of a record before performing further actions.

Practical example:
You might use this node to look up a user's profile in Knack when they submit a form, then send their details to another system or trigger a notification.


Properties

Name Meaning
Object Name or ID Choose from the list of available objects in your Knack app, or specify an object ID using an expression. This determines which object (table) to query. Required.
Record ID The unique identifier of the record you want to retrieve from the selected object. Required for Get, Delete, Update operations.

Output

  • The output is a JSON object containing the fields of the retrieved record.
  • Field names are mapped to their human-readable names as defined in Knack.
  • Example output structure:
{
  "Field Name 1": "Value 1",
  "Field Name 2": "Value 2",
  ...
}
  • If an error occurs and "Continue On Fail" is enabled, the output will include an error field with the error message.

Dependencies

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

Troubleshooting

Common issues:

  • Invalid Object Name or ID: If the object key is incorrect, the node will fail to find the object.
  • Missing or Invalid Record ID: If the Record ID does not exist in the selected object, the node will return an error.
  • Authentication errors: If the Knack API credentials are missing or invalid, requests will fail.

Error messages:

  • "Cannot find object": Check that the Object Name or ID is correct and exists in your Knack app.
  • "Record not found": Ensure the Record ID is valid for the selected object.
  • "Authentication failed": Verify your Knack API credentials in n8n.

Links and References

Discussion