AvantGuard - Hudu icon

AvantGuard - Hudu

AvantGuard - Hudu

Actions109

Overview

The AvantGuard - Hudu node for n8n allows you to create (post) new company records in the Hudu system. This is particularly useful for automating the onboarding of new clients, synchronizing company data from other systems, or batch-creating companies as part of a workflow. For example, you might use this node to automatically add a new company to Hudu whenever a new customer signs up in your CRM.

Properties

Name Type Meaning
Name String The name of the company.
Nickname String The nickname of the company.
Company Type String The type/category of the company.
Address Line 1 String The first line of the company's address.
Address Line 2 String The second line of the company's address.
City String The city where the company is located.
State String The state where the company is located.
Zip String The zip code of the company's location.
Country Name String The country where the company is located.
Phone Number String The company's phone number.
Fax Number String The company's fax number.
Website String The company's website URL.
Id Number String The company's identification number.
Parent Company Id Number The parent company's ID, if applicable.
Notes String Additional notes about the company.

All these fields are optional and can be provided via the "Additional Body Fields" collection property.

Output

The node returns the JSON response from the Hudu API after creating the company. The structure typically includes details of the newly created company, such as its ID and all submitted fields. The exact output depends on the Hudu API's response format, but you can expect a JSON object representing the company record.

Example output:

{
  "id": 123,
  "name": "Acme Corp",
  "nickname": "Acme",
  "company_type": "Client",
  "address_line_1": "123 Main St",
  "city": "Metropolis",
  "state": "NY",
  "zip": "10001",
  "country_name": "USA",
  "phone_number": "+1-555-1234",
  "website": "https://acme.com",
  "notes": "Important client",
  ...
}

Dependencies

  • External Service: Requires access to a Hudu instance with API enabled.
  • API Key/Credentials: You must configure the avantguardHuduApi credential in n8n, which should include the base URL (baseUrl) and an API key/token with permission to create companies.
  • n8n Configuration: No special configuration beyond credentials is required.

Troubleshooting

  • Authentication Errors: If the API key or base URL is incorrect, you may receive authentication errors (e.g., 401 Unauthorized). Double-check your credentials.
  • Missing Required Fields: While all fields are optional, the Hudu API may enforce certain requirements depending on your instance's configuration. Check error messages for missing or invalid fields.
  • Connection Issues: Network problems or incorrect base URLs will result in connection errors. Ensure your n8n instance can reach the Hudu API endpoint.
  • Error Messages: The node will return error messages from the Hudu API in the output. Review these messages for clues on how to resolve issues (e.g., "Invalid parent_company_id").

Links and References

Discussion