TimeOffRequestEntries
Create, Update and Query the Time off Request Entries in TSheets.
Table Specific Information
Select
Query the TimeOffRequestEntries table. The 本製品 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 本製品.
- Id supports the '=,IN'
- TimeOffRequestId supports the '=,IN'
- Status supports the '=,IN'
- ApproverUserId supports the '=,IN'
- UserId supports the '=,IN'
- JobcodeId supports the '=,IN'
- Date supports the '='
- StartTime supports the '='
- EndTime supports the '='
- SupplementalData supports the '='
For example, the following queries are processed server side:
SELECT * FROM TimeOffRequestEntries SELECT * FROM TimeOffRequestEntries WHERE Id = 11531340
Insert
Insert can be executed by specifying TimeOffRequestId, EntryMethod, Duration, JobcodeId and Date column. The columns that are not required can be inserted optionally. Following is an example of how to insert into this table
INSERT INTO TimeOffRequestEntries (TimeOffRequestId, EntryMethod, Duration, JobcodeId, Date) VALUES (12345, 'manual', 3600, 10984254, '2024-05-29')
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 TimeOffRequestEntries SET Duration = 500 WHERE Id = '15011650'
Columns
Name | Type | ReadOnly | Description |
Id [KEY] | Integer | True |
Id of the time of request entry. |
TimeOffRequestId | Integer | True |
Id of the Time Off Request that this entry belongs to. |
Status | String | False |
One of 'pending', 'approved', 'denied', or 'canceled'. |
ApproverUserId | Integer | True |
User Id of the user that approved or denied the time off request entry. |
Date | Date | False |
The date the time off request entry is for (YYYY-MM-DD format). |
EntryMethod | String | False |
Either 'manual' or 'regular'. Manual time off request entries have a date and a duration (in seconds). Regular time off request entries have a start/end time (duration is calculated by TSheets) for determining availability in Schedule. Unique properties for each entry method type are below. |
Duration | Integer | False |
The total number of seconds recorded for this time off request entry. |
StartTime | Datetime | False |
Start time. |
EndTime | Datetime | False |
End time. |
TzString | String | True |
The timezone of the entry in string format. |
JobcodeId | Integer | False |
Jobcode Id for the jobcode that this time off request entry is recorded against. |
UserId | Integer | True |
User id for the user that this time off request entry belongs to. |
ApprovedTimesheetId | Integer | True |
Id of the timesheet associated with this time off request entry when it is approved. |
Active | Boolean | True |
If true, this time off request entry is active. If false, this time off request entry 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
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
Name | Type | Description |
SupplementalData | Boolean |
Default value is 'yes'. Indicates whether supplemental data should be specified. |