MailMoo
ToolsCampaigns

mailmoo_campaign_rerun

Run a campaign's leads again

Runs a campaign's leads again in a new campaign, optionally with the sequence from another campaign. Use for 'run X again', 'rerun X', 'retouch X', or 'run X with the sequence from Y'. It does what a rep does by hand: copies the sequence and its sending schedule from sequenceFrom (default: the campaign's own), enrolls the campaign's leads with their columns, keeps each lead on the sender they already had where that sender can still send, and drops senders with no social account or a disconnected one, unassigning their leads so the remaining senders pick them up. Their sequences still running in the old campaign are stopped. Do Not Contact and blocklisted people are skipped. Campaigns are given by name or id. Without confirm it changes nothing and returns the plan: senders kept and dropped, lead counts, and warnings such as merge fields the copied messages use that the leads have no column for. Show that to the user, then call again with confirm: true. The new campaign is never started: that is campaign_set_state, after the user confirms.

Effect: Write. See Effects.

Permissions: Read campaigns, Write campaigns.

Parameters

ParameterTypeRequiredDescription
campaignstringYesThe campaign whose leads to run again, by name or id.
sequenceFromstringNoThe campaign whose sequence to use, by name or id. Defaults to the campaign's own.
namestringNoName of the new campaign. Defaults to "<campaign> (rerun)".
sendersarray of stringNoOnly when the user asks for different senders: names or ids, used instead of the campaign's own. Ones that cannot send are still dropped.
companystringNoOnly leads whose company name contains this text.
companiesarray of stringNoLeads at any of these companies, by name (contains). Each name counts toward the filter limit. Use instead of company.
columnEqualsarray of objectNoOnly leads whose campaign column holds this value, e.g. [{ column: 'Interested', value: 'true' }]. Needs campaign. Column names from campaign_get_context.
jobTitlestringNoOnly leads whose job title contains this text.
industrystringNoOnly leads whose industry contains this text.
sequenceStatusIN_PROGRESS, COMPLETED, PAUSED, FAILEDNoOnly leads whose sequence is in this state: IN_PROGRESS, COMPLETED, PAUSED, or FAILED.
pipelineStagestringNoOnly leads in this pipeline stage: a category such as IN_CONVERSATION, or a stage name.
excludePipelineStagestringNoLeave out leads in this pipeline stage, e.g. MEETING_BOOKED to skip anyone who already booked.
connectionAcceptedbooleanNotrue: only leads who accepted the connection request. false: only leads who did not. For pending, not accepted or never requested, use connection.
connectionaccepted, pending, declined, never_requestedNoWhere the connection request stands with the lead's sender. accepted: connected. pending: sent, still waiting. declined: sent, and the wait for acceptance ran out without a connection (ignored requests count too). never_requested: no request sent yet. Use instead of connectionAccepted, not with it.
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