Read a campaign
readCampaignOne campaign as it is saved: its name, status, subject and the one it tests, preview line, audience, the brief it was written from, and its body, block by block, in the shape updateCampaign's blocks takes. A products block also has items: what it shows now, prices as the email writes them (one that picks for each reader shows what a reader nobody knows would get). productsLeftOut lists chosen products that will not show. Takes the broadcastId (readCampaigns lists them).
Only for a workspace with subscribed email contacts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| broadcastId | Yes | The campaign, by its id in Kooga | |
| workspaceId | No | The workspace, as listWorkspaces gives it (its id or slug). Leave it out when this connection reaches one workspace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logo | Yes | The logo a header block draws, from the email brand settings; null draws the store's name as text. updateEmailBrand sets it | |
| name | Yes | ||
| brief | Yes | What it was written from, when it was | |
| blocks | Yes | ||
| status | Yes | ||
| subject | Yes | ||
| audience | Yes | 'all', or the segment's name | |
| subjectB | Yes | The subject tested against it; null when there is no test | |
| preheader | Yes | ||
| segmentId | Yes | ||
| broadcastId | Yes | ||
| productsLeftOut | Yes | Chosen products that will not show: unknown here, out of stock, without a page or not on sale |