Actions17
- Announcement Actions
- Employee Actions
- Holiday Actions
- Leave Request Actions
- Planning Actions
Overview
This node integrates with the Pulse API to manage office-related actions, specifically here focusing on creating leave requests for employees. It allows users to submit detailed leave requests including type of leave, duration, and additional information such as related documents.
Common scenarios where this node is beneficial include automating employee leave management workflows, integrating leave requests into HR systems, or triggering downstream processes when an employee applies for leave.
For example, a company could use this node to automatically create leave requests in their HR system whenever an employee submits a form, ensuring accurate tracking and approval workflows without manual data entry.
Properties
| Name | Meaning |
|---|---|
| Employee ID * | The unique identifier of the employee submitting the leave request. |
| Leave Type * | The category of leave being requested. Options: Paid, Unpaid, Sick Leave. |
| Start Date * | The starting date and time of the leave period. |
| End Date * | The ending date and time of the leave period. |
| Details | Additional descriptive information about the leave request (e.g., reason or notes). |
| Start Half Day | Indicates if the first day of leave is only a half day (true/false). |
| End Half Day | Indicates if the last day of leave is only a half day (true/false). |
| Related Document URL | A URL linking to any supporting document related to the leave (e.g., medical certificate). |
Output
The node outputs a JSON object representing the created leave request as returned by the Pulse API. This typically includes confirmation details such as the leave request ID, status, timestamps, and any other metadata provided by the API.
No binary data output is involved in the "Create Leave Request" operation.
Dependencies
- Requires connection to the Pulse API via an API key credential configured in n8n.
- The node depends on the Pulse API helper utilities bundled within the node's codebase to handle API communication.
- Proper network access to the Pulse API endpoint is necessary.
Troubleshooting
Common Issues:
- Missing or invalid API credentials will cause authentication failures.
- Incorrect or missing required properties (e.g., Employee ID, dates) will result in validation errors from the API.
- Date inconsistencies such as end date before start date may cause errors.
- Network connectivity issues can prevent successful API calls.
Error Messages:
"Unknown operation: "createLeaveRequest" is not supported for resource "leaveRequest"!"indicates a misconfiguration of operation or resource parameters.- API error messages related to invalid input should be checked against the property values.
- Authentication errors suggest checking the API key credential setup.
Resolutions:
- Verify all required fields are correctly filled.
- Ensure the API key credential is valid and has appropriate permissions.
- Confirm date formats and logical consistency.
- Check network connectivity and API endpoint availability.
Links and References
- Pulse API Documentation (Replace with actual URL)
- n8n Documentation on Creating Custom Nodes
- General best practices for Handling Dates and Times in APIs