TimeOffRequests
Create, Update and Query the Time off Requests in QuickBooks Time.
Table Specific Information
Select
The server uses the QuickBooks Time API to process WHERE clause conditions built with the following columns and operators. The rest of the filter is executed client-side within the server.- Id supports the =, IN operators.
- UserId supports the =, IN operators.
- SupplementalData supports the = operator.
For example, the following queries are processed server-side:
SELECT * FROM TimeOffRequests SELECT * FROM TimeOffRequests WHERE Id = 11531340
Insert
When executing INSERT queries, specify the TimeOffRequestNotes, and TimeOffRequestEntries columns. The columns that are not required can be inserted optionally. The following is an example of how to insert into this table:
INSERT INTO TimeOffRequests (TimeOffRequestNotes, TimeOffRequestEntries) VALUES ('[{"note":"Taking a four day weekend to go on vacation."}]', '[{"date":"2024-05-29","start_time":"2024-01-17T00:00:00-06:00","end_time":"2024-04-17T00:00:00-06:00","entry_method":"regular","duration":28800,"jobcode_id":10984254}]')
Update
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE TimeOffRequests SET TimeOffRequestNotes = '[{"note":"Taking a four day weekend to go on vacation."}]' WHERE Id = '15011650'
Columns
| Name | Type | ReadOnly | Description |
| Id [KEY] | Integer | True |
Id of the time off request. |
| UserId | Integer | False |
User id for the user that this time off request belongs to. |
| TimeOffRequestNotes | String | False |
An array of Time Off Request Note ids associated with this time off request. |
| TimeOffRequestEntries | String | False |
An array of Time Off Request Entry ids associated with this time off request. |
| Status | String | False |
One of 'pending', 'approved', 'denied' or 'canceled'. |
| Active | Boolean | False |
If true, this time off request is active. If false, this time off request is archived. |
| Created | Datetime | True |
Date/time when this time off request entry was created. |
| LastModified | Datetime | True |
Date/time when this time off request entry was last modified. |
Pseudo-Columns
Pseudo column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
| Name | Type | Description |
| SupplementalData | Boolean |
Default value is 'yes'. Indicates whether supplemental data should be specified. |