CData Cloud は、クラウドホスト型のソリューションで、複数の標準サービスやプロトコルにまたがるQuickBooks Time へのアクセスを実現します。SQL Server データベースに接続できるアプリケーションであれば、CData Cloud を介してQuickBooks Time に接続できます。
CData Cloud により、他のOData エンドポイントや標準SQL Server と同じように、QuickBooks Time への接続を標準化し、構成することができます。
このページでは、CData Cloud でのQuickBooks Time への接続の確立 のガイド、利用可能なリソースに関する情報、および使用可能な接続プロパティのリファレンスについて説明します。
接続の確立 は、CData Cloud にデータベースを作成するためのQuickBooks Time への認証方法と必要な接続プロパティの設定方法について示します。
利用可能な標準サービスを経由してQuickBooks Time からデータにアクセスする方法と、CData Cloud の管理については、CData Cloud ドキュメント で詳しく説明します。
Database タブで対応するアイコンを選択して、QuickBooks Time に接続します。必須プロパティはSettings にリストされています。Advanced タブには、通常は必要ない接続プロパティが表示されます。
QuickBooks Time は、ユーザー認証のためのOAuth 標準をサポートしています。この認証を有効にするには、すべてのOAuth フローでカスタムOAuth アプリケーションを作成し、AuthScheme をOAuth に設定する必要があります。
以下のサブセクションでは、3つの一般的な認証フローでのQuickBooks Time への認証について詳しく説明します。
カスタムOAuth アプリケーションの作成については、カスタムOAuth アプリケーションの作成 を参照してください。
QuickBooks Time で利用可能な接続文字列プロパティの全リストは、Connection を参照してください。
OAuth アクセストークンの自動リフレッシュ:
Cloud がOAuth アクセストークンを自動的にリフレッシュするようにするには:
OAuth アクセストークンの手動リフレッシュ:
OAuth アクセストークンを手動でリフレッシュするために必要な唯一の値は、OAuth リフレッシュトークンです。
OAuth リフレッシュトークンを保存し、OAuth アクセストークンの有効期限が切れた後に手動でリフレッシュできるようにします。
Creating a custom OAuth application enables you to generate OAuth credentials that are passed during user authentication.
You can access the custom OAuth application (referred to as the API Add-On) from the left navigation pane's Feature Add-ons section.
デフォルトでは、Cloud はサーバーとのTLS のネゴシエーションを試みます。サーバー証明書は、デフォルトのシステム信頼済み証明書ストアで検証されます。SSLServerCert 接続プロパティを使用して、証明書の検証方法をオーバーライドできます。
別の証明書を指定するには、SSLServerCert 接続プロパティを参照してください。
HTTP プロキシへの認証には、以下のように設定します。
次のプロパティを設定します。
このセクションでは、利用可能なAPI オブジェクトを示し、QuickBooks Time API へのSQL の実行について詳しく説明します。
ビュー では、利用可能なビューを説明します。ビューは、Timesheets、Users、Files などを静的にモデル化するように定義されています。
Cloud はQuickBooks Time のデータを、標準のSQL ステートメントを使用してクエリできるリレーショナルデータベースのテーブルのリストとしてモデル化します。
| Name | Description |
| CustomFieldItemFilters | Create, Update and Query the Custom Field Item Filters in QuickBooks Time. |
| CustomFieldItems | Create, Update and Query the Custom Field Items in QuickBooks Time. |
| CustomFields | Create, Update and Query the Custom Fields in QuickBooks Time. |
| EstimateItems | Create, Update and Query the Estimate Item in QuickBooks Time. |
| Estimates | Create, Update and Query the Estimates in QuickBooks Time. |
| Files | This table contains a list of file objects. |
| GeoLocations | Retrieves a list of all geofence configs. |
| Groups | This table contains a list of all groups associated with your company. |
| JobcodeAssignments | Returns a list of all jobcode assignments associated with users. |
| JobCodes | This table contains a list of jobcodes associated with your company |
| Locations | Retrieves a list of all locations associated with your company. |
| Notifications | Retrieves a list of notifications associated with your company. |
| ProjectActivityReplies | Create, Update and Query the Project Activity Replies in QuickBooks Time. |
| ProjectNotes | Create, Update and Query the Project Notes in QuickBooks Time. |
| Projects | Create, Update and Query the Projects in QuickBooks Time. |
| Reminders | Retrieves a list of reminders associated with your employees or company. |
| ScheduleEvents | Retrieves a list of schedule events associated with your employees or company. |
| TimeOffRequestEntries | Create, Update and Query the Time off Request Entries in QuickBooks Time. |
| TimeOffRequests | Create, Update and Query the Time off Requests in QuickBooks Time. |
| Timesheets | This table contains a list of file objects. |
| Users | Retrieves a list of all users associated with your company. |
Create, Update and Query the Custom Field Item Filters in QuickBooks Time.
For example, the following queries are processed server-side:
SELECT * FROM CustomFieldItemFilters SELECT * FROM CustomFieldItemFilters WHERE Id = 11531340
When executing INSERT queries, specify the CustomFieldId, CustomFieldItemId, Active, AppliesTo, and AppliesToId 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 CustomFieldItemFilters (CustomFieldId, Name, ShortCode) VALUES (1140610, 15027812, true, 'jobcodes', 73209298)
When executing Updates, specify the Id in the WHERE clause.
For example:
UPDATE CustomFieldItemFilters SET Active = true WHERE Id = '15011650'
| Name | Type | ReadOnly | Description |
| Id [KEY] | Integer | True |
Id of the CustomField Item filter. |
| CustomFieldId | Integer | False |
Id of the CustomField that this filter belongs to. |
| CustomFieldItemId | Integer | False |
Id of the CustomField item that this filter belongs to. |
| Active | Boolean | False |
Boolean value. If true, the custom field item filter is active and if false, the custom field item filter is archive. |
| AppliesTo | String | False |
Entity type this filter relates to. Together with applies_to_id, determines what this filtered item relates to. The possible values are: 'jobcodes', 'users', or 'groups'. For example: If this value was 'jobcodes' then the applies_to_id value would indicate which jobcode this filter referred to. If requested, the supplemental data will also contain this jobcode. |
| AppliesToId | Integer | False |
The jobcode, user, or group that this filter relates to. Together with applies_to, determines what this filtered item relates to. For example: If the value of the applies_to field was 'jobcodes' this value would indicate which jobcode this filter referred to. If requested, the supplemental data will also contain this jobcode. |
| LastModified | Datetime | True |
Date/time when this custom field item filter was last modified. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| JobCodeId | Integer |
Limits the returned filters to only those for the specified jobcode_id. |
| UserId | Integer |
Limits the returned filters to only those for the specified user_id. You can also include items for this user's group automatically if you include the 'include_user_group' parameter. |
| GroupId | Integer |
Limits the returned filters to only those for the specified group_id. |
| IncludeUserGroup | Boolean |
If a user_id is supplied, will return filters for that user's group as well. |
| IncludeJobCodeFilters | Boolean |
If a user_id is supplied, will additionally return jobcode filters. |
| SupplementalData | Boolean |
Default value is 'yes'. Indicates whether supplemental data should be specified. |
Create, Update and Query the Custom Field Items in QuickBooks Time.
The Cloud 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 Cloud.
For example, the following queries are processed server-side:
SELECT * FROM CustomFieldItems WHERE CustomFieldId = 1140610 SELECT * FROM CustomFieldItems WHERE CustomFieldId = 1140610 AND Id = 11531340
When executing INSERT queries, specify the CustomFieldId, Name and ShortCode 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 CustomFieldItems (CustomFieldId, Name, ShortCode) VALUES (1140610, 'testField', 'cf')
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE CustomFieldItems SET Name = 'yogesh_customfield', ShortCode = 'ycf' WHERE Id = '15011650'
| 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 customfielditem. |
| Active | Boolean | False |
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. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| SupplementalData | Boolean |
Default value is 'yes'. Indicates whether supplemental data should be specified. |
Create, Update and Query the Custom Fields in QuickBooks Time.
For example, the following queries are processed server-side:
SELECT * FROM CustomFields SELECT * FROM CustomFields WHERE Id = 24145
When executing INSERT queries, specify the Name, Required, Active, AppliesTo, Type, ShowToAll and ShortCode 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 CustomFields (Name, Required, Active, AppliesTo, Type, ShowToAll, ShortCode) VALUES ('Test', true, true, 'timesheet', 'managed-list', true, 'cstm')
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE CustomFields SET Name = 'updated name' WHERE Id = '1140410'
| Name | Type | ReadOnly | Description |
| Id [KEY] | Integer | True |
Id of the Custom Field. |
| Name | String | False |
Name of the customfield. |
| Active | Boolean | False |
Boolean value. If true, the custom field is active and if false, the custom field is archive. |
| Required | Boolean | False |
Indicates whether a value for the custom field is required on a timesheet. |
| AppliesTo | String | False |
Indicates what type of object this custom field object applies to. Values are 'timesheet' or 'user' or 'jobode'. |
| Type | String | False |
'managed-list' or 'free-form'. If 'free-form', then it should be displayed in a UI as a text box, where users can enter values for this customfield and they'll get added automatically to the customfield if they don't already exist. If 'managed-list', then it should be displayed as a select-box and users can only choose an existing value. |
| ShortCode | String | False |
This is a shortened code or alias that is associated with the customfield. It may only consist of letters and numbers. |
| RegexFilter | String | True |
Regular expression that will be applied to any new items as they're added to the customfield. If they do not match the regex_filter, they may not be added. |
| Created | Datetime | True |
Date/time when this custom field was created. |
| LastModified | Datetime | True |
Date/time when this custom field was last modified. |
| UIPreference | String | True |
'drop_down' or 'text_box_with_suggest'. Indicates the suggested user interface depending on the specified type. |
| ShowToAll | Boolean | False |
Declares whether this customfield should be shown on timesheets regardless of the jobcode chosen. If false, it will only appear when the chosen jobcode for a timesheet has been associated with this field. This field can only be set to false if the custom field is of type 'timesheet'. |
| RequiredCustomFields | String | True |
Ids of Custom fields that should be displayed when this custom field is visible on a timecard. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| SupplementalData | Boolean |
Default value is 'yes'. Indicates whether supplemental data should be specified. |
Create, Update and Query the Estimate Item in QuickBooks Time.
For example, the following queries are processed server-side:
SELECT * FROM EstimateItems SELECT * FROM EstimateItems WHERE Id = '11531340'
When executing INSERT queries, specify the EstimateId, Type and TypeId 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 EstimateItems (EstimateId, Type, TypeId) VALUES (47482, 'tag_clouds', 15011650)
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE EstimateItems SET EstimatedSeconds = 2 WHERE Id = '11531340'
| Name | Type | ReadOnly | Description |
| Id [KEY] | Integer | True |
Id of the Estimate item. |
| EstimateId | Integer | False |
The estimate this estimate item belongs to. |
| EstimatedSeconds | Integer | False |
The estimated number of seconds. |
| Active | Boolean | False |
Boolean value. If false, this estimate is considered deleted. |
| Created | Datetime | True |
Date/time when this estimate was created. |
| LastModified | Datetime | True |
Date/time when this estimate was last modified. |
| Type | String | False |
The estimate item type. One of 'none' or 'tag_clouds'. NOTE: A type of 'tag_clouds' should be 'customfields' instead. This will be corrected soon. |
| TypeId | Integer | False |
The customfield item id if type is 'tag_clouds'. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| SupplementalData | Boolean |
Default value is 'yes'. Indicates whether supplemental data should be specified. |
Create, Update and Query the Estimates in QuickBooks Time.
For example, the following queries are processed server-side:
SELECT * FROM Estimates SELECT * FROM Estimates WHERE Id = '11531340'
When executing INSERT queries, specify the ProjectId and EstimatedBy 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 Estimates (ProjectId, EstimatedBy) VALUES (2064876, 'none')
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE Estimates SET Active = true WHERE Id = '11531340'
| Name | Type | ReadOnly | Description |
| Id [KEY] | Integer | True |
Id of the Estimate. |
| ProjectId | Integer | False |
Id of the associated Project. |
| EstimatedBy | String | False |
The estimate type. Values are one of 'none' or 'customfields'. |
| EstimateById | Integer | False |
The customfield id if estimate_by value is 'customfields'. |
| Active | Boolean | False |
Boolean value. If false, this estimate is considered deleted. |
| Created | Datetime | True |
Date/time when this estimate was created. |
| LastModified | Datetime | True |
Date/time when this estimate was last modified. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| SupplementalData | Boolean |
Default value is 'yes'. Indicates whether supplemental data should be specified. |
This table contains a list of file objects.
For example, the following queries are processed server-side:
SELECT * FROM Files WHERE Name IN ('IMG_20181004_214839.png', 'healthy.jpg')
SELECT * FROM Files WHERE LastModified = '2019-01-01 15:30' AND ActiveStatus = 'both'
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE Files SET FileDescription = 'test' WHERE Id = '3688644'
When executing DELETE queries, specify the Id in the WHERE clause.
For example:
DELETE FROM Files WHERE Id = '3688644'
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
Id of this file. |
| Name | String | False |
Name of this file. |
| UploadByUserId | Int | True |
Id of the user that uploaded this file. |
| Active | Boolean | True |
If false, this file is considered deleted. |
| Size | Int | True |
Size of the file in bytes. |
| Created | Datetime | True |
Date/time when this customfield was created |
| LastModified | Datetime | True |
Date/time when this customfield was last modified. |
| FileDescription | String | False |
Description of this file. |
| ImageRotation | Int | False |
Original image orientation in degrees. Accepted values are: 0 (top), 90 (right), 180 (bottom), 270 (left). |
| LinkedObjects | String | True |
This is a key/value map of all the objects linked to this file and the corresponding object ids. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| ActiveStatus | String |
Filter column for whether to fetch only active records, only archived records, or both. By default, only active records are fetched. Possible values are: yes, no, both |
Retrieves a list of all geofence configs.
For example, the following query is processed server-side:
SELECT * FROM GeoLocations WHERE GroupId IN ('29474', '29474') AND LastModified <= '2020-01-01 00:00'
When executing INSERT queries, specify the Created, UserId, Accuracy, Altitude, Latitude and Longitude 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 Geolocations (Created, UserId, Accuracy, Altitude, Latitude, Longitude) VALUES ('2018-08-19T11:30:09-06:00', '1242515', '20.375', '0', '43.68662580', '-116.35166460')
| Name | Type | ReadOnly | Description |
| Id [KEY] | Int | True |
Id of geolocation. |
| UserId | Int | False |
User id for the user that this geolocation belongs to. |
| Accuracy | Double | False |
Indicates the radius of accuracy around the geolocation in meters. |
| Altitude | Double | False |
Indicates the altitude of the geolocation in meters. |
| Latitude | Double | False |
Indicates the latitude of the geolocation in degrees. |
| Longitude | Double | False |
Indicates the longitude of the geolocation in degrees. |
| Speed | Double | False |
Indicates the speed of travel (meters per second) when the geolocation was recorded. |
| Source | String | False |
Indicates how the GPS point was obtained. One of 'gps', 'wifi', or 'cell'. |
| DeviceIdentifier | String | False |
Unique identifier (for the given client) for the device associated with this geolocation. |
| Created | Datetime | False |
Date/time when this geolocation was created. |
| Heading | Int | False |
Indicates the heading of the geolocation in degrees. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| LastModified | Datetime |
Date/time when this geofence config was last modified. |
| GroupId | String |
A comma-separated list of group ids. Only geolocations linked to users from these groups will be returned. |
This table contains a list of all groups associated with your company.
For example, the following queries are processed server-side:
SELECT * FROM Groups WHERE Name IN ('Group 1', 'Group 2') AND LastModified > '2019-01-01 15:30'
SELECT * FROM Groups WHERE ActiveStatus = 'both'
When executing INSERT queries, specify the Name column. The columns that are not required can be inserted optionally. The following is an example of how to insert into this table:
INSERT INTO Groups (Name) VALUES ('Group 1')
INSERT INTO Groups (Name, ManagerIds) VALUES ('Group 1', '300, 316')
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE Groups SET Name = 'Group 1a', Active = 'false' WHERE Id = '10055'
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
ID of this group. |
| Active | Boolean | False |
If false, this group is considered archived. |
| Name | String | False |
Name associated with this group |
| LastModified | Datetime | True |
Date/time when this group was last modified |
| Created | Datetime | True |
Date/time when this group was created |
| ManagerIds | String | False |
List of id's for the users allowed to manage this group. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| ActiveStatus | String |
Filter column for whether to fetch only active records, only archived records, or both. By default, only active records are fetched. Possible values are: yes, no, both |
Returns a list of all jobcode assignments associated with users.
For example, the following queries are processed server-side:
SELECT * FROM JobcodeAssignments WHERE UserId IN (1242515, 1242515) SELECT * FROM JobcodeAssignments WHERE JobCodeParentId = 17285791
When executing INSERT queries, specify the UserId and JobcodeId 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 JobcodeAssignments (UserId, JobcodeId) VALUES ('1234', '39')
When executing DELETE queries, specify the Id in the WHERE clause.
For example:
DELETE FROM JobcodeAssignments WHERE Id = '41321421'
DELETE FROM JobcodeAssignments WHERE Id IN ('41321421', '41321435')
| Name | Type | ReadOnly | Description |
| Id [KEY] | Int | True |
Id of jobcode assignment. |
| UserId | Int | False |
Id of the user that this assignment pertains to. |
| JobcodeId | Int | False |
Id of the jobcode that this assignment pertains to. |
| Active | Boolean | False |
Whether or not this assignment is 'active'. If false, then the assignment has been deleted. true means it is in force. |
| LastModified | Datetime | True |
Date/time when this jobcode assignment was last modified. |
| Created | Datetime | True |
Date/time when this jobcode assignment was created |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| JobCodeType | String |
Refers to the jobcode type - 'regular', 'pto', 'unpaid_break', 'paid_break', or 'all'. Defaults to 'regular'. |
| JobCodeParentId | Integer |
When omitted, all jobcode assignments are returned regardless of jobcode parent. If specified, only assignments for jobcodes with the given jobcode parent_id are returned. To get a list of only top-level jobcode assignments, pass in a jobcode_parent_id of 0. |
| ActiveStatus | String |
Filter column for whether to fetch only active records, only archived records, or both. By default, only active records are fetched. Possible values are: yes, no, both |
This table contains a list of jobcodes associated with your company
For example, the following queries are processed server-side:
SELECT * FROM Jobcodes WHERE Id IN (1242515, 1242515) SELECT * FROM Jobcodes WHERE Type = 'unpaid_break'
When executing INSERT queries, specify the Name and Type 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 Jobcodes (Name, Type) VALUES ('Group 1', 'pto')
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE Jobcodes SET Name = 'Group 2', Type = 'pto' WHERE Id = '10055'
| Name | Type | ReadOnly | Description |
| Id [KEY] | Int | True |
Id of jobcode. |
| ParentId | Int | False |
Id of this jobcode's parent. 0 if it's top-level. |
| Name | String | False |
Name of the jobcode. Cannot be more than 64 characters and must be unique for all jobcodes that share the same parent_id. |
| ShortCode | String | False |
This is a shortened code or alias that is associated with the jobcode. It may only consist of letters and numbers. Must be unique for all jobcodes that share the same parent id. |
| Type | String | False |
Indicates jobcode type. One of 'regular', 'pto', 'paid_break', or 'unpaid_break' |
| Billable | Boolean | False |
Indicates whether this jobcode is billable or not. |
| BillableRate | Double | False |
Dollar amount associated with this jobcode for billing purposes. Only effective if billable is true. |
| HasChildren | Boolean | True |
If true, there are jobcodes that exist underneath this one, so this jobcode should be treated as a container or folder with children jobcodes underneath it. |
| AssignedToAll | Boolean | False |
Indicates whether this jobcode is assigned to all employees or not. |
| RequiredCustomFields | String | True |
Ids of customfields that should be displayed when this jobcode is selected on a timecard. |
| Active | Boolean | False |
If true, this jobcode is active. If false, this jobcode is archived. To archive a jobcode, set this field to false. When a jobcode is archived, any children underneath the jobcode are archived as well. Note that when you archive a jobcode, any jobcode assignments or customfield dependencies are removed. To restore a jobcode, set this field to true. When a jobcode is restored, any parents of that jobcode are also restored. |
| LastModified | Datetime | True |
Date/time when this jobcode was last modified. |
| Created | Datetime | True |
Date/time when this jobcode was created |
| FilteredCustomFieldItems | String | True |
Displays which customfielditems should be displayed when this jobcode is chosen for a timesheet. Each property of the object is a customfield id with its value being an array of customfielditem id. If none, an empty string is returned. |
| ConnectWithQuickBooks | Boolean | False |
If true and the beta feature for two-way sync is enabled, then changes made to the jobcode are immediately shared with QBO. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| ActiveStatus | String |
Filter column for whether to fetch only active records, only archived records, or both. By default, only active records are fetched. Possible values are: yes, no, both |
Retrieves a list of all locations associated with your company.
For example, the following queries are processed server-side:
SELECT * FROM Locations WHERE GeoCodingStatus IN ('in_progress', 'retry')
SELECT * FROM Locations WHERE ByJobcodeAssignment = true
When executing INSERT queries, specify the any columns. The following is an example of how to insert into this table:
INSERT INTO Locations (Address1, City, State, Country) VALUES ('CData office', 'Bangalore', 'KA', 'IN')
INSERT INTO Locations (Address1, City, State, Country, Zip) VALUES ('CData office', 'Bangalore', 'KA', 'IN', '560100')
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE Locations SET Address1 = 'Microsoft' WHERE Id = '10055'
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
Id of location. |
| Address1 | String | False |
The first line of the location's address. |
| Address2 | String | False |
The second line of the location's address. |
| City | String | False |
The city of the location's address. |
| State | String | False |
The state of the location's address. |
| Zip | String | False |
The postal code of the location's address. |
| Country | String | False |
The country of the location's address. |
| FormattedAddress | String | True |
Formatted address built from the objects addr1, addr2, city, state, and zip. If the location doesn't contain addr1, addr2, or city properties, the value will default what is set in the label property. |
| Active | Boolean | False |
Whether this location is active. If false, this location is archived. |
| Latitude | Double | False |
The latitude of the location (in signed degrees format). |
| Longitude | Double | False |
The longitude of the location (in signed degrees format). |
| PlaceIdHash | String | True |
The MD5 hash of the unique id for the location returned from the geocoding service. |
| Label | String | True |
The formated name for the location. If the location was found using the geocode service the formated address will be saved in this field, otherwise it will be what the user has named the location. |
| Notes | String | False |
Notes related to the location. |
| GeoCodingStatus | String | True |
The geocoding status of this address. Will be one of: 'none', 'in_progress', 'retry', 'error', or 'complete'. |
| Created | Datetime | True |
Date/time when this location was created |
| LastModified | Datetime | True |
Date/time when this customfield was last modified. |
| LinkedObjects | String | False |
A key/value map of all the objects linked to this location and the corresponding object ids. |
| GeofenceConfigId | Int | True |
Id of the geofence_config associated with this location. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| ByJobcodeAssignment | Boolean |
If specified, only locations mapped to a jobcode the user is assigned to will be returned. |
| ActiveStatus | String |
Filter column for whether to fetch only active records, only archived records, or both. By default, only active records are fetched. Possible values are: yes, no, both |
Retrieves a list of notifications associated with your company.
For example, the following queries are processed server-side:
SELECT * FROM Notifications WHERE Id IN (94140223, 94140225) AND UserId = 37 SELECT * FROM Notifications WHERE MessageTrackingId = 'baabeb0ab03d62ce' SELECT * FROM Notifications WHERE DeliveryTime = '2019-12-25 19:00'
When executing INSERT queries, specify the Message column. The columns that are not required can be inserted optionally. The following is an example of how to insert into this table:
INSERT INTO Notifications (Message) VALUES ('Please clock Out!')
INSERT INTO Notifications (Message, UserId) VALUES ('Please clock Out!', '56329')
When executing DELETE queries, specify the Id in the WHERE clause.
For example:
DELETE FROM Notifications WHERE Id = '41321421'
DELETE FROM Notifications WHERE Id IN ('41321421', '4132567')
| Name | Type | ReadOnly | Description |
| Id [KEY] | Integer | True |
Id of the notification. |
| UserId | Integer | False |
User id for the user that this notification will be sent to. |
| MessageTrackingId | String | True |
A GUID string used for additional tracking. |
| Message | String | False |
The message text of the notification. The maximum message length is 2000 characters. |
| Method | String | False |
The transport method of the notification. We support 'push', 'email', and 'dashboard'. |
| Precheck | String | False |
The precheck macro name. Supported macros are 'on_the_clock', 'off_the_clock', and 'none'. |
| Created | Datetime | True |
Date/time when this notification was created |
| DeliveryTime | Datetime | False |
Date/time when this notification will be delivered. |
Create, Update and Query the Project Activity Replies in QuickBooks Time.
For example, the following queries are processed server-side:
SELECT * FROM ProjectActivityReplies WHERE ProjectActivityId = 8348378 SELECT * FROM ProjectActivityReplies WHERE ProjectActivityId = 8348378 AND Id = 2062894
When executing INSERT queries, specify the ProjectActivityId and Note 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 ProjectActivityReplies (ProjectActivityId, Note) VALUES (8348382, 'Test')
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE ProjectActivityReplies SET Note = 'updated' WHERE Id = '2062894'
| Name | Type | ReadOnly | Description |
| Id [KEY] | Integer | True |
Id of the Project Activity Replies. |
| ProjectActivityId | Integer | False |
Id of the associated Project Activity. |
| UserId | Integer | True |
Id of the associated user. |
| Note | String | False |
Content of note. |
| Active | Boolean | False |
Boolean value. If false, this project activity reply is considered archive. |
| Created | Datetime | True |
Date/time when this project note was created. |
| LastModified | Datetime | True |
Date/time when this project note was last modified. |
| Mentions | String | True |
Mentions. |
| LinkedObjects | String | False |
A key/value map of all the objects linked to this project and the corresponding object ids. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| SupplementalData | Boolean |
Default value is 'yes'. Indicates whether supplemental data should be specified. |
Create, Update and Query the Project Notes in QuickBooks Time.
For example, the following queries are processed server-side:
SELECT * FROM ProjectNotes SELECT * FROM ProjectNotes WHERE ProjectId = 203282
When executing INSERT queries, specify the ProjectId and Note 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 ProjectNotes (ProjectId, Note) VALUES (203282, 'Test note')
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE ProjectNotes SET Note = 'updated value' WHERE Id = '1675236'
| Name | Type | ReadOnly | Description |
| Id [KEY] | Integer | True |
Id of the Project Note. |
| ProjectId | Integer | True |
Id of the associated Project. |
| UserId | Integer | True |
Id of the associated user. |
| Note | String | False |
Content of note. |
| Active | Boolean | False |
Boolean value. If false, this project note is considered archive. |
| Created | Datetime | True |
Date/time when this project note was created. |
| LastModified | Datetime | True |
Date/time when this project note was last modified. |
| Mentions | String | False |
Mentions. |
| Files | String | True |
List of ids for file attached to this note. |
| LinkedObjects | String | False |
A key/value map of all the objects linked to this project and the corresponding object ids. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| SupplementalData | Boolean |
Default value is 'yes'. Indicates whether supplemental data should be specified. |
Create, Update and Query the Projects in QuickBooks Time.
For example, the following queries are processed server-side:
SELECT * FROM Projects SELECT * FROM Projects WHERE Id = 2056676
When executing INSERT queries, specify the Name column. The columns that are not required can be inserted optionally. The following is an example of how to insert into this table:
INSERT INTO Projects (Name, Description) VALUES ('ProjectTest', 'This is a test project')
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE Projects SET Status = 'complete' WHERE Id = '2062894'
| Name | Type | ReadOnly | Description |
| Id [KEY] | Integer | True |
ID of this project. |
| JobCodeId | Integer | False |
The jobcode that represents the project for time tracking. |
| ParentJobCodeId | Integer | False |
Id of the project jobcode's parent. 0 if it's top-level. |
| Name | String | False |
Name of project. Limited to 64 characters. |
| Description | String | False |
Description text associated with project. Limited to 300 characters. |
| Status | String | False |
Status of project. 使用できる値は次のとおりです。not_started, in_progress, complete |
| StartDate | Datetime | False |
YYYY-MM-DD formatted date string. Must be before due date if one is defined. |
| DueDate | Datetime | False |
YYYY-MM-DD formatted date string. Must be after the start date if one is defined. |
| CompletedDate | Datetime | False |
YYYY-MM-DD formatted date string. Must be after the start date if one is defined. |
| Active | Boolean | False |
True or false. If false, the project is considered deleted. |
| LastModified | Datetime | True |
Date/time when this project was last modified, in ISO 8601 format. |
| Created | Datetime | True |
Date/time when this project was created, in ISO 8601 format. |
| LinkedObjects | String | False |
A key/value map of all the objects linked to this project and the corresponding object ids. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| ByJobCodeAssignment | Boolean |
If specified, only projects with a jobcode_id the user is assigned to will be returned. |
Retrieves a list of reminders associated with your employees or company.
For example, the following queries are processed server-side:
SELECT * FROM Reminders WHERE Id IN (72595, 72599) AND UserId = 37 SELECT * FROM Reminders WHERE ReminderType = 'clock-in'
When executing INSERT queries, specify the UserId, ReminderType, DueTime, DueDaysOfWeek, DistributionMethods, Active and Enabled 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 Reminders (UserId, ReminderType, DueTime, DueDaysOfWeek, DistributionMethods, Active, Enabled) VALUES ('37', 'clock-in', '08:10:00', 'Mon, Tue, Sat', 'Push', 'true', 'true')
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE Reminders SET DueTime = '08:10:00', DistributionMethods = 'Email' WHERE Id = '10055'
| Name | Type | ReadOnly | Description |
| Id [KEY] | Integer | True |
Id of the reminder. |
| UserId | Integer | True |
User id for the user that this reminder pertains to. 0 indicates that this is a company-wide reminder. |
| ReminderType | String | False |
The type of this reminder object. Supported reminder_types are 'clock-in' and 'clock-out'. |
| DueTime | String | False |
The 24-hour time that the reminder should be sent, expressed as 'hh:mm:ss'. |
| DueDaysOfWeek | String | False |
A comma-separated list of the days of the week when the reminder should be sent. The value can be any combination of 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri' and 'Sat'. |
| DistributionMethods | String | False |
The message text of the notification. The maximum message length is 2000 characters. |
| Active | Boolean | False |
If true, this reminder is active and will be evaluated at the 'due_time' and 'due_days_of_week'. If false, this reminder is inactive and will not be evaluated. If active=false for user-specific reminders, then the company-wide reminder of the same reminder type will apply. |
| Enabled | Boolean | False |
If true, the reminder is enabled and will be sent at the 'due_time' and 'due_days_of_week'. If false, the reminder is disabled and will not be sent. A user with an active (active = true), but disabled (enabled = false) reminder will not receive that reminder type regardless of how company-wide reminders are configured. |
| Created | Datetime | True |
Date/time when this reminder was created |
| LastModified | Datetime | True |
Date/time when this reminder was last modified, |
Retrieves a list of schedule events associated with your employees or company.
For example, the following queries are processed server-side:
SELECT * FROM ScheduleEvents WHERE TeamEvents = 'instance' SELECT * FROM ScheduleEvents WHERE LastModified > '2019-01-01 18:30' AND Id IN (1, 2, 3) SELECT * FROM ScheduleEvents WHERE End <= '2019-12-31 18:00'
When executing INSERT queries, specify the ScheduleCalendarId, Start, End and AllDay 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 ScheduleEvents (ScheduleCalendarId, Start, End, AllDay) VALUES ('37', '2018-12-05T16:00:00+00:00', '2020-12-05T16:00:00+00:00', 'true')
INSERT INTO ScheduleEvents (ScheduleCalendarId, Start, End, AllDay, AssignedUserIds) VALUES ('37', '2018-12-05T16:00:00+00:00', '2020-12-05T16:00:00+00:00', 'true', '11, 1365, 729')
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE ScheduleEvents SET Title = 'New Title' WHERE Id = '14055'
| Name | Type | ReadOnly | Description |
| Id [KEY] | Integer | True |
Id of the scheduled event. |
| ScheduleCalendarId | Integer | False |
Id of the calendar that contains this event. |
| Start | Datetime | False |
Date/time that represents the start time of this schedule event. |
| End | Datetime | False |
Date/time that represents the end time of this schedule event. |
| AllDay | Boolean | False |
If true, the event duration is all day on the day specified in start. If false, the event duration is determined by date/time specified in end. |
| AssignedUserIds | String | True |
Ids of the user(s) assigned to this event. Empty array if the event is unassigned. |
| JobcodeId | String | False |
Id of the jobcode associated with this event. |
| Active | Boolean | False |
Whether the event is active. If false, the event has been deleted/archived. |
| Draft | Boolean | False |
Whether the event the event is a draft. If false, the event is published. Saving a published event will send the appropriate event published notifications to the assigned users. |
| TimeZone | String | False |
Timezone of the schedule event. |
| Title | String | False |
Title or name of this event. |
| Notes | String | False |
Notes associated with the event. |
| Location | String | False |
Location of the event. Location can be an address, business name, GPS coordinate, etc., so when users click on the location it will open it up in their mapping application. |
| Color | String | False |
Hex color code assigned to this schedule event. |
| Created | Datetime | True |
Date/time when this schedule event was created |
| LastModified | Datetime | True |
Date/time when this schedule event was last modified. |
| CustomFields | String | False |
Only present if the Advanced Tracking Add-on is installed. This is a key / value map of customfield ids to the customfield items that are associated with the event. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| TeamEvents | String |
Possible values: base or instance. Default is 'instance'. If 'instance' is specified, events that are assigned to multiple users will be returned as individual single events for each assigned user. If 'base' is specified, events that are assigned to multiple users will be returned as one combined event for all assignees. |
| ActiveUsers | Integer |
'0', '-1' or '1' . Default is '1'. Only schedule events whose users are active will be returned by default. 0 will return events for inactive users. -1 will return events for active and inactive users. |
| ActiveStatus | String |
Filter column for whether to fetch only active records, only archived records, or both. By default, only active records are fetched. Possible values are: yes, no, both |
Create, Update and Query the Time off Request Entries in QuickBooks Time.
For example, the following queries are processed server-side:
SELECT * FROM TimeOffRequestEntries SELECT * FROM TimeOffRequestEntries WHERE Id = 11531340
When executing INSERT queries, specify the TimeOffRequestId, EntryMethod, Duration, JobcodeId and Date 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 TimeOffRequestEntries (TimeOffRequestId, EntryMethod, Duration, JobcodeId, Date) VALUES (12345, 'manual', 3600, 10984254, '2024-05-29')
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE TimeOffRequestEntries SET Duration = 500 WHERE Id = '15011650'
| Name | Type | ReadOnly | Description |
| Id [KEY] | Integer | True |
Id of the time of request entry. |
| TimeOffRequestId | Integer | False |
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 QuickBooks Time) 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 | False |
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. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| SupplementalData | Boolean |
Default value is 'yes'. Indicates whether supplemental data should be specified. |
Create, Update and Query the Time off Requests in QuickBooks Time.
For example, the following queries are processed server-side:
SELECT * FROM TimeOffRequests SELECT * FROM TimeOffRequests WHERE Id = 11531340
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}]')
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'
| 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. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| SupplementalData | Boolean |
Default value is 'yes'. Indicates whether supplemental data should be specified. |
This table contains a list of file objects.
For example, the following queries are processed server-side:
SELECT * FROM Timesheets WHERE OnTheClock = false SELECT * FROM Timesheets WHERE LastModified > '2019-01-01 18:30' AND GroupIds IN (1, 2, 3) SELECT * FROM Timesheets WHERE JobcodeId IN (1, 2, 3)
When executing INSERT queries, specify the UserId, JobcodeId, Type and StartTime, EndTime columns in case of Type = regular or UserId, JobcodeId, Type and Duration, Date in case of Type = manual. The columns that are not required can be inserted optionally. The following is an example of how to insert into this table:
INSERT INTO Timesheets (UserId, JobcodeId, Type, StartTime, EndTime) VALUES ('1242123', '17288283', 'regular', '2019-12-05', '2019-12-05')
INSERT INTO Timesheets (UserId, JobcodeId, Type, Date, Duration) VALUES ('1242123', '17288283', 'manual', '2019-12-05', 600)
When executing UPDATE queries, specify the Id in the WHERE clause.
For example:
UPDATE Timesheets SET Date = '2018-08-08', EndTime = '2018-08-08T14:00:00-07:00' WHERE Id = '1242123'
When executing DELETE queries, specify the Id in the WHERE clause.
For example:
DELETE FROM Timesheets WHERE Id = '41321421'
| Name | Type | ReadOnly | Description |
| Id [KEY] | String | True |
Id of the timesheet. |
| UserId | String | False |
User id for the user that this timesheet belongs to. |
| JobcodeId | Int | False |
Jobcode id for the jobcode that this timesheet is recorded against. |
| Locked | Boolean | True |
If greater than 0, the timesheet is locked for editing. A timesheet could be locked for various reasons. |
| Notes | String | False |
Notes associated with this timesheet. |
| LastModified | Datetime | True |
Date/time when this timesheet was last modified. |
| Type | String | False |
Either 'regular' or 'manual'. |
| OnTheClock | Boolean | True |
If true, the user is currently on the clock . If false the user is not currently working on this timesheet. Manual timesheets will always have this property set as false. |
| CreatedByUserId | String | True |
User id for the user that initially created this timesheet. |
| StartTime | Datetime | False |
Date/time that represents the start time of this timesheet. Will always be an empty string for manual timesheets. |
| EndTime | Datetime | False |
Date/time that represents the end time of this timesheet. Will always be an empty string for manual timesheets. |
| Date | Date | False |
The timesheet's date |
| Duration | Int | False |
The total number of seconds recorded for this timesheet. |
| OriginHint | String | False |
A string that will be logged as part of the timesheet history when someone is clocked in, clocked out, or a timesheet is created (with both in/out). Will always be an empty string for manual timesheets. |
| JobCodeType | String | True |
The type of the jobcode linked with this timesheet. Any of the 'regular', 'pto', 'paid_break', 'unpaid_break' |
| AttachedFiles | String | False |
Ids of files attached to this timesheet. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| PayrollIds | Int |
A comma-separated string of payroll ids. Only time recorded against users with these payroll ids will be returned. |
| GroupIds | Int |
A comma-separated list of group ids. Only timesheets linked to users from these groups will be returned. |
Retrieves a list of all users associated with your company.
For example, the following queries are processed server-side:
SELECT * FROM Users WHERE ActiveStatus = 'both'
SELECT * FROM Users WHERE LastModified > '2019-01-01 18:30' AND GroupId IN (1, 2, 3)
SELECT * FROM Users WHERE FirstName LIKE 'josh%' AND PayrollId IN ('562348', '45457')
When executing INSERT queries, specify the UserName, FirstName and LastName 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 Users (UserName, FirstName, LastName) VALUES ('cdatagroup@123', 'cdata', 'group')
When executing UPDATE queries, specify the Id or UserName in the WHERE clause.
For example:
UPDATE Users SET FirstName = 'New Name' WHERE Id = '14055' UPDATE Users SET FirstName = 'New User Name', LastName = 'New Title' WHERE UserName = 'cdatagroup@123'
| Name | Type | ReadOnly | Description |
| Id [KEY] | Integer | True |
Id of this user. |
| FirstName | String | False |
First name of user. |
| LastName | String | False |
Last name of user. |
| DisplayName | String | False |
The display name of user. NOTE: field will be null unless feature GED_INCLUSION is enabled (contact support for more info), if feature is enabled then value will be a non-null display_name value (users who have not setup their display_name will return empty string) |
| GroupId | Integer | False |
Id of the group this user belongs to. |
| Active | Boolean | False |
Whether this user is active. If false, this user is considered archived. |
| EmployeeNumber | Integer | False |
Unique number associated with this user. |
| Salaried | Boolean | False |
Indicates whether or not the user is salaried. |
| Exempt | Boolean | False |
Indicates whether or not the user is eligible for overtime pay. |
| Username | String | False |
Username associated with this user. |
| String | False |
Email address associated with this user. | |
| EmailVerified | Boolean | True |
Indicates whether or not the user is eligible for overtime pay. |
| PayrollId | String | False |
Unique company wide string associated with this user. Usually used for linking with external systems. |
| HireDate | Date | False |
Date on which this user was hired. |
| TermDate | Date | False |
Date on which this user was terminated. |
| LastModified | Datetime | True |
Date/time when this user was last modified. |
| LastActive | Datetime | True |
Date/time when this user last performed any action. |
| Created | Datetime | True |
Date/time when this user was created |
| ClientUrl | String | True |
Client account url identifier associated with this user. |
| CompanyName | String | True |
Client account name identifier associated with the user. |
| ProfileImageUrl | String | True |
Url identifier associated with this user's profile image. |
| MobileNumber | String | False |
Mobile phone number associated with this user. |
| PTOBalances | String | True |
List of jobcode identifiers and their respective PTO balances for this user (in seconds). |
| SubmittedTo | Date | False |
The latest date this user has submitted timesheets up to. |
| ApprovedTo | Date | False |
The latest date this user has had timesheets approved to. |
| ManagerOfGroupIds | String | True |
The group ids that this user manages. |
| RequirePasswordChange | Boolean | False |
Whether this user will be required to change their password on their next login. |
| LoginPIN | Integer | False |
Used for logging into a Kiosk or similar. This field is only used for create/update user. |
| PayRate | Double | True |
The rate of pay associated with this user. Only visible to admins. |
| PayInterval | String | True |
The timeframe to which this user's pay rate applies, either 'hour' or 'year'. Only visible to admins. |
| CustomFields | String | False |
A key/value map of customfield ids to the customfield items that are associated with the user. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| ActiveStatus | String |
Filter column for whether to fetch only active records, only archived records, or both. By default, only active records are fetched. Possible values are: yes, no, both |
ビューは、データを示すという点でテーブルに似ていますが、ビューは読み取り専用です。
クエリは、ビューに対して通常のテーブルと同様に実行することができます。
| Name | Description |
| CurrentTotalsReport | Report for the current totals (shift and day) along with additional information provided for those who are currently on the clock. |
| CurrentUser | Query the current user details in QuickBooks Time. |
| CustomFieldItemJobCodeFilters | Query the Custom Field Item JobCode Filters in QuickBooks Time. |
| CustomFieldItemUserFilters | Query the Custom Field Item User Filters in QuickBooks Time. |
| GeneralSettings | Retrieves a list of all effective settings associated with a single user. |
| GeofenceConfigs | Retrieves a list of all geofence configs. |
| LastModifiedTimestamps | Retrieves a list of last_modified timestamps associated with each requested API endpoint. |
| LocationMaps | Retrieves a list of all locations maps associated with your company. |
| ManagedClients | Retrieves a list of managed clients available from your account. |
| PayrollReport | Payroll Report associated with a timeframe. |
| PayrollReportByJobCode | Payroll Report broken down by jobcode |
| ProjectActivities | Query the Project Activities in QuickBooks Time. |
| ProjectActivityReadTimes | Update and Query the ProjectActivity read time in QuickBooks Time. |
| ProjectEstimateDetailReport | Retrieves a project estimate detail report. |
| ProjectEstimateReport | Retrieves a project estimate report. |
| ProjectReport | Retrieves a project report. |
| ScheduleCalendars | Retrieves a list of schedule calendars associated with your employees or company. |
| TimesheetsDeleted | Query the Project Notes in QuickBooks Time. |
| UserPermissions | The rights assignable to an individual user. |
Report for the current totals (shift and day) along with additional information provided for those who are currently on the clock.
For example, the following query is processed server-side:
SELECT * FROM CurrentTotalsReport
SELECT * FROM CurrentTotalsReport WHERE GroupId IN ('29474', '29474') AND OnTheClock IN (true, false)
SELECT * FROM CurrentTotalsReport WHERE UserId IN (1751136, 1738864) AND OnTheClock = false
| Name | Type | Description |
| UserId | Int | Id of the users these totals are calculated for. |
| GroupId | String | Unique group id for this user,value of zero represents those without a group. |
| OnTheClock | Boolean | Whether this user is currently on the clock. |
| ShiftGeolocationsAvailable | Boolean | Whether geolocations are available for the current timesheet. |
| ShiftSeconds | Int | Total time for the current shift, in seconds. |
| DaySeconds | Int | Total time for the day, in seconds. |
| JobCodeId | Int | Id of the JobCode. |
| TimesheetId | Int | Id of the Timesheet. |
| LatestShiftGeolocationId | Int | Latest shift geolocation id. |
| LatestShiftProximityPointDistance | Int | Latest shift proximity point distance. |
Query the current user details in QuickBooks Time.
The WHERE clause conditions are not supported on the API side. Only a basic unfiltered SELECT query works on the API side. The filters are executed client-side within the Cloud.
For example, the following query is processed server-side:
SELECT * FROM CurrentUser
| Name | Type | Description |
| Id [KEY] | Integer | Id of the current user. |
| FirstName | String | First name of user. |
| LastName | String | Last name of user. |
| DisplayName | String | The display name of user. |
| GroupId | Integer | Id of the group this user belongs to. |
| Active | Boolean | Boolean value which show the active status. |
| EmployeeNumber | Integer | Unique number associated with this user. |
| Salaried | Boolean | Indicates whether or not the user is salaried. |
| Exempt | Boolean | Indicates e.g. whether or not the user is eligible for overtime pay. |
| UserName | String | Username associated with this user. |
| String | Email address associated with this user. | |
| EmailVerified | Boolean | Indicates whether or not the email address has been confirmed by the user. |
| PayrollId | String | Unique company wide string associated with this user. Usually used for linking with external systems. |
| HireDate | Date | Date on which this user was hired. |
| TermDate | Date | Date on which this user was terminated. |
| LastModified | Datetime | Date/time when this user was last modified, in ISO 8601 format. |
| LastActive | Datetime | Date/time when this user last performed any action, in ISO 8601 format. |
| Created | Datetime | Date/time when this user was created, in ISO 8601 format. |
| ClientUrl | String | Client account url identifier associated with this user. |
| CompanyName | String | Client account name identifier associated with the user. |
| ProfileImageUrl | String | Url identifier associated with this user's profile image. |
| MobileNumber | String | Mobile phone number associated with this user. |
| PtoBalances | String | List of jobcode identifiers and their respective PTO balances for this user (in seconds). |
| SubmittedTo | Datetime | The latest date this user has submitted timesheets up to. |
| ApprovedTo | Datetime | The latest date this user has had timesheets approved to. |
| ManagerOfGroupIds | String | The group ids that this user manages. |
| RequirePasswordChange | Boolean | If true, this user will be required to change their password on their next login. |
| PayRate | Float | The rate of pay associated with this user. Only visible to admins. |
| PayInterval | String | The timeframe to which this user's pay rate applies, either 'hour' or 'year'. Only visible to admins. |
| PermissionsAdmin | Boolean | Permissions - Administrator, can perform any changes on the account. |
| PermissionsMobile | Boolean | Permissions - Allowed to use mobile devices to record time. |
| PermissionsStatusBox | Boolean | Permissions - Able to view the list of users currently working for the company. |
| PermissionsReports | Boolean | Permissions - Able to run/view all reports for the company. |
| PermissionsManageTimesheets | Boolean | Permissions - Able to create/edit/delete timesheets for anyone in the company. |
| PermissionsManageAuthorization | Boolean | Permissions - Able to manage computer authorization for the company. |
| PermissionsManageUsers | Boolean | Permissions - Able to create/edit/delete users, groups, and managers for the entire company. |
| PermissionsManageMyTimesheets | Boolean | Permissions - Able to completely manage own timesheets. |
| PermissionsManageJobcodes | Boolean | Permissions - Able to create/edit/delete jobcodes and custom field items for the entire company. |
| PermissionsPinLogin | Boolean | Permissions - Able to login to apps via PIN. |
| PermissionsApproveTimesheets | Boolean | Permissions - Able to run approval reports and approve time for all employees. |
| PermissionsManageSchedules | Boolean | Permissions - Able to create/edit/delete events within the schedule for the groups that the user can manage. |
| PermissionsExternalAccess | Boolean | Permissions - External Access |
| PermissionsManageMySchedule | Boolean | Permissions - Able to create/edit/delete events within the schedule for only themselves. |
| PermissionsManageCompanySchedules | Boolean | Permissions - Able to create/edit/delete events within the schedule for any user in the company. |
| PermissionsViewCompanySchedules | Boolean | Permissions - Able to view published events within the schedule for any user in the company. |
| PermissionsViewGroupSchedules | Boolean | Permissions - Able to view published events within the schedule for the groups that the user is a member of. |
| PermissionsManageNoSchedules | Boolean | Permissions - Not able to create/edit/delete events within the schedule for any user. |
| PermissionsViewMySchedules | Boolean | Permissions - Able to view published events within the schedule for themselves. |
| PermissionsViewProjects | Boolean | Permissions - View Projects |
| PermissionsManageProjects | Boolean | Permissions - Manage Projects |
| PermissionsTimeTracking | Boolean | Permissions - Able to track time and have time tracked on their behalf. |
| CustomFields | String | A key/value map of customfield ids to the customfield items that are associated with the user. |
Query the Custom Field Item JobCode Filters in QuickBooks Time.
The Cloud 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 Cloud.
For example, the following queries are processed server-side:
SELECT * FROM CustomFieldItemJobCodeFilters SELECT * FROM CustomFieldItemJobCodeFilters WHERE JobCodeId = '679721'
| Name | Type | Description |
| Id [KEY] | Integer | Id of the JobCode to which the filter belong. |
| LastModified | Datetime | The latest date/time when one of the filtered items was updated. |
| FilteredCustomFieldItems | String | Each entity represents a custom field's active filters where the key is the custom field id and the value is an array of item ids to which the jobcode is assigned. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| JobCodeId | Integer | Comma separated list of one or more jobcode ids you'd like to filter on. |
Query the Custom Field Item User Filters in QuickBooks Time.
For example, the following queries are processed server-side:
SELECT * FROM CustomFieldItemUserFilters SELECT * FROM CustomFieldItemUserFilters WHERE JobCodeId = '679721'
| Name | Type | Description |
| Id [KEY] | Integer | Id of the JobCode to which the filter belong. |
| Type | String | The entities filter type: user or group. |
| LastModified | Datetime | The latest date/time when one of the filtered items was updated. |
| FilteredCustomFieldItems | String | Each entity represents a custom field's active filters where the key is the custom field id and the value is an array of item ids to which the user is assigned. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| UserId | Integer | Limits the returned filters to only those for the specified user_id. You can also include items for this user's group automatically if you include the include_user_group parameter. |
| GroupId | Integer | Limits the returned filter to only those for the specified group_id. |
| IncludeUserGroup | Boolean | Boolean value. If a user_id is supplied, will return filters for that user's group as well. |
Retrieves a list of all effective settings associated with a single user.
Query the GeneralSettings table. The Cloud 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 Cloud.
For example, the following queries are processed server side:
SELECT * FROM GeneralSettings WHERE LastModified = '2021-12-17 05:08:02.0'
| Name | Type | Description |
| CalculateOvertime | Boolean | The CalculateOvertime setting. |
| ClockoutOverride | Boolean | The ClockoutOverride setting. |
| ClockoutOverrideHours | Integer | The ClockoutOverrideHours setting. |
| ClockoutOverrideNotifyAdmin | Boolean | The ClockoutOverrideNotifyAdmin setting. |
| ClockoutOverrideNotifyManager | Boolean | The ClockoutOverrideNotifyManager setting. |
| DailyDoubletime | Integer | The DailyDoubletime setting. |
| DailyOvertime | Integer | The DailyOvertime setting. |
| DailyRegularHours | Integer | The DailyRegularHours setting. |
| DateLocale | String | The DateLocale setting. |
| EmpPanel | Boolean | The EmpPanel setting. |
| EmpPanelMail | String | The EmpPanelMail setting. |
| EmpPanelPassword | String | The EmpPanelPassword setting. |
| EmployeePtoEntry | Boolean | The EmployeePtoEntry setting. |
| EnableTimesheetNotes | String | The EnableTimesheetNotes setting. |
| HideWorkingTime | String | The HideWorkingTime setting. |
| JcLabel | String | The JcLabel setting. |
| LunchDeduct | Boolean | The LunchDeduct setting. |
| LunchLength | Boolean | The LunchLength setting. |
| LunchThreshold | Integer | The LunchThreshold setting. |
| MaxCustomFieldItems | Integer | The MaxCustomFieldItems setting. |
| MaxJobCodes | Integer | The MaxJobCodes setting. |
| ParentClockinDisplay | Integer | The ParentClockinDisplay setting. |
| PayrollEndDate | Date | The PayrollEndDate setting. |
| PayrollFirstEndDay | String | The PayrollFirstEndDay setting. |
| PayrollLastEndDay | String | The PayrollLastEndDay setting. |
| PayrollMonthEndDay | String | The PayrollMonthEndDay setting. |
| PayrollType | String | The PayrollType setting. |
| PtoEntry | Boolean | The PtoEntry setting. |
| PtoOvertime | Boolean | The PtoOvertime setting. |
| SimpleClockin | Boolean | The SimpleClockin setting. |
| TimeFormat | Integer | The TimeFormat setting. |
| TimecardFields | String | The TimecardFields setting. |
| TimeclockLabel | String | The TimeclockLabel setting. |
| TimesheetEditNotesForAllUsers | Boolean | The TimesheetEditNotesForAllUsers setting. |
| TimesheetNotesNotifyAdmin | Boolean | The TimesheetNotesNotifyAdmin setting. |
| TimesheetNotesNotifyManagers | Boolean | The TimesheetNotesNotifyManagers setting. |
| TimesheetNotesRequired | Boolean | The TimesheetNotesRequired setting. |
| Timezone | String | The Timezone setting. |
| WeekStart | String | The WeekStart setting. |
| WeeklyRegularHours | String | The WeeklyRegularHours setting. |
| LastModified | Datetime | When the record was last modified. |
| EmpPanelTz | String | The EmpPanelTz setting. |
Retrieves a list of all geofence configs.
For example, the following queries are processed server-side:
SELECT * FROM GeofenceConfigs WHERE TypeId IN (282316, 323445) AND Type = 'Locations' SELECT * FROM GeofenceConfigs WHERE Enabled = false
| Name | Type | Description |
| Id [KEY] | Int | Id of geofence config. |
| Type | String | The type of entity the geofence config is related to. |
| TypeId | Int | The id of the entity the geofence config is related to. |
| Active | Boolean | Whether this geofence config is active. If false, this geofence config is archived. |
| Enabled | Boolean | Indicates whether a geofence for the associated entity should be enabled. |
| Radius | Int | Configures the size of the geofence. |
| Created | Datetime | Date/time when this geofence config was created |
| LastModified | Datetime | Date/time when this geofence config was last modified. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| ActiveStatus | String | Filter column for whether to fetch only active records, only archived records, or both. By default, only active records are fetched. Possible values are: yes, no, both |
Retrieves a list of last_modified timestamps associated with each requested API endpoint.
Query a list of last modified timestamps associated with each requested API endpoint. The Cloud 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 Cloud.
For example, the following queries are processed server-side:
SELECT * FROM LastModifiedTimestamps WHERE endpoints = 'timesheets,current_user,groups'
| Name | Type | Description |
| CurrentUser | Datetime | Date/time when this current user was last modified. |
| CustomFields | Datetime | Date/time when this custom fields was last modified. |
| CustomFielditems | Datetime | Date/time when this custom field items was last modified. |
| CustomFieldItemFilters | Datetime | Date/time when this custom field item filters was last modified. |
| CustomFieldItemUserFilters | Datetime | Date/time when this custom field item user filters was last modified. |
| CustomFieldItemJobCodeFilters | Datetime | Date/time when this custom field item jobcode filters was last modified. |
| ContactInfo | Datetime | Date/time when this contact info was last modified. |
| EffectiveSettings | Datetime | Date/time when this effective settings was last modified. |
| GeoLocations | Datetime | Date/time when this geo locations was last modified. |
| GeofenceConfigs | Datetime | Date/time when this geofence configs was last modified. |
| GeofenceActiveHours | Datetime | Date/time when this geofence active hours was last modified. |
| Groups | Datetime | Date/time when this groups was last modified. |
| JobCodes | Datetime | Date/time when this job codes was last modified. |
| JobCodeAssignments | Datetime | Date/time when this job code assignments was last modified. |
| Locations | Datetime | Date/time when this locations deleted was last modified. |
| LocationsMap | Datetime | Date/time when this locations map was last modified. |
| Reminders | Datetime | Date/time when this reminders was last modified. |
| ScheduleCalendars | Datetime | Date/time when this schedule calendars was last modified. |
| ScheduleEvents | Datetime | Date/time when this schedule events was last modified. |
| TimeSheets | Datetime | Date/time when this timesheets was last modified. |
| TimeSheetsDeleted | Datetime | Date/time when this timesheets deleted was last modified. |
| TimeOffRequests | Datetime | Date/time when this time off requests was last modified. |
| TimeOffRequestEntries | Datetime | Date/time when this time off request entries was last modified. |
| Terms | Datetime | Date/time when this terms was last modified. |
| Users | Datetime | Date/time when this users was last modified. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| Endpoints | String | Comma separated list of one or more endpoints. |
Retrieves a list of all locations maps associated with your company.
For example, the following queries are processed server-side:
SELECT * FROM LocationMaps WHERE Id IN ('102839', '110761')
SELECT * FROM LocationMaps WHERE ByJobcodeAssignment = true
| Name | Type | Description |
| Id [KEY] | String | Id of location map. |
| XTable | String | The name of the entity the location is mapped to. |
| XId | Integer | The id of the entity the location is mapped to. |
| LocationId | Integer | The id of the location that is mapped to the entity. |
| Created | Datetime | Date/time when this locations map was created |
| LastModified | Datetime | Date/time when this locations map was last modified. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| ByJobcodeAssignment | Boolean | If specified only locations maps mapped to a jobcode the user is assigned to will be returned. |
Retrieves a list of managed clients available from your account.
For example, the following queries are processed server-side:
SELECT * FROM ManagedClients WHERE ActiveStatus = 'both'
| Name | Type | Description |
| Id [KEY] | String | Id of the managed client. |
| CompanyUrl | String | URL used by the managed client to sign in to QuickBooks Time. |
| CompanyName | String | Name of the managed client's company. |
| Active | Boolean | Whether this client is active. If false, this client is considered archived. |
| Created | Datetime | Date/time when this managed client record was created |
| LastModified | Datetime | Date/time when this managed client record was last modified. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| ActiveStatus | String | Filter column for whether to fetch only active records, only archived records, or both. By default, only active records are fetched. Possible values are: yes, no, both |
Payroll Report associated with a timeframe.
Query the PayrollReport table to retrieve payrolls associated with a timeframe, with filters to narrow down the results. The Cloud 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 Cloud. By default the report will include results for a time range within the last 30 days. You can filter by StartDate and EndDate filters to get a payroll report over a different time range.
For example, the following queries are processed server-side:
SELECT * FROM PayrollReport WHERE GroupId IN ('29474', '29475') AND IncludeZeroTime = false
SELECT * FROM PayrollReport WHERE StartDate = '2019-11-01' AND EndDate = '2019-12-31'
| Name | Type | Description |
| UserId | Int | Id of the users these totals are calculated for. |
| ClientId | Int | Id of the client. |
| StartDate | Date | Start of reporting timeframe. |
| EndDate | Date | End of the payroll reporting timeframe. |
| TotalReSeconds | Int | Total time for the current shift, in seconds. |
| TotalOTSeconds | Int | Overtime, in seconds. |
| TotalDTSeconds | Int | Doubletime, in seconds. |
| TotalPTOSeconds | Int | Total PTO time, in seconds. |
| TotalWorkSeconds | Int | Total overall time, in seconds. |
| OvertimeSeconds | String | The overtime seconds object, where the key is the multiplier rate and the value is the number of seconds of overtime at that rate |
| FixedRateSeconds | String | The fixed rate seconds object, where the key is the multiplier rate and the value is the number of seconds of overtime at that rate |
| PtoSeconds | String | The pto seconds object, where the key is the multiplier rate and the value is the number of seconds of overtime at that rate |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| GroupId | String | A comma-seperated list of group ids. Only time for users from these groups will be included. |
| IncludeZeroTime | String | If true, all users will be included in the output, even if they had zero hours for the time period. |
Payroll Report broken down by jobcode
Query the PayrollReportByJobCode table to retrieve a payroll report, broken down by jobcode, with filters to narrow down the results. The Cloud 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 Cloud. By default the report will include results for a time range within the last 30 days. You can filter by StartDate and EndDate filters to get a payroll report over a different time range. The date range defined by StartDate and EndDate must not exceed 31 days.
For example, the following queries are processed server-side:
SELECT * FROM PayrollReportByJobCode WHERE GroupId IN ('29474', '29474') AND IncludeAdvancedOvertime = false
SELECT * FROM PayrollReport WHERE StartDate = '2019-11-01' AND EndDate = '2019-12-31'
Based on the columns selected in projection explicitly, the aggregated data displayed may change.
Aggregate payroll metrics broken down by jobcode id:
SELECT * FROM PayrollReport WHERE StartDate = '2019-11-01' AND EndDate = '2019-12-31'
Aggregate payroll metrics broken down by jobcode id per each user:
SELECT UserId, JobCodeId, TotalWorkSeconds, TotalReSeconds, TotalPtoSeconds, OvertimeSeconds FROM PayrollReportByJobCode
Aggregate payroll metrics broken down by jobcode id and date per each user:
SELECT Date, UserId, JobCodeId, TotalWorkSeconds, TotalReSeconds, TotalPtoSeconds, OvertimeSeconds FROM PayrollReportByJobCode
| Name | Type | Description |
| UserId | Int | Id of the users these totals are calculated for. |
| JobcodeId | Int | Id of the jobcode the metrics apply to. |
| StartDate | Date | Start of reporting timeframe. |
| EndDate | Date | End of the payroll reporting timeframe. |
| Date | String | Date that these total are calculated for. |
| TotalReSeconds | Int | Total time for the current shift, in seconds. |
| TotalOTSeconds | Int | Overtime, in seconds. |
| TotalDTSeconds | Int | Doubletime, in seconds. |
| TotalPTOSeconds | Int | Total PTO time, in seconds. |
| TotalWorkSeconds | Int | Total overall time, in seconds. |
| OvertimeSeconds | String | The overtime seconds object, where the key is the multiplier rate and the value is the number of seconds of overtime at that rate |
| FixedRateSeconds | String | The fixed rate seconds object, where the key is the multiplier rate and the value is the number of seconds of overtime at that rate |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| GroupId | String | A comma-seperated list of group ids. Only time for users from these groups will be included. |
| IncludeAdvancedOvertime | Boolean | If true, overtime will be formatted such that it includes the time for individual multipliers and can support more than just 1.5x (ot) and 2x (dt) overtime. |
Query the Project Activities in QuickBooks Time.
For example, the following queries are processed server-side:
SELECT * FROM ProjectActivities WHERE ProjectId = 2056676 SELECT * FROM ProjectActivities WHERE ProjectId = 2056676 AND Id = 8375474
| Name | Type | Description |
| Id [KEY] | Integer | ID of this project activity. |
| UserId | Integer | Id of the associated user. |
| ProjectId | Integer | Id of the associated project. |
| Active | Boolean | Boolean value. If false, this project activity is considered archive. |
| UnreadRepliesCount | Integer | The count of unread replies. |
| Following | Boolean | Following. |
| ActivityType | String | Activity type. |
| LastModified | Datetime | Date/time when this project was last modified, in ISO 8601 format. |
| Created | Datetime | Date/time when this project was created, in ISO 8601 format. |
| ProjectActivityMetadata | String | Project activity metadata. |
| LinkedObjects | String | A key/value map of all the objects linked to this project and the corresponding object ids. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| SupplementalData | Boolean | Default value is 'yes'. Indicates whether supplemental data should be specified. |
Update and Query the ProjectActivity read time in QuickBooks Time.
For example, the following queries are processed server-side:
SELECT * FROM ProjectActivityReadTimes SELECT * FROM ProjectActivities WHERE Id = 8375474
| Name | Type | Description |
| Id [KEY] | Integer | ID of this project activity read time. |
| ProjectId | Integer | Id of the associated project. |
| UserId | Integer | Id of the associated user. Only the current user id is allowed. |
| LatestReadTime | Datetime | Date/time when this project activity was last read. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| SupplementalData | Boolean | Default value is 'yes'. Indicates whether supplemental data should be specified. |
Retrieves a project estimate detail report.
For example, the following queries are processed server-side:
SELECT * FROM ProjectEstimateDetailReport SELECT * FROM ProjectEstimateDetailReport WHERE Id = 8375474
| Name | Type | Description |
| Id | Int | Id of the Project estimate report. |
| JobcodeId | Int | The JobCode Id. |
| ParentJobcodeId | Int | A JobCode Id. Only time for projects under this jobcode will be included. |
| Name | String | Name. |
| Status | String | Status.
使用できる値は次のとおりです。in_progress, complete |
| Description | String | Description. |
| StartDate | Datetime | Start date. |
| DueDate | Datetime | Due date. |
| CompletedDate | Datetime | Completed date. |
| Active | Boolean | Boolean value which represents the active status. |
| LastModified | Datetime | Last modified date. |
| Created | Datetime | Created date. |
| EstimateId | Int | Estimate id. |
| EstimateBy | String | Estimate by. |
| EstimateById | Int | Estimate by id. |
| TotalClockedInSeconds | Int | Total clocked in seconds. |
| TotalClockedOutSeconds | Int | Total clocked out seconds. |
| TotalTrackedSeconds | Int | Total tracked seconds. |
| TotalEstimatedSeconds | Int | Total estimated seconds. |
| TotalNoteCount | Int | Total note count. |
| UnreadPostsCount | Int | Unread posts count. |
| UnreadRepliesCount | Int | Unread replies count. |
| BudgetProgress | String | Budget progress. |
| ClockedInUserIds | String | Clocked in User Ids. |
| QboMapped | Boolean | Boolean value. |
| EstimateItems | String | Estimate items. |
| CustomFieldItemId | Int | Custom field item id. |
| assigned_to_all | Boolean | Assigned to all. |
| PreviewAssignedUserIds | String | Preview assigned user ids. |
| TotalAssignedUsers | Int | Total assigned users. |
| TrackedTimeUsers | String | Tracked time users. |
| TrackedTimeGroups | String | Tracked time groups. |
| TrackedTimeJobcodes | String | Tracked time jobcodes. |
| TrackedTimeCustomFields | String | Tracked time customfields. |
| OnTheClock | Boolean | On The Clock. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| SupplementalData | Boolean | Default value is 'yes'. Indicates whether supplemental data should be specified. |
| ResultsAsArray | Boolean | Default value is 'yes'. Indicates whether results should be returned as an array instead of an object. |
Retrieves a project estimate report.
For example, the following queries are processed server-side:
SELECT * FROM ProjectEstimateReport SELECT * FROM ProjectEstimateReport WHERE ProjectId = 8375474
| Name | Type | Description |
| Id | Int | Id of the Project estimate report. |
| JobcodeId | Int | The JobCode Id. |
| ParentJobcodeId | Int | A JobCode Id. Only time for projects under this jobcode will be included. |
| Name | String | Name. |
| Status | String | Status. |
| Description | String | Description. |
| StartDate | Datetime | Start date. |
| DueDate | Datetime | Due date. |
| CompletedDate | Datetime | Completed date. |
| Active | Boolean | Boolean value which represents the active status. |
| LastModified | Datetime | Last modified date. |
| Created | Datetime | Created date. |
| EstimateId | Int | Estimate id. |
| EstimateBy | String | Estimate by. |
| EstimateById | Int | Estimate by id. |
| TotalClockedInSeconds | Int | Total clocked in seconds. |
| TotalClockedOutSeconds | Int | Total clocked out seconds. |
| TotalTrackedSeconds | Int | Total tracked seconds. |
| TotalEstimatedSeconds | Int | Total estimated seconds. |
| TotalNoteCount | Int | Total note count. |
| UnreadPostsCount | Int | Unread posts count. |
| UnreadRepliesCount | Int | Unread replies count. |
| BudgetProgress | String | Budget progress. |
| ClockedInUserIds | String | Clocked in User Ids. |
| QboMapped | Boolean | Boolean value. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| ProjectId | Integer | Array of one or more project ids. Only time for these projects will be included. |
| SupplementalData | Boolean | Default value is 'yes'. Indicates whether supplemental data should be specified. |
| ResultsAsArray | Boolean | Default value is 'yes'. Indicates whether results should be returned as an array instead of an object. |
| HasTimeTracked | Boolean | Default value is 'no'. Indicates whether to filter results on time tracked dates. |
Retrieves a project report.
Query the ProjectReport table to retrieve a project report, broken down by user, group or jobcode. The Cloud 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 Cloud. By default the report will include results for a time range within the last 30 days. You can filter by StartDate and EndDate filters to get a payroll report over a different time range.
For example, the following queries are processed server-side:
SELECT * FROM ProjectReport WHERE GroupId IN (29474, 29474) SELECT * FROM ProjectReport WHERE StartDate = '2019-11-01' AND EndDate = '2019-12-31'
Based on the columns selected in projection explicitly, the aggregated data displayed may change.
Aggregate projects metrics broken down by user id:
SELECT * FROM ProjectReport WHERE StartDate = '2019-11-01' AND EndDate = '2019-12-31' SELECT UserId, TotalHours FROM ProjectReport WHERE StartDate = '2019-11-01' AND EndDate = '2019-12-31'
Aggregate project metrics broken down by jobcode id:
SELECT JobCodeId, TotalHours FROM ProjectReport
Aggregate payroll metrics broken down by group id:
SELECT GroupId, TotalHours FROM ProjectReport
| Name | Type | Description |
| UserId | Int | Id of the users these totals are calculated for. |
| JobcodeId | Int | Id of the jobcode the metrics apply to. |
| GroupId | Int | Id of the group the metrics apply to. |
| StartDate | Date | Start of reporting timeframe. |
| EndDate | Date | End of the payroll reporting timeframe. |
| TotalHours | Double | Total number of hours per each user, group or jobcode. |
| CustomFieldItems | String | An object with customfield_id as the properties, and each value being an array of customfielditem values. |
Retrieves a list of schedule calendars associated with your employees or company.
For example, the following queries are processed server-side:
SELECT * FROM ScheduleCalendars WHERE Id IN (72595, 72597) SELECT * FROM ScheduleCalendars WHERE LastModified < '2019-01-01 18:30'
| Name | Type | Description |
| Id [KEY] | Integer | Id of the schedule calendar. |
| Name | String | The name of the schedule calendar. |
| Created | Datetime | Date/time when this schedule calendar was created |
| LastModified | Datetime | Date/time when this schedule calendar was last modified. |
Query the Project Notes in QuickBooks Time.
Either StartDate and EndDate or Id is required to query the TimesheetsDeleted view. For example, the following queries are processed server-side:
SELECT * FROM TimesheetsDeleted WHERE StartDate = '2023-02-01' AND EndDate = '2024-07-01' SELECT * FROM TimesheetsDeleted WHERE Id = 8375474
| Name | Type | Description |
| Id [KEY] | String | Id of the timesheet. |
| UserId | Integer | User id for the user that this timesheet belongs to. |
| JobcodeId | Integer | Jobcode id for the jobcode that this timesheet is recorded |
| StartDate | Datetime | Date/time that represents the start time of this timesheet, in ISO 8601 format. |
| EndDate | Datetime | Date/time that represents the end time of this timesheet, in ISO 8601 format. |
| Duration | Int | The total number of seconds recorded for this timesheet. |
| Date | Datetime | The timesheet's date, in YYYY-MM-DD format. |
| Tz | Int | Time zone. |
| TzStr | String | Time zone str. |
| Type | String | Either 'regular' or 'manual'. Regular timesheets have a start & end time (duration is calculated by TSheets). Manual timesheets have a date and a duration (in seconds). Unique properties for each timesheet type are below. |
| Location | String | Location. |
| Active | Boolean | Active. |
| Locked | String | If greater than 0, the timesheet is locked for editing. A timesheet could be locked for various reasons, such as being exported, invoiced, etc. |
| Notes | String | Notes associated with this timesheet. |
| LastModified | Datetime | Date/time when this timesheet was last modified, in ISO 8601 format. |
| Created | Datetime | Date/time when this timesheet was created, in ISO 8601 format. |
| CustomFields | String | A key/value map of customfield ids to the customfield items that are associated with the timesheet. |
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| GroupId | Integer | Id of the associated groups. |
| Username | String | User name. |
| JobcodeType | String | Job code type. |
| SupplementalData | Boolean | Default value is 'yes'. Indicates whether supplemental data should be specified. |
The rights assignable to an individual user.
Query the UserPermissions table. The Cloud 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 Cloud.
For example, the following queries are processed server side:
SELECT * FROM UserPermissions WHERE UserID = 3600098 SELECT * FROM UserPermissions WHERE UserID != 3600098 SELECT * FROM UserPermissions WHERE UserID NOT IN (3600098, 66025, 66021) SELECT * FROM UserPermissions WHERE UserID IN (3600098, 66025, 66021)
| Name | Type | Description |
| UserId [KEY] | String | The Id of the user these permissions apply to. |
| Admin | Boolean | Administrator, can perform any changes on the account. |
| Mobile | Boolean | Whether this user is allowed to use mobile devices to record time. |
| StatusBox | Boolean | Whether this user is able to view the list of users currently working for the company. |
| Reports | Boolean | Whether this user is able to run/view all reports for the company. |
| ManageTimesheets | Boolean | Whether this user is able to create/edit/delete timesheets for anyone in the company. |
| ManageAuthorization | Boolean | Whether this user is able to manage computer authorization for the company. |
| ManageUsers | Boolean | Whether this user is able to create/edit/delete users, groups, and managers for the entire company. |
| ManageMyTimesheets | Boolean | Whether this user is able to completely manage own timesheets. |
| ManageJobcodes | Boolean | Whether this user is able to create/edit/delete jobcodes and custom field items for the entire company. |
| PinLogin | Boolean | Whether this user is able to login to apps via PIN. |
| ApproveTimesheets | Boolean | Whether this user is able to run approval reports and approve time for all employees. |
| ManageSchedules | Boolean | Whether this user is able to create/edit/delete events within the schedule for the groups that the user can manage. |
| ManageMySchedule | Boolean | Whether this user is able to create/edit/delete events within the schedule for only themselves. |
| ManageCompanySchedules | Boolean | Whether this user is able to create/edit/delete events within the schedule for any user in the company. |
| ManageNoSchedule | Boolean | Whether this user is not able to create/edit/delete events within the schedule for any user. |
| ViewCompanySchedules | Boolean | Whether this user is able to view published events within the schedule for any user in the company. |
| ViewGroupSchedules | Boolean | Whether this user is able to view published events within the schedule for the groups that the user is a member of. |
| ViewMySchedules | Boolean | Whether this user is able to view published events within the schedule for themselves. |
| TimeTracking | Boolean | Whether this user is able to track time and have time tracked on their behalf. |
ストアドプロシージャはファンクションライクなインターフェースで、QuickBooks Time の単純なSELECT/INSERT/UPDATE/DELETE 処理にとどまらずCloud の機能を拡張します。
ストアドプロシージャは、パラメータのリストを受け取り、目的の機能を実行し、プロシージャが成功したか失敗したかを示すとともにQuickBooks Time から関連するレスポンスデータを返します。
| Name | Description |
| CreateInvitation | Invite one or more users to your company. |
| UpdateProjectActivityReadTime | Update the last read time for one or more projects. |
Invite one or more users to your company.
| Name | Type | Required | Description |
| ContactMethod | String | False | Method to be used for the invitation, either 'sms' or 'email'. |
| ContactInfo | String | False | The email address or mobile phone number matching the type specified by the contact_method parameter. |
| UserId | String | False | Id of the user to invite. |
| ContactAggregate | String | False |
Update the last read time for one or more projects.
QuickBooks Time allows only a small subset of columns to be used in the EXECUTE query. These columns can typically only be used with the = comparison.
For example:
EXECUTE UpdateProjectActivityReadTime ProjectId = '10001' EXECUTE UpdateProjectActivityReadTime ProjectId = '10001, 10002'
| Name | Type | Required | Description |
| ProjectId | String | True | Id of the Project. If you have multiple Project IDs, please provide them as comma-separated values. |
| Name | Type | Description |
| Success | String | This value shows a boolean indication of whether the operation was successful or not. |
このセクションで説明されているシステムテーブルをクエリして、スキーマ情報、データソース機能に関する情報、およびバッチ操作の統計にアクセスできます。
以下のテーブルは、QuickBooks Time のデータベースメタデータを返します。
以下のテーブルは、データソースへの接続方法およびクエリ方法についての情報を返します。
次のテーブルは、データ変更クエリ(バッチ処理を含む)のクエリ統計を返します。
利用可能なデータベースをリストします。
次のクエリは、接続文字列で決定されるすべてのデータベースを取得します。
SELECT * FROM sys_catalogs
| Name | Type | Description |
| CatalogName | String | データベース名。 |
利用可能なスキーマをリストします。
次のクエリは、すべての利用可能なスキーマを取得します。
SELECT * FROM sys_schemas
| Name | Type | Description |
| CatalogName | String | データベース名。 |
| SchemaName | String | スキーマ名。 |
利用可能なテーブルをリストします。
次のクエリは、利用可能なテーブルおよびビューを取得します。
SELECT * FROM sys_tables
| Name | Type | Description |
| CatalogName | String | テーブルまたはビューを含むデータベース。 |
| SchemaName | String | テーブルまたはビューを含むスキーマ。 |
| TableName | String | テーブル名またはビュー名。 |
| TableType | String | テーブルの種類(テーブルまたはビュー)。 |
| Description | String | テーブルまたはビューの説明。 |
| IsUpdateable | Boolean | テーブルが更新可能かどうか。 |
利用可能なテーブルおよびビューのカラムについて説明します。
次のクエリは、Timesheets テーブルのカラムとデータ型を返します。
SELECT ColumnName, DataTypeName FROM sys_tablecolumns WHERE TableName='Timesheets'
| Name | Type | Description |
| CatalogName | String | テーブルまたはビューを含むデータベースの名前。 |
| SchemaName | String | テーブルまたはビューを含むスキーマ。 |
| TableName | String | カラムを含むテーブルまたはビューの名前。 |
| ColumnName | String | カラム名。 |
| DataTypeName | String | データ型の名前。 |
| DataType | Int32 | データ型を示す整数値。この値は、実行時に環境に基づいて決定されます。 |
| Length | Int32 | カラムのストレージサイズ。 |
| DisplaySize | Int32 | 指定されたカラムの通常の最大幅(文字数)。 |
| NumericPrecision | Int32 | 数値データの最大桁数。文字データおよび日時データの場合は、カラムの長さ(文字数)。 |
| NumericScale | Int32 | カラムのスケール(小数点以下の桁数)。 |
| IsNullable | Boolean | カラムがNull を含められるかどうか。 |
| Description | String | カラムの簡単な説明。 |
| Ordinal | Int32 | カラムのシーケンスナンバー。 |
| IsAutoIncrement | String | カラムに固定増分値が割り当てられるかどうか。 |
| IsGeneratedColumn | String | 生成されたカラムであるかどうか。 |
| IsHidden | Boolean | カラムが非表示かどうか。 |
| IsArray | Boolean | カラムが配列かどうか。 |
| IsReadOnly | Boolean | カラムが読み取り専用かどうか。 |
| IsKey | Boolean | sys_tablecolumns から返されたフィールドがテーブルの主キーであるかどうか。 |
| ColumnType | String | スキーマ内のカラムの役割または分類。可能な値は、SYSTEM、LINKEDCOLUMN、NAVIGATIONKEY、REFERENCECOLUMN、およびNAVIGATIONPARENTCOLUMN が含まれます。 |
利用可能なストアドプロシージャをリストします。
次のクエリは、利用可能なストアドプロシージャを取得します。
SELECT * FROM sys_procedures
| Name | Type | Description |
| CatalogName | String | ストアドプロシージャを含むデータベース。 |
| SchemaName | String | ストアドプロシージャを含むスキーマ。 |
| ProcedureName | String | ストアドプロシージャの名前。 |
| Description | String | ストアドプロシージャの説明。 |
| ProcedureType | String | PROCEDURE やFUNCTION などのプロシージャのタイプ。 |
ストアドプロシージャパラメータについて説明します。
次のクエリは、CreateInvitation ストアドプロシージャのすべての入力パラメータについての情報を返します。
SELECT * FROM sys_procedureparameters WHERE ProcedureName = 'CreateInvitation' AND Direction = 1 OR Direction = 2
パラメータに加えて結果セットのカラムを含めるには、IncludeResultColumns 擬似カラムをTrue に設定します。
SELECT * FROM sys_procedureparameters WHERE ProcedureName = 'CreateInvitation' AND IncludeResultColumns='True'
| Name | Type | Description |
| CatalogName | String | ストアドプロシージャを含むデータベースの名前。 |
| SchemaName | String | ストアドプロシージャを含むスキーマの名前。 |
| ProcedureName | String | パラメータを含むストアドプロシージャの名前。 |
| ColumnName | String | ストアドプロシージャパラメータの名前。 |
| Direction | Int32 | パラメータのタイプに対応する整数値:input (1)。input/output (2)、またはoutput(4)。input/output タイプパラメータは、入力パラメータと出力パラメータの両方になれます。 |
| DataType | Int32 | データ型を示す整数値。この値は、実行時に環境に基づいて決定されます。 |
| DataTypeName | String | データ型の名前。 |
| NumericPrecision | Int32 | 数値データの場合は最大精度。文字データおよび日時データの場合は、カラムの長さ(文字数)。 |
| Length | Int32 | 文字データの場合は、許可される文字数。数値データの場合は、許可される桁数。 |
| NumericScale | Int32 | 数値データの小数点以下の桁数。 |
| IsNullable | Boolean | パラメータがNull を含められるかどうか。 |
| IsRequired | Boolean | プロシージャの実行にパラメータが必要かどうか。 |
| IsArray | Boolean | パラメータが配列かどうか。 |
| Description | String | パラメータの説明。 |
| Ordinal | Int32 | パラメータのインデックス。 |
| Values | String | このパラメータで設定できる値は、このカラムに表示されるものに限られます。指定できる値はカンマ区切りです。 |
| SupportsStreams | Boolean | パラメータがファイルを表すかどうか。ファイルは、ファイルパスとして渡すことも、ストリームとして渡すこともできます。 |
| IsPath | Boolean | パラメータがスキーマ作成操作のターゲットパスかどうか。 |
| Default | String | 何も値が指定されていない場合に、このパラメータで使用される値。 |
| SpecificName | String | 複数のストアドプロシージャが同じ名前を持つ場合、それぞれの同名のストアドプロシージャを一意に識別するラベル。特定の名前を持つプロシージャが1つだけの場合は、その名前がここに単純に反映されます。 |
| IsCDataProvided | Boolean | プロシージャがネイティブのQuickBooks Time プロシージャではなく、CData によって追加 / 実装されているかどうか。 |
| Name | Type | Description |
| IncludeResultColumns | Boolean | 出力にパラメータに加えて結果セットのカラムを含めるかどうか。デフォルトはFalse です。 |
主キーおよび外部キーについて説明します。
次のクエリは、Timesheets テーブルの主キーを取得します。
SELECT * FROM sys_keycolumns WHERE IsKey='True' AND TableName='Timesheets'
| Name | Type | Description |
| CatalogName | String | キーを含むデータベースの名前。 |
| SchemaName | String | キーを含むスキーマの名前。 |
| TableName | String | キーを含むテーブルの名前。 |
| ColumnName | String | キーカラムの名前 |
| IsKey | Boolean | カラムがTableName フィールドで参照されるテーブル内の主キーかどうか。 |
| IsForeignKey | Boolean | カラムがTableName フィールドで参照される外部キーかどうか。 |
| PrimaryKeyName | String | 主キーの名前。 |
| ForeignKeyName | String | 外部キーの名前。 |
| ReferencedCatalogName | String | 主キーを含むデータベース。 |
| ReferencedSchemaName | String | 主キーを含むスキーマ。 |
| ReferencedTableName | String | 主キーを含むテーブル。 |
| ReferencedColumnName | String | 主キーのカラム名。 |
外部キーについて説明します。
次のクエリは、他のテーブルを参照するすべての外部キーを取得します。
SELECT * FROM sys_foreignkeys WHERE ForeignKeyType = 'FOREIGNKEY_TYPE_IMPORT'
| 名前 | タイプ | 説明 |
| CatalogName | String | キーを含むデータベースの名前。 |
| SchemaName | String | キーを含むスキーマの名前。 |
| TableName | String | キーを含むテーブルの名前。 |
| ColumnName | String | キーカラムの名前 |
| PrimaryKeyName | String | 主キーの名前。 |
| ForeignKeyName | String | 外部キーの名前。 |
| ReferencedCatalogName | String | 主キーを含むデータベース。 |
| ReferencedSchemaName | String | 主キーを含むスキーマ。 |
| ReferencedTableName | String | 主キーを含むテーブル。 |
| ReferencedColumnName | String | 主キーのカラム名。 |
| ForeignKeyType | String | 外部キーがインポート(他のテーブルを指す)キーかエクスポート(他のテーブルから参照される)キーかを指定します。 |
主キーについて説明します。
次のクエリは、すべてのテーブルとビューから主キーを取得します。
SELECT * FROM sys_primarykeys
| Name | Type | Description |
| CatalogName | String | キーを含むデータベースの名前。 |
| SchemaName | String | キーを含むスキーマの名前。 |
| TableName | String | キーを含むテーブルの名前。 |
| ColumnName | String | キーカラムの名前。 |
| KeySeq | String | 主キーのシーケンス番号。 |
| KeyName | String | 主キーの名前。 |
利用可能なインデックスについて説明します。インデックスをフィルタリングすることで、より高速なクエリ応答時間でセレクティブクエリを記述できます。
次のクエリは、主キーでないすべてのインデックスを取得します。
SELECT * FROM sys_indexes WHERE IsPrimary='false'
| Name | Type | Description |
| CatalogName | String | インデックスを含むデータベースの名前。 |
| SchemaName | String | インデックスを含むスキーマの名前。 |
| TableName | String | インデックスを含むテーブルの名前。 |
| IndexName | String | インデックス名。 |
| ColumnName | String | インデックスに関連付けられたカラムの名前。 |
| IsUnique | Boolean | インデックスが固有の場合はTrue。そうでない場合はFalse。 |
| IsPrimary | Boolean | インデックスが主キーの場合はTrue。そうでない場合はFalse。 |
| Type | Int16 | インデックスタイプに対応する整数値:statistic (0)、clustered (1)、hashed (2)、またはother (3)。 |
| SortOrder | String | 並べ替え順序:A が昇順、D が降順。 |
| OrdinalPosition | Int16 | インデックスのカラムのシーケンスナンバー。 |
利用可能な接続プロパティと、接続文字列に設定されている接続プロパティに関する情報を返します。
次のクエリは、接続文字列に設定されている、あるいはデフォルト値で設定されているすべての接続プロパティを取得します。
SELECT * FROM sys_connection_props WHERE Value <> ''
| Name | Type | Description |
| Name | String | 接続プロパティ名。 |
| ShortDescription | String | 簡単な説明。 |
| Type | String | 接続プロパティのデータ型。 |
| Default | String | 明示的に設定されていない場合のデフォルト値。 |
| Values | String | 可能な値のカンマ区切りリスト。別な値が指定されていると、検証エラーがスローされます。 |
| Value | String | 設定した値またはあらかじめ設定されたデフォルト。 |
| Required | Boolean | プロパティが接続に必要かどうか。 |
| Category | String | 接続プロパティのカテゴリ。 |
| IsSessionProperty | String | プロパティが、現在の接続に関する情報を保存するために使用されるセッションプロパティかどうか。 |
| Sensitivity | String | プロパティの機密度。これは、プロパティがロギングおよび認証フォームで難読化されているかどうかを通知します。 |
| PropertyName | String | キャメルケースの短縮形の接続プロパティ名。 |
| Ordinal | Int32 | パラメータのインデックス。 |
| CatOrdinal | Int32 | パラメータカテゴリのインデックス。 |
| Hierarchy | String | このプロパティと一緒に設定する必要がある、関連のある依存プロパティを表示します。 |
| Visible | Boolean | プロパティが接続UI に表示されるかどうかを通知します。 |
| ETC | String | プロパティに関するその他のさまざまな情報。 |
Cloud がデータソースにオフロードできるSELECT クエリ処理について説明します。
SQL 構文の詳細については、SQL 準拠 を参照してください。
以下はSQL 機能のサンプルデータセットです。 SELECT 機能のいくつかの側面がサポートされている場合には、カンマ区切りのリストで返されます。サポートされていない場合、カラムにはNO が入ります。
| 名前 | 説明 | 有効な値 |
| AGGREGATE_FUNCTIONS | サポートされている集計関数。 | AVG, COUNT, MAX, MIN, SUM, DISTINCT |
| COUNT | COUNT 関数がサポートされているかどうか。 | YES, NO |
| IDENTIFIER_QUOTE_OPEN_CHAR | 識別子をエスケープするための開始文字。 | [ |
| IDENTIFIER_QUOTE_CLOSE_CHAR | 識別子をエスケープするための終了文字。 | ] |
| SUPPORTED_OPERATORS | サポートされているSQL 演算子。 | =, >, <, >=, <=, <>, !=, LIKE, NOT LIKE, IN, NOT IN, IS NULL, IS NOT NULL, AND, OR |
| GROUP_BY | GROUP BY がサポートされているかどうか。サポートされている場合、どのレベルでサポートされているか。 | NO, NO_RELATION, EQUALS_SELECT, SQL_GB_COLLATE |
| OJ_CAPABILITIES | サポートされている外部結合の種類。 | NO, LEFT, RIGHT, FULL, INNER, NOT_ORDERED, ALL_COMPARISON_OPS |
| OUTER_JOINS | 外部結合がサポートされているかどうか。 | YES, NO |
| SUBQUERIES | サブクエリがサポートされているかどうか。サポートされていれば、どのレベルでサポートされているか。 | NO, COMPARISON, EXISTS, IN, CORRELATED_SUBQUERIES, QUANTIFIED |
| STRING_FUNCTIONS | サポートされている文字列関数。 | LENGTH, CHAR, LOCATE, REPLACE, SUBSTRING, RTRIM, LTRIM, RIGHT, LEFT, UCASE, SPACE, SOUNDEX, LCASE, CONCAT, ASCII, REPEAT, OCTET, BIT, POSITION, INSERT, TRIM, UPPER, REGEXP, LOWER, DIFFERENCE, CHARACTER, SUBSTR, STR, REVERSE, PLAN, UUIDTOSTR, TRANSLATE, TRAILING, TO, STUFF, STRTOUUID, STRING, SPLIT, SORTKEY, SIMILAR, REPLICATE, PATINDEX, LPAD, LEN, LEADING, KEY, INSTR, INSERTSTR, HTML, GRAPHICAL, CONVERT, COLLATION, CHARINDEX, BYTE |
| NUMERIC_FUNCTIONS | サポートされている数値関数。 | ABS, ACOS, ASIN, ATAN, ATAN2, CEILING, COS, COT, EXP, FLOOR, LOG, MOD, SIGN, SIN, SQRT, TAN, PI, RAND, DEGREES, LOG10, POWER, RADIANS, ROUND, TRUNCATE |
| TIMEDATE_FUNCTIONS | サポートされている日付および時刻関数。 | NOW, CURDATE, DAYOFMONTH, DAYOFWEEK, DAYOFYEAR, MONTH, QUARTER, WEEK, YEAR, CURTIME, HOUR, MINUTE, SECOND, TIMESTAMPADD, TIMESTAMPDIFF, DAYNAME, MONTHNAME, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, EXTRACT |
| REPLICATION_SKIP_TABLES | レプリケーション中にスキップされたテーブルを示します。 | |
| REPLICATION_TIMECHECK_COLUMNS | レプリケーション中に更新判断のカラムとして使用するかどうかを、(指定された順に)チェックするカラムのリストを含む文字列の配列。 | |
| IDENTIFIER_PATTERN | 識別子としてどの文字列が有効かを示す文字列値。 | |
| SUPPORT_TRANSACTION | プロバイダーが、コミットやロールバックなどのトランザクションをサポートしているかどうかを示します。 | YES, NO |
| DIALECT | 使用するSQL ダイアレクトを示します。 | |
| KEY_PROPERTIES | Uniform データベースを特定するプロパティを示します。 | |
| SUPPORTS_MULTIPLE_SCHEMAS | プロバイダー用に複数のスキームが存在するかどうかを示します。 | YES, NO |
| SUPPORTS_MULTIPLE_CATALOGS | プロバイダー用に複数のカタログが存在するかどうかを示します。 | YES, NO |
| DATASYNCVERSION | このドライバーにアクセスするために必要な、CData Sync のバージョン。 | Standard, Starter, Professional, Enterprise |
| DATASYNCCATEGORY | このドライバーのCData Sync カテゴリ。 | Source, Destination, Cloud Destination |
| SUPPORTSENHANCEDSQL | API で提供されている以上の、追加SQL 機能がサポートされているかどうか。 | TRUE, FALSE |
| SUPPORTS_BATCH_OPERATIONS | バッチ操作がサポートされているかどうか。 | YES, NO |
| SQL_CAP | このドライバーでサポートされているすべてのSQL 機能。 | SELECT, INSERT, DELETE, UPDATE, TRANSACTIONS, ORDERBY, OAUTH, ASSIGNEDID, LIMIT, LIKE, BULKINSERT, COUNT, BULKDELETE, BULKUPDATE, GROUPBY, HAVING, AGGS, OFFSET, REPLICATE, COUNTDISTINCT, JOINS, DROP, CREATE, DISTINCT, INNERJOINS, SUBQUERIES, ALTER, MULTIPLESCHEMAS, GROUPBYNORELATION, OUTERJOINS, UNIONALL, UNION, UPSERT, GETDELETED, CROSSJOINS, GROUPBYCOLLATE, MULTIPLECATS, FULLOUTERJOIN, MERGE, JSONEXTRACT, BULKUPSERT, SUM, SUBQUERIESFULL, MIN, MAX, JOINSFULL, XMLEXTRACT, AVG, MULTISTATEMENTS, FOREIGNKEYS, CASE, LEFTJOINS, COMMAJOINS, WITH, LITERALS, RENAME, NESTEDTABLES, EXECUTE, BATCH, BASIC, INDEX |
| PREFERRED_CACHE_OPTIONS | 使用したいcacheOptions を指定する文字列値。 | |
| ENABLE_EF_ADVANCED_QUERY | ドライバーがEntity Framework の高度なクエリをサポートしているかどうかを示します。サポートしていなければ、クエリはクライアントサイドで処理されます。 | YES, NO |
| PSEUDO_COLUMNS | 利用可能な疑似カラムを示す文字列の配列。 | |
| MERGE_ALWAYS | 値がtrue であれば、CData Sync 内でMerge Model が強制的に実行されます。 | TRUE, FALSE |
| REPLICATION_MIN_DATE_QUERY | レプリケート開始日時を返すSELECT クエリ。 | |
| REPLICATION_MIN_FUNCTION | サーバーサイドでmin を実行するために使用する式名を、プロバイダーが指定できるようになります。 | |
| REPLICATION_START_DATE | レプリケート開始日を、プロバイダーが指定できるようになります。 | |
| REPLICATION_MAX_DATE_QUERY | レプリケート終了日時を返すSELECT クエリ。 | |
| REPLICATION_MAX_FUNCTION | サーバーサイドでmax を実行するために使用する式名を、プロバイダーが指定できるようになります。 | |
| IGNORE_INTERVALS_ON_INITIAL_REPLICATE | 初回のレプリケートで、レプリケートをチャンクに分割しないテーブルのリスト。 | |
| CHECKCACHE_USE_PARENTID | CheckCache 構文を親キーカラムに対して実行するかどうかを示します。 | TRUE, FALSE |
| CREATE_SCHEMA_PROCEDURES | スキーマファイルの生成に使用できる、ストアドプロシージャを示します。 |
次のクエリは、WHERE 句で使用できる演算子を取得します。
SELECT * FROM sys_sqlinfo WHERE Name = 'SUPPORTED_OPERATORS'
WHERE 句では、個々のテーブルの制限や要件が異なる場合がありますので注意してください。詳しくは、データモデル セクションを参照してください。
| Name | Type | Description |
| NAME | String | SQL 構文のコンポーネント、またはサーバー上で処理できる機能。 |
| VALUE | String | サポートされるSQL またはSQL 構文の詳細。 |
試行された変更に関する情報を返します。
次のクエリは、バッチ処理で変更された行のId を取得します。
SELECT * FROM sys_identity
| Name | Type | Description |
| Id | String | データ変更処理から返された、データベース生成Id。 |
| Batch | String | バッチの識別子。1 は単一処理。 |
| Operation | String | バッチ内の処理の結果:INSERTED、UPDATED、またはDELETED。 |
| Message | String | SUCCESS、またはバッチ内の更新が失敗した場合のエラーメッセージ。 |
利用可能なシステム情報を説明します。
次のクエリは、すべてのカラムを取得します。
SELECT * FROM sys_information
| Name | Type | Description |
| Product | String | 製品名。 |
| Version | String | 製品のバージョン番号。 |
| Datasource | String | 製品が接続するデータソースの名前。 |
| NodeId | String | 製品がインストールされているマシンの固有識別子。 |
| HelpURL | String | 製品のヘルプドキュメントのURL。 |
| License | String | 製品のライセンス情報。(この情報が利用できない場合、この項目は空白のままか「N/A」と表示されます。) |
| Location | String | 製品のライブラリが格納されているファイルパスの場所。 |
| Environment | String | 製品が現在稼働している環境またはランタイムのバージョン。 |
| DataSyncVersion | String | 本コネクタを使用するために必要なCData Sync のティア。 |
| DataSyncCategory | String | CData Sync 機能のカテゴリ(例:Source、Destination)。 |
| プロパティ | 説明 |
| OAuthClientId | カスタムOAuth アプリケーションに割り当てられたクライアントID(コンシューマーキーとも呼ばれます)を指定します。このID は、認証時にOAuth 認可サーバーにアプリケーションを識別させるために必要です。 |
| OAuthClientSecret | カスタムOAuth アプリケーションに割り当てられたクライアントシークレットを指定します。この機密情報は、OAuth 認可サーバーに対してアプリケーションを認証するために使用されます。(カスタムOAuth アプリケーションのみ) |
| プロパティ | 説明 |
| SSLServerCert | TLS/SSL を使用して接続する際に、サーバーが受け入れ可能な証明書を指定します。 |
| プロパティ | 説明 |
| Verbosity | ログファイルのVerbosity レベルを指定し、記録される情報の詳細度を制御します。サポートされる値の範囲は1から5までです。 |
| プロパティ | 説明 |
| BrowsableSchemas | レポートされるスキーマを利用可能なすべてのスキーマのサブセットに制限するオプション設定。例えば、 BrowsableSchemas=SchemaA,SchemaB,SchemaC です。 |
| プロパティ | 説明 |
| IncludeCustomFields | A boolean indicating if you would like to include custom fields in the column listing. |
| MaxRows | 集計やGROUP BY を含まないクエリで返される最大行数を指定します。 |
| Pagesize | provider がQuickBooks Time にデータをリクエストするときに返す、ページあたりの最大レコード数を指定します。 |
| PseudoColumns | テーブルカラムとして公開する擬似カラムを、'TableName=ColumnName;TableName=ColumnName' の形式の文字列で指定します。 |
| RowScanDepth | テーブルで利用可能なカラムを探すためにスキャンする行数の最大値。 |
| Timeout | provider がタイムアウトエラーを返すまでにサーバーからの応答を待機する最大時間を秒単位で指定します。 |
このセクションでは、本プロバイダーの接続文字列で設定可能なOAuth プロパティの全リストを提供します。
| プロパティ | 説明 |
| OAuthClientId | カスタムOAuth アプリケーションに割り当てられたクライアントID(コンシューマーキーとも呼ばれます)を指定します。このID は、認証時にOAuth 認可サーバーにアプリケーションを識別させるために必要です。 |
| OAuthClientSecret | カスタムOAuth アプリケーションに割り当てられたクライアントシークレットを指定します。この機密情報は、OAuth 認可サーバーに対してアプリケーションを認証するために使用されます。(カスタムOAuth アプリケーションのみ) |
カスタムOAuth アプリケーションに割り当てられたクライアントID(コンシューマーキーとも呼ばれます)を指定します。このID は、認証時にOAuth 認可サーバーにアプリケーションを識別させるために必要です。
string
""
このプロパティは2つのケースで必要となります:
(ドライバーが埋め込みOAuth 資格情報を提供する場合、この値はすでにCloud によって設定されており、手動で入力する必要がないことがあります。)
OAuthClientId は、認証付きの接続を構成する際に、OAuthClientSecret やOAuthSettingsLocation などの他のOAuth 関連プロパティと一緒に使用されるのが一般的です。
OAuthClientId は、ユーザーがOAuth 経由で認証を行う前に設定する必要がある、主要な接続パラメータの1つです。 この値は、通常、ID プロバイダーのアプリケーション登録設定で確認できます。 Client ID、Application ID、Consumer Key などとラベル付けされた項目を探してください。
クライアントID は、クライアントシークレットのような機密情報とは見なされませんが、アプリケーションの識別情報の一部であるため、慎重に取り扱う必要があります。公開リポジトリや共有設定ファイルでこの値を露出させないようにしてください。
接続設定時にこのプロパティを使用する方法の詳細については、接続の確立 を参照してください。
カスタムOAuth アプリケーションに割り当てられたクライアントシークレットを指定します。この機密情報は、OAuth 認可サーバーに対してアプリケーションを認証するために使用されます。(カスタムOAuth アプリケーションのみ)
string
""
このプロパティ(アプリケーションシークレットまたはコンシューマシークレットとも呼ばれます)は、安全なクライアント認証を必要とするすべてのフローでカスタムOAuth アプリケーションを使用する場合に必要です。たとえば、Web ベースのOAuth、サービスベースの接続、証明書ベースの認可フローなどが該当します。 組み込みOAuth アプリケーションを使用する場合は必要ありません。
クライアントシークレットは、OAuth フローのトークン交換ステップで使用されます。このステップでは、ドライバーが認可サーバーにアクセストークンを要求します。 この値が欠落しているか正しくない場合、認証はinvalid_client またはunauthorized_client エラーで失敗します。
OAuthClientSecret は、ユーザーがOAuth 経由で認証を行う前に設定する必要がある、主要な接続パラメータの1つです。この値は、OAuth アプリケーションを登録する際にID プロバイダーから取得できます。
Notes:
接続設定時にこのプロパティを使用する方法の詳細については、接続の確立 を参照してください。
このセクションでは、本プロバイダーの接続文字列で設定可能なSSL プロパティの全リストを提供します。
| プロパティ | 説明 |
| SSLServerCert | TLS/SSL を使用して接続する際に、サーバーが受け入れ可能な証明書を指定します。 |
TLS/SSL を使用して接続する際に、サーバーが受け入れ可能な証明書を指定します。
string
""
TLS/SSL 接続を使用している場合は、このプロパティを使用して、サーバーが受け入れるTLS/SSL 証明書を指定できます。このプロパティに値を指定すると、マシンによって信頼されていない他の証明書はすべて拒否されます。
このプロパティは、次のフォームを取ります:
| 説明 | 例 |
| フルPEM 証明書(例では省略されています) | -----BEGIN CERTIFICATE----- MIIChTCCAe4CAQAwDQYJKoZIhv......Qw== -----END CERTIFICATE----- |
| 証明書を保有するローカルファイルへのパス。 | C:\cert.cer |
| 公開鍵(例では省略されています) | -----BEGIN RSA PUBLIC KEY----- MIGfMA0GCSq......AQAB -----END RSA PUBLIC KEY----- |
| MD5 Thumbprint(hex 値はスペースまたはコロン区切り) | ecadbdda5a1529c58a1e9e09828d70e4 |
| SHA1 Thumbprint(hex 値はスペースまたはコロン区切り) | 34a929226ae0819f2ec14b4a3d904f801cbb150d |
Note:'*' を使用してすべての証明書を受け入れるように指定することも可能ですが、セキュリティ上の懸念があるため推奨されません。
このセクションでは、本プロバイダーの接続文字列で設定可能なLogging プロパティの全リストを提供します。
| プロパティ | 説明 |
| Verbosity | ログファイルのVerbosity レベルを指定し、記録される情報の詳細度を制御します。サポートされる値の範囲は1から5までです。 |
ログファイルのVerbosity レベルを指定し、記録される情報の詳細度を制御します。サポートされる値の範囲は1から5までです。
string
"1"
このプロパティは、Cloud がログファイルに含める詳細レベルを定義します。 Verbosity レベルを高くするとログに記録される情報の詳細が増えますが、ログファイルが大きくなり取り込まれるデータが増えるためパフォーマンスが低下する可能性があります。
デフォルトのVerbosity レベルは1で、通常の運用にはこれが推奨されます。 より高いVerbosity レベルは主にデバッグを目的としています。 各レベルの詳細については、ログ を参照してください。
LogModules プロパティと組み合わせることで、Verbosity は特定の情報カテゴリに対するログの詳細度を調整できます。
このセクションでは、本プロバイダーの接続文字列で設定可能なSchema プロパティの全リストを提供します。
| プロパティ | 説明 |
| BrowsableSchemas | レポートされるスキーマを利用可能なすべてのスキーマのサブセットに制限するオプション設定。例えば、 BrowsableSchemas=SchemaA,SchemaB,SchemaC です。 |
レポートされるスキーマを利用可能なすべてのスキーマのサブセットに制限するオプション設定。例えば、 BrowsableSchemas=SchemaA,SchemaB,SchemaC です。
string
""
利用可能なデータベーススキーマをすべてリストすると余分な時間がかかり、パフォーマンスが低下します。 接続文字列にスキーマのリストを指定することで、時間を節約しパフォーマンスを向上させることができます。
このセクションでは、本プロバイダーの接続文字列で設定可能なMiscellaneous プロパティの全リストを提供します。
| プロパティ | 説明 |
| IncludeCustomFields | A boolean indicating if you would like to include custom fields in the column listing. |
| MaxRows | 集計やGROUP BY を含まないクエリで返される最大行数を指定します。 |
| Pagesize | provider がQuickBooks Time にデータをリクエストするときに返す、ページあたりの最大レコード数を指定します。 |
| PseudoColumns | テーブルカラムとして公開する擬似カラムを、'TableName=ColumnName;TableName=ColumnName' の形式の文字列で指定します。 |
| RowScanDepth | テーブルで利用可能なカラムを探すためにスキャンする行数の最大値。 |
| Timeout | provider がタイムアウトエラーを返すまでにサーバーからの応答を待機する最大時間を秒単位で指定します。 |
A boolean indicating if you would like to include custom fields in the column listing.
bool
true
Setting this to true will cause custom fields to be included in the column listing, but may cause poor performance when listing metadata.
集計やGROUP BY を含まないクエリで返される最大行数を指定します。
int
-1
このプロパティのデフォルト値である-1 は、クエリに明示的にLIMIT 句が含まれていない限り、行の制限が適用されないことを意味します。 (クエリにLIMIT 句が含まれている場合、クエリで指定された値がMaxRows 設定よりも優先されます。)
MaxRows を0より大きい整数に設定することで、クエリがデフォルトで過度に大きな結果セットを返さないようにします。
このプロパティは、非常に大きなデータセットを返す可能性のあるクエリを実行する際に、パフォーマンスを最適化し、過剰なリソース消費を防ぐのに役立ちます。
provider がQuickBooks Time にデータをリクエストするときに返す、ページあたりの最大レコード数を指定します。
int
200
クエリを処理する際、QuickBooks Time でクエリされたデータすべてを一度にリクエストする代わりに、Cloud はクエリされたデータをページと呼ばれる部分ごとにリクエストすることができます。
この接続プロパティは、Cloud がページごとにリクエストする結果の最大数を決定します。
Note:大きなページサイズを設定すると全体的なクエリ実行時間が短縮される可能性がありますが、その場合、クエリ実行時にCloud がより多くのメモリを使用することになり、タイムアウトが発生するリスクがあります。
テーブルカラムとして公開する擬似カラムを、'TableName=ColumnName;TableName=ColumnName' の形式の文字列で指定します。
string
""
このプロパティを使用すると、Cloud がテーブルカラムとして公開する擬似カラムを定義できます。
個々の擬似カラムを指定するには、以下の形式を使用します。
Table1=Column1;Table1=Column2;Table2=Column3
すべてのテーブルのすべての擬似カラムを含めるには、次を使用してください:
*=*
テーブルで利用可能なカラムを探すためにスキャンする行数の最大値。
int
100
テーブルのカラムはテーブル行をスキャンすることで決定される必要があります。この値はスキャンされる行数の最大値を設定します。
大きい値を設定すると、パフォーマンスが低下する場合があります。小さい値を設定すると、特にnull データがある場合には、データ型を正しく判定できない場合があります。
provider がタイムアウトエラーを返すまでにサーバーからの応答を待機する最大時間を秒単位で指定します。
int
60
タイムアウトは、クエリや操作全体ではなくサーバーとの個々の通信に適用されます。 例えば、各ページング呼び出しがタイムアウト制限内に完了する場合、クエリは60秒を超えて実行を続けることができます。
タイムアウトはデフォルトで60秒に設定されています。タイムアウトを無効にするには、このプロパティを0に設定します。
タイムアウトを無効にすると、操作が成功するか、サーバー側のタイムアウト、ネットワークの中断、またはサーバーのリソース制限などの他の条件で失敗するまで無期限に実行されます。
Note: このプロパティは慎重に使用してください。長時間実行される操作がパフォーマンスを低下させたり、応答しなくなる可能性があるためです。
LZMA from 7Zip LZMA SDK
LZMA SDK is placed in the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute the original LZMA SDK code, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
LZMA2 from XZ SDK
Version 1.9 and older are in the public domain.
Xamarin.Forms
Xamarin SDK
The MIT License (MIT)
Copyright (c) .NET Foundation Contributors
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
NSIS 3.10
Copyright (C) 1999-2025 Contributors THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
1. DEFINITIONS
"Contribution" means:
a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and b) in the case of each subsequent Contributor:
i) changes to the Program, and
ii) additions to the Program;
where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
"Contributor" means any person or entity that distributes the Program.
"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
"Program" means the Contributions distributed in accordance with this Agreement.
"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
2. GRANT OF RIGHTS
a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
3. REQUIREMENTS
A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
a) it complies with the terms and conditions of this Agreement; and
b) its license agreement:
i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
When the Program is made available in source code form:
a) it must be made available under this Agreement; and
b) a copy of this Agreement must be included with each copy of the Program.
Contributors may not remove or alter any copyright notices contained within the Program.
Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
4. COMMERCIAL DISTRIBUTION
Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
5. NO WARRANTY
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement, including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
6. DISCLAIMER OF LIABILITY
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
7. GENERAL
If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
If Recipient institutes patent litigation against a Contributor with respect to a patent applicable to software (including a cross-claim or counterclaim in a lawsuit), then any patent licenses granted by that Contributor to such Recipient under this Agreement shall terminate as of the date such litigation is filed. In addition, if Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. IBM is the initial Agreement Steward. IBM may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.