CustomFieldItems
Create, Update and Query the Custom Field Items in TSheets.
Table Specific Information
Select
Query the CustomFieldItems 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'
- CustomFieldId supports the '=,IN'
- Name supports the '=,IN'
- Active supports the '='
- LastModified supports the '<,<=,>,>='
- SupplementalData supports the '='
For example, the following queries are processed server side:
SELECT * FROM CustomFieldItems WHERE CustomFieldId=1140610 SELECT * FROM CustomFieldItems WHERE CustomFieldId=1140610 AND Id = 11531340
Insert
Insert can be executed by specifying CustomFieldId, Name and ShortCode column. The columns that are not required can be inserted optionally. Following is an example of how to insert into this table
INSERT INTO CustomFieldItems (CustomFieldId, Name, ShortCode) VALUES (1140610, 'testField', 'cf')
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 CustomFieldItems SET Name = 'yogesh_customfield', ShortCode='ycf' WHERE Id = '15011650'
Columns
Name | Type | ReadOnly | Description |
Id [KEY] | Integer | True |
Id of the Custom Field Item. |
CustomFieldId | Integer | True |
Id of the Custom Field that Item belongs to. |
Name | String | False |
Name of the customfield. |
Active | Boolean | True |
Boolean value. If true, the custom field item is active and if false, the custom field item is archive. |
ShortCode | String | False |
This is a shortened code or alias that is associated with the customfield item. It may only consist of letters and numbers. |
LastModified | Datetime | True |
Date/time when this custom field item was last modified. |
RequiredCustomFields | String | True |
Ids of Custom fields that should be displayed when this custom field item is selected on a timecard. |
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. |