Schedules
Create, update, delete, and query Campaign Schedules in SendGrid.
テーブル固有の情報
Select
以下は、Schedules テーブルをクエリする例です。
SELECT * FROM Schedules WHERE MarketingCampaignId = '123'
Insert
MarketingCampaignId とSendAt を指定すると、特定の時間にキャンペーンを設定できます。SendAt を指定するだけですぐにキャンペーンを送信できます。SendGrid でキャンペーンを送信するには、HTML とプレーンテキストの両コンテンツに [unsubscribe] タグが必要です。
INSERT INTO Schedules (MarketingCampaignId) VALUES (3091692)
INSERT INTO Schedules (MarketingCampaignId, SendAt) VALUES (1, '11/11/2018')
Update
MarketingCampaignId を指定することでスケジュールを更新できます。
UPDATE Schedules SET SendAt = '01-01-2016' WHERE MarketingCampaignId = '123'
Delete
MarketingCampaignId を指定することでスケジュールを削除できます。
DELETE FROM Schedules WHERE MarketingCampaignId = '123'
Columns
| Name | Type | ReadOnly | References | Description |
| MarketingCampaignId [KEY] | Integer | False |
Id of the campaign. | |
| Status | String | True |
Status of the campaign. | |
| SendAt | Datetime | False |
Date to start the campaign. |
Pseudo-Columns
SELECT ステートメントのWHERE 句では、疑似カラムフィールドを使用して、データソースから返されるタプルを詳細に制御することができます。
| Name | Type | Description |
| AccountId | String |
The ID of the account. |
| SubuserUsername | String |
The username of the subuser. |