Contact Us

June 7, 2024

May 13, 2026 2:14 pm

Understanding the hasoptedoutofemail field in Salesforce Marketing Cloud

Share with

Watch related videos on YouTube — Search results for: Understanding the hasoptedoutofemail field in Salesforce Marketing Cloud

Understanding the HasOptedOutOfEmail Field

The HasOptedOutOfEmail field is used by Pardot to track a lead’s or contact’s email preference. However, in Marketing Cloud Next, this field is not utilized. Instead, Marketing Cloud Next relies on its own subscription management system to track a subscriber’s opt-in and opt-out status.

The root cause of the confusion is the difference in how Pardot and Marketing Cloud Next handle consent and subscription management. While Pardot uses the HasOptedOutOfEmail field, Marketing Cloud Next uses its own subscription lists and opt-in/opt-out mechanisms.

To create a segment using a subscription OPT_IN and avoid individuals with HasOptedOutOfEmail as true, you need to use the Marketing Cloud Next subscription management system. You can create a subscription list and add subscribers to it, and then use the subscription list to create a segment.

Syncing Pardot and Marketing Cloud Next Consent

If you want to sync Pardot’s and MCN Consent, you can use the Consent Syncing feature, which is an out-of-the-box feature in Marketing Cloud Next. This feature allows you to sync the consent status between Pardot and Marketing Cloud Next, ensuring that the consent status is consistent across both systems.

example.apxt

// Example code to sync Pardot and MCN Consent
// using the Consent Syncing feature
ConsentSync sync = new ConsentSync();
sync.syncConsent(leadId, contactId);

Heads up: make sure to configure the Consent Syncing feature correctly to ensure that the consent status is synced correctly between Pardot and Marketing Cloud Next.

Best Practices

Checklist for Creating a Segment using Subscription OPT_IN

  • Create a subscription list in Marketing Cloud Next
  • Add subscribers to the subscription list
  • Use the subscription list to create a segment
  • Use the Consent Syncing feature to sync Pardot and MCN Consent
  • Test the segment to ensure it is working correctly
  • Monitor the segment regularly to ensure it remains up-to-date

What is the HasOptedOutOfEmail field used for?

The HasOptedOutOfEmail field is used by Pardot to track a lead’s or contact’s email preference.

How do I sync Pardot and MCN Consent?

You can use the Consent Syncing feature, which is an out-of-the-box feature in Marketing Cloud Next.

What is the difference between Pardot and Marketing Cloud Next subscription management?

Pardot uses the HasOptedOutOfEmail field, while Marketing Cloud Next uses its own subscription lists and opt-in/opt-out mechanisms.

Can I use the HasOptedOutOfEmail field to create a segment in Marketing Cloud Next?

No, you should use the Marketing Cloud Next subscription management system to create a segment.

Genetrix Technology · Salesforce Marketing Cloud Partner

Need help shipping this in production?

Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.

Get in Touch with Genetrix →

Blogs for the

Business-Savvy!​

Let’s Connect

A 30 min no cost strategy session
with cloud support expert

Let’s Connect

A 30 min no cost strategy session
with cloud support expert