Merged
Size
S
Change Breakdown
Feature100%
#5235feat(Salesforce Node): Add HasOptedOutOfEmail field to lead resource

Salesforce leads gain email opt-out tracking

The Salesforce node in n8n now supports the HasOptedOutOfEmail field, letting users flag leads who prefer no marketing emails.

A requested field was missing from n8n's Salesforce integration. Users creating or updating leads had no way to mark prospects as having opted out of email communications — a standard field that Salesforce supports and marketers rely on for compliance. This PR adds that capability. The hasOptedOutOfEmail boolean field now appears alongside other lead properties, with a default of false (meaning the lead does want email). When set to true, the field is passed to Salesforce's API during both lead creation and updates. The field was added to the lead interface in ILead and wired into the create and update handlers in the Salesforce.node.ts file. Businesses can now ensure their n8n workflows respect email preferences and maintain accurate consent records in Salesforce.

View Original GitHub Description
© 2026 · via Gitpulse