Dolibarr icon

Dolibarr

Interact with Dolibarr API

Contact → Get Categories

AI-generated

Overview

This node operation retrieves categories associated with a specific contact in Dolibarr. It is useful for scenarios where you need to fetch and manage category data linked to contacts, such as organizing contacts by category or filtering contacts based on their categories. For example, a user might want to get all categories assigned to a particular contact to display or process them further in a workflow.

Use Case Examples

  1. Retrieve categories for a contact to display in a CRM dashboard.
  2. Fetch contact categories to filter contacts for targeted marketing campaigns.

Properties

Name Meaning
Contact ID The unique identifier of the contact whose categories are to be retrieved. This is a required numeric input with a minimum value of 1.
Sort Field The field by which the categories should be sorted in the response. Default is 's.rowid'.
Sort Order The order in which to sort the categories, either ascending (ASC) or descending (DESC). Default is ASC.
Limit The maximum number of category results to return. This is a required numeric input with a minimum value of 1.
Request Options Additional request options such as batching, SSL certificate validation, proxy settings, and request timeout to control how the API request is made.

Output

JSON

  • categories - Array of category objects associated with the specified contact, containing details about each category.

Dependencies

  • Dolibarr API with valid credentials

Troubleshooting

  • Ensure the Contact ID is valid and exists in Dolibarr to avoid 404 errors.
  • Check network connectivity and proxy settings if requests time out or fail.
  • If SSL certificate validation fails, consider enabling the option to ignore SSL issues, but be aware of security risks.

Links

Discussion