FlowmageDocs

Get time off balance

BetaReads dataVersion 2

Shows a person's time off balances per Clockify policy.

Settings

SettingWhat it is
ConnectionRequiredThe Clockify connection the step signs in with.
Workspace id overrideLeave 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.
User idEmpty reads the balances of the person the API key belongs to — the List users node gives you an id.
Sort by"" or "USER" or "POLICY" or "USED" or "BALANCE" or "TOTAL"
Direction"ASCENDING" or "DESCENDING"
Rows per call1 to 200 — that is Clockify's own maximum here.
Fetch every pageWalks Clockify's pages, and refuses past 5,000 rows rather than answering a short list.
CursorPaste a previous run's Next cursor to read the page after it.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `clockify`)
workspaceIdtexta value from the vendor's own list
userIdtext
sort"" or "USER" or "POLICY" or "USED" or "BALANCE" or "TOTAL"
sortOrder"ASCENDING" or "DESCENDING", by default "ASCENDING"
pageSizenumber, by default 50
returnAlltrue/false, by default false
cursortext

Output

FieldType
balancesarray
balanceCountBalances in this answernumber
hasMoreMore balances are waiting behind this pageboolean
nextPageThe page to ask for next, or 0number
nextCursorCursor for the next pagestring
Sample output, and the expression for each field
  • balanceCount0
  • balances[]
  • hasMorefalse
  • nextPage0

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": "",
    "pageSize": 50,
    "returnAll": false,
    "sort": "",
    "sortOrder": "ASCENDING",
    "userId": "",
    "workspaceId": ""
  },
  "label": "Get time off balance",
  "type": "clockify.getTimeOffBalance",
  "version": 2
}

Older versions

A flow that already has this version keeps running it. A new step always gets the newest.

Version 1
SettingWhat it is
ConnectionRequiredThe Clockify connection the step signs in with.
Workspace id overrideLeave 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.
User idEmpty reads the balances of the person the API key belongs to — the List users node gives you an id.
Sort by"" or "USER" or "POLICY" or "USED" or "BALANCE" or "TOTAL"
Direction"ASCENDING" or "DESCENDING"
Rows per call1 to 200 — that is Clockify's own maximum here.
Fetch every pageWalks Clockify's pages, and refuses past 5,000 rows rather than answering a short list.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `clockify`)
workspaceIdtexta value from the vendor's own list
userIdtext
sort"" or "USER" or "POLICY" or "USED" or "BALANCE" or "TOTAL"
sortOrder"ASCENDING" or "DESCENDING", by default "ASCENDING"
pageSizenumber, by default 50
returnAlltrue/false, by default false