AvantGuard - Hudu icon

AvantGuard - Hudu

AvantGuard - Hudu

Actions109

Overview

This node allows you to update an existing company in the Hudu system by specifying its ID and providing new or updated information. It is useful in scenarios where you need to keep company records up-to-date, such as synchronizing data from another system, correcting errors, or enriching company profiles with additional details.

Practical examples:

  • Automatically updating a company's address when it changes in your CRM.
  • Adding or modifying contact information for a company.
  • Setting or changing the parent company relationship.

Properties

Name Type Meaning
Id Number ID of the company to update.
Additional Body Fields Object (Collection) Optional fields to update on the company record. Includes:
Name (String): The name of the company.
Nickname (String): The nickname of the company.
Company Type (String): The type 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.
Id Number (String): The company's ID number.
Parent Company Id (Number): The parent company's ID, if applicable.
Notes (String): Additional notes about the company.

Output

The node returns the updated company object as JSON. The structure typically includes all the fields of the company after the update, such as:

{
  "id": 123,
  "name": "Example Company",
  "nickname": "ExCo",
  "company_type": "Partner",
  "address_line_1": "123 Main St",
  "address_line_2": "",
  "city": "Metropolis",
  "state": "NY",
  "zip": "10001",
  "country_name": "USA",
  "phone_number": "+1-555-1234",
  "fax_number": "",
  "website": "https://example.com",
  "id_number": "ABC123",
  "parent_company_id": 0,
  "notes": "Updated via n8n"
}

Note: The actual output fields depend on the API response and which fields were updated.

Dependencies

  • External Service: Requires access to a Hudu instance with API enabled.
  • API Key/Credentials: Needs valid credentials (avantguardHuduApi) configured in n8n, including the base URL and authentication token.
  • n8n Configuration: Ensure the credentials are set up in n8n under the appropriate credential type.

Troubleshooting

  • Missing or Invalid ID: If the provided company ID does not exist, the node may return a "Not Found" or similar error. Double-check the ID value.
  • Authentication Errors: If credentials are missing or incorrect, you may see errors like "401 Unauthorized." Verify your API key and base URL.
  • Validation Errors: If required fields are missing or invalid (e.g., wrong data type), the API may return a "400 Bad Request" with details. Check that all fields conform to expected formats.
  • Connection Issues: Network problems or incorrect base URL can result in connection errors. Ensure the Hudu instance is reachable from your n8n environment.

Links and References

Discussion