MailMoo
ToolsCampaigns

mailmoo_campaign_replace_sequence

Replace a campaign's sequence

Replaces an existing campaign's sequence with another campaign's: steps, messages, variants and branches. Only the steps connected to the source's sequence are copied. Use for 'use the sequence from Y in X' or 'replace X's sequence with Y's'. The campaign keeps its own senders and schedule. Refused while the campaign is running; pause it first. Campaigns by name or id. Without confirm it changes nothing and reports the step count, what the new sequence would be missing, and warnings.flowProblems: problems in the source's flow that the copy would bring along, such as a path after a connection request that sends nothing. Show those to the user. A copy whose source has flow errors (warnings.flowHasErrors) is refused unless acceptFlowProblems is true, which only the user can decide; fixing the source first is better, especially before copying it into several campaigns. For a new campaign, use campaign_create with copySequenceFrom, or campaign_rerun.

Effect: Write. See Effects.

Permissions: Read campaigns, Write campaigns.

Parameters

ParameterTypeRequiredDescription
campaignstringYesThe campaign whose sequence to replace, by name or id.
fromstringYesThe campaign whose sequence to use, by name or id.
acceptFlowProblemsbooleanNoCopy even though the source has flow errors (warnings.flowHasErrors). Only when the user has seen them and wants the copy anyway.
confirmbooleanNoLeave out first: the call then changes nothing and returns what would happen. Show that to the user, and call again with confirm: true once they agree.

On this page