ToolsLeads
mailmoo_leads_set_fields
Set a different column value on each lead
Writes campaign columns from a list of rows, each with its own values, matched on leadId. Use this when a sheet has a different message per lead. It does not create leads and does not move their sequence. Null or an empty string clears a cell. Line breaks are kept. Without confirm it changes nothing and returns how many cells would change. One campaign.
Effect: Write. See Effects.
Permissions: Read campaigns, Write campaigns.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
campaign | string | Yes | The campaign, by name or id. |
rows | array of object | Yes | One row per lead. At most 1000. |
confirm | boolean | No | Leave 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. |

