Actions3
- Agenda Actions
- Task Actions
- Document Actions
Overview
The Create Task operation for the Task resource in this custom n8n node allows users to create a new task within a specified project in Dolibarr, an open-source ERP and CRM platform. This node is useful for automating the creation of tasks as part of business workflows, such as when onboarding new projects, assigning work items, or integrating with other systems that trigger task creation.
Practical examples:
- Automatically creating a task in Dolibarr when a new deal is closed in your CRM.
- Scheduling follow-up tasks after a support ticket is resolved.
- Creating project tasks based on form submissions or external triggers.
Properties
| Name | Meaning |
|---|---|
| Task Reference | A unique reference for the task that must not already be used in the project. |
| Project ID | The ID of the project to which the task belongs. Can be selected from a list of existing projects. |
| Task Name | The name/title of the task. |
| Description | A description providing more details about the task. |
| Starting Date | The date and time when the task is scheduled to start. |
| Additional Fields | Optional extra fields, including: - Ending Date: The date and time when the task should end. |
Output
The node outputs a json object containing the details of the created task as returned by the Dolibarr API. The structure typically includes:
- Task identifiers (such as ID and reference)
- Associated project information
- Task name, description, starting and ending dates
- Any additional metadata provided by Dolibarr
Note: If the Dolibarr API returns binary data (uncommon for task creation), it will be included as a binary output, but for this operation, the output is expected to be JSON.
Dependencies
- External Service: Requires access to a Dolibarr instance with its API enabled.
- API Credentials: Needs a configured
dolibarrApicredential in n8n, including at least the base URL and authentication token. - n8n Configuration: Ensure the credentials are set up in n8n under the name
dolibarrApi.
Troubleshooting
Common Issues:
- Duplicate Task Reference: If the "Task Reference" is already used in the project, the API may reject the request. Use a unique reference.
- Missing Required Fields: Omitting required fields like "Project ID", "Task Name", or "Starting Date" will result in errors.
- Invalid Project ID: Providing a non-existent or inaccessible project ID will cause the operation to fail.
- Authentication Errors: Incorrect or missing API credentials will prevent the node from connecting to Dolibarr.
Error Messages & Resolutions:
"Task Reference already exists": Change the reference to something unique."Project not found": Verify the Project ID is correct and accessible."Authentication failed": Check your Dolibarr API credentials in n8n.