TimeOffRequests
Create, Update and Query the Time off Requests in TSheets.
Table Specific Information
Select
Query the TimeOffRequests table. The add-in will use 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 add-in.
- Id supports the '=,IN'
- UserId supports the '=,IN'
- SupplementalData supports the '='
For example, the following queries are processed server side:
SELECT * FROM TimeOffRequests SELECT * FROM TimeOffRequests WHERE Id = 11531340
Insert
Insert can be executed by specifying TimeOffRequestNotes, and TimeOffRequestEntries column. The columns that are not required can be inserted optionally. 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
Update can be executed by specifying the Id in the WHERE Clause. The columns that are not read-only can be Updated.
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 | True |
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. |