MailMoo
ToolsLeads

mailmoo_leads_enroll

Enroll existing leads in a campaign

Puts leads already in the workspace into a campaign: all of one campaign's leads, a filtered part of them, leads from across the CRM, or specific lead ids. One fresh enrollment per person, with their columns carried over. Do Not Contact and blocklisted people are skipped. Their sequences still running in another campaign are stopped (stopRunningElsewhere: false skips those people instead). senderPolicy keep_where_possible (default) keeps each person on their sender when that sender sends in the destination and unassigns the rest. Campaigns by name or id. Without confirm it changes nothing and returns the counts. Never starts the destination. To build a new campaign first, use campaign_create; to rerun a whole campaign with a new sequence in one step, use campaign_rerun.

Effect: Write. See Effects.

Permissions: Read campaigns, Write campaigns.

Parameters

ParameterTypeRequiredDescription
toCampaignstringYesThe campaign to enroll into, by name or id.
fromCampaignstringNoTake leads from this campaign, by name or id. Omit to select across the whole CRM.
leadIdsarray of stringNoExactly these leads. Overrides the filters.
querystringNoSearch box text: name, email, company, or profile URL.
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.
senderPolicykeep_where_possible, keep, reassignNokeep_where_possible (default): keep senders who send in the destination, unassign the rest. keep: change no owners. reassign: unassign everyone.
stopRunningElsewherebooleanNoDefault true: stop these people's sequences running in other campaigns. false: skip those people instead.
carryOverColumnsbooleanNoDefault true: bring the source campaign's columns, AI output included.
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