CustomFields
Create, delete, and query Custom Fields in SendGrid.
テーブル固有の情報
カスタムフィールドは、ユーザーにより指定された受信者を分類するフィルタです。
Select
すべてのCustomFields の取得、またはId でのフィルタが可能です。
SELECT * FROM CustomFields WHERE Id = '1'
タイプに関係なく、Custom Fields をフィルタするには引用符を使用します。
Insert
CustomFields に挿入するには、フィールド名とその種類の指定が必要です。タイプは、text、date、およびnumber が使用できます。
INSERT INTO CustomFields (name, type) VALUES ('age', 'number')
Update
このテーブルは、アップデートをサポートしていません。
Delete
Id を指定することでCustomFields から削除できます。
DELETE FROM CustomFields WHERE Id = '1'
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | False |
The Id of the custom field. | |
| Name | String | False |
The name of the custom field. | |
| Type | String | False |
The type of the custom field. Allowed values are number, text, or date. |
Pseudo-Columns
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| AccountId | String |
The ID of the account. |
| SubuserUsername | String |
The username of the subuser. |