Magidoc

addCampaignFollowUp
Mutation

Adds a follow-up step to an existing campaign. The step sends automatically: each person who got the campaign's email and has not replied, opted out or bounced gets the body as a reply in their original thread, delayAmount delayUnit after the last campaign email they got. Saving it is the approval to send, so confirm the body and timing with the user first. Following up with people a campaign already emailed is a step on that campaign. With emailRules instead of a body, the step is drafted per person like the first email: Draft emails (draftCampaignEmailsForRows) writes each person's email for it together with their first email, and launching that first email approves it. To set up a whole sequence before drafting, prefer draftCampaignEmailsForRows' followUps. A person drafted before the step existed waits on it until their emails are drafted again. Access: caller must have CRM access to the campaign workspace. For a body, the caller must also be the sender of the campaign email of every person the step goes to, or a send delegate of that sender (the rule for launching campaign emails). A person who joins later gets the step only if their sender, or a send delegate of that sender, last approved it; otherwise their send fails. Errors: missing campaign, both or neither of body and emailRules, emailRules without generationInstructions, an empty body or one over 5000 characters of HTML, a delay outside 1 to 60, a campaign that already has 10 follow-up steps, or, for a body, a caller who is not the sender or a send delegate for everyone the step goes to.

Arguments

#

input

Non-null

Response

#

Returns Campaign !.

Example

#