TableDraftByTableIdOrName |
Get details for a draft tableGet the details for the draft version of a specific HubDB table. This will include the definitions for the columns in the table and the number of rows in the table.
Catalog: Hubdb3
Schema: Tables
Label: {res:itgen_hubspot_tabledraftbytableidorname_plural}
This is a read-only table function. The HubSpot API may not support changing the data or the Invantive UniversalSQL driver for HubSpot does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the HubSpot API.
Parameters of Table Function
The following parameters can be used to control the behaviour of the table function TableDraftByTableIdOrName. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.
Name |
Data Type |
Required |
Default Value |
Documentation |
---|---|---|---|---|
archived |
boolean |
☐ |
|
Set this to `true` to return an archived table. Defaults to `false`. |
includeForeignIds |
boolean |
☐ |
|
Set this to `true` to populate foreign ID values in the result. |
isGetLocalizedSchema |
boolean |
☐ |
|
|
tableIdOrName |
string |
☑ |
|
The ID or name of the table to return. |
Columns of Table Function
The columns of the table function TableDraftByTableIdOrName are shown below. Each column has an SQL data type.
Name |
Data Type |
Label |
Required |
Documentation |
---|---|---|---|---|
allowChildTables |
boolean |
Allow Child Tables |
☐ |
Specifies whether child tables can be created |
allowPublicApiAccess |
boolean |
Allow Public API Access |
☐ |
Specifies whether the table can be read by public without authorization |
columnCount |
int32 |
Column Count |
☐ |
Number of columns including deleted |
createdAt |
datetime |
Created at |
☐ |
Timestamp at which the table is created |
createdBy_email |
string |
Created by Email |
☐ |
|
createdBy_firstName |
string |
Created by First Name |
☐ |
|
createdBy_id |
string |
Created by ID |
☐ |
|
createdBy_lastName |
string |
Created by Last Name |
☐ |
|
deleted |
boolean |
Deleted |
☐ |
|
dynamicMetaTags |
string |
Dynamic Meta Tags |
☐ |
Specifies the key value pairs of the [metadata fields](https://developers.hubspot.com/docs/cms/guides/dynamic-pages/hubdb#dynamic-pages) with the associated column IDs. |
enableChildTablePages |
boolean |
Enable Child Table Pages |
☐ |
Specifies creation of multi-level dynamic pages using child tables |
id |
string |
ID |
☐ |
Id of the table |
isOrderedManually |
boolean |
Is Ordered Manually |
☐ |
|
label |
string |
Label |
☐ |
Label of the table |
name |
string |
Name |
☐ |
Name of the table |
published |
boolean |
Published |
☐ |
|
publishedAt |
datetime |
Published at |
☐ |
Timestamp at which the table is published recently |
rowCount |
int32 |
Row Count |
☐ |
Number of rows in the table |
updatedAt |
datetime |
Updated at |
☐ |
Timestamp at which the table is updated recently |
updatedBy_email |
string |
Updated by Email |
☐ |
|
updatedBy_firstName |
string |
Updated by First Name |
☐ |
|
updatedBy_id |
string |
Updated by ID |
☐ |
|
updatedBy_lastName |
string |
Updated by Last Name |
☐ |
|
useForPages |
boolean |
Use for Pages |
☐ |
Specifies whether the table can be used for creation of dynamic pages |
18-12-2024 20:09 Version 24.1.33-BETA+5180