Ask Search:
David EllisDavid Ellis 

Email opt in/out in salesforce and pardot

Hi all,

Can anyone point me in the right direction?

We have sales folk that work in Salesforce and when talking to customers if they have the salesforce do not email flag checked they will persude them to opt back in and uncheck the flag. However Pardot doesn't take any notice of this. What I have to do is opt the person in in Pardot and then quickly go to the salesforce record and take the do not email flag off. If I don't do it quickly then the flag updates back in pardot.(I suppose I am getting in before a sync).

Surely this can't be the only way to do this even if I give my sales people accesss to Pardot the process is a bit convoluted.

What are other people doing?
Ines GarciaInes Garcia
Hi David,

'Do not Email' field isn't synced by default to salesforce. However, it can be mapped to a Salesforce custom field.
** Email Opt Out. Note: On the prospect record, this field appears as Prospect Opted Out.

Pardot field mapping:
Difference of no email fields:

Once you are certain that you want to map these two fields together you can override the settings via the Admin menu in Pardot.  Here is a link to the step-by-step guide that shows you where you go to make the change.

Once in the 'Edit' screen on the default field, select the desired 'CRM Field Name' to sync the values between the two fields. After the new field is selected, save the changes and you should be set.  You will probably have to initiate a sync between the two systems for the values to be updated -- see the following for details on which actions in Pardot or Salesforce will trigger a sync between the systems.

Hope this helps :)

Ines GarciaInes Garcia
Hi David, 

Hope any of the answers helped, if so could you please select one of the responses as 'Best Answer'?

The selected 'Best Answer' is used to highlight the response to your question that has helped the most, so that when someone else looks at similar questions in the future quickly can identify the answer :)

Otherwise let us know where are you at so we can further assist?
Ines GarciaInes Garcia

Hi David, not sure why this answe shows now on recent... but how did you go aorund it then? did that help?
Mercedes Belandria GarciaMercedes Belandria Garcia
Hi Ines, 
Pardot resolved this issue you just need to check the 'Overwrite Prospect Opted Out field' in the Salesforce connector configuration.
Ines GarciaInes Garcia
Oh do you work with David?
Mercedes Belandria GarciaMercedes Belandria Garcia

Do you mean David Ellis who originally asked the question? No, I don't work with him.
Ines GarciaInes Garcia
ohh, ok, it was to ask him to mark best question or post his outcome here. :)
Thanks for sharing anways. Happy Trailblazing!
Luzmín Fernández-SaldañaLuzmín Fernández-Saldaña

I tried mapping this field to a custom field I created in the contacts object following the instructions from Ines and when I mapped the field in Pardot all the prospects showed this sync error in Pardot: system.finalexception: execution of afterupdate caused by record is read-only ()  Any clues as to why this is happening?
Ines GarciaInes Garcia
Hi Luzmin,
Is generally best to post a new question than in an old one. As you will have more visibility and response here in the community.
But just quickly do check the integration user record access, seems read only if you want to update will need edit.
Hope this makes sense,
Luzmín Fernández-SaldañaLuzmín Fernández-Saldaña
Thank you Ines. I will open a ticket with Salesforce since the documentation I have found on this is poor.