List time off requests
Lists Clockify time off requests in a period, by status and person.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Clockify connection the step signs in with. |
| Workspace id override | Leave empty to use the workspace on the connection. Pick another workspace the same key can reach, or type its id — the List workspaces node gives you the ids. The id pickers on this node list from it. |
| From | text |
| To | text |
| Statuses | Leave all three unticked for every status. |
| People | Pick from this node's workspace, or type Clockify user ids. |
| User groups | Picked from the list Clockify offers. |
| Requests per call | 1 to 200. Clockify's own default is 50. |
| Fetch every page | Walks Clockify's pages, and refuses past 5,000 requests rather than answering a short list. |
| Cursor | Paste a previous run's Next cursor to read the page after it. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `clockify`) |
workspaceId | texta value from the vendor's own list |
start | text |
end | text |
statuses | list of "PENDING" or "APPROVED" or "REJECTED", by default [] |
userIds | texta value from the vendor's own list |
userGroupIds | texta value from the vendor's own list |
pageSize | number, by default 50 |
returnAll | true/false, by default false |
cursor | text |
Output
| Field | Type |
|---|---|
requestsTime off requests | array |
requestCountRequests in this answer | number |
hasMoreMore requests are waiting behind this page | boolean |
nextPageThe page to ask for next, or 0 | number |
nextCursorCursor for the next page | string |
Sample output, and the expression for each field
- hasMorefalse
- nextPage0
- requestCount0
- requests[]
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"cursor": "",
"end": "",
"pageSize": 50,
"returnAll": false,
"start": "",
"statuses": [],
"userGroupIds": "",
"userIds": "",
"workspaceId": ""
},
"label": "List time off requests",
"type": "clockify.listTimeOffRequests",
"version": 2
}Older versions
A flow that already has this version keeps running it. A new step always gets the newest.
Version 1
| Setting | What it is |
|---|---|
| ConnectionRequired | The Clockify connection the step signs in with. |
| Workspace id override | Leave empty to use the workspace on the connection. Pick another workspace the same key can reach, or type its id — the List workspaces node gives you the ids. The id pickers on this node list from it. |
| From | text |
| To | text |
| Statuses | Leave all three unticked for every status. |
| People | Pick from this node's workspace, or type Clockify user ids. |
| User groups | Picked from the list Clockify offers. |
| Requests per call | 1 to 200. Clockify's own default is 50. |
| Fetch every page | Walks Clockify's pages, and refuses past 5,000 requests rather than answering a short list. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `clockify`) |
workspaceId | texta value from the vendor's own list |
start | text |
end | text |
statuses | list of "PENDING" or "APPROVED" or "REJECTED", by default [] |
userIds | texta value from the vendor's own list |
userGroupIds | texta value from the vendor's own list |
pageSize | number, by default 50 |
returnAll | true/false, by default false |