I have a journey with a SF data as entry source, this journey captures new contacts created in SF using SFMC connector. On Salesforce, when a contact is created, the initial state of emailoptout is TRUE which result in subscriber unsubscribes from ALL Contacts. When I search for any contacts (who entered the above journey) i get the following "This subscriber is unsubscribed from the enterprise level and cannot be activated from this business unit." i also noticed that the unsubscribe date is equal to creation date.
I have managed to pull those unsubscribers using the following SQL Query
SELECT sub.SubscriberKey,sub.Status, sfob.HasOptedOutOfEmail,sub.DateJoined,sub.DateUnsubscribed
FROM ent._Subscribers sub
LEFT JOIN
(SELECT con.Id, con.Email, con.HasOptedOutOfEmail FROM ent.Contact_Salesforce con) sfob
ON sub.SubscriberKey = sfob.Id
WHERE
sub.Status = 'unsubscribed' AND
sfob.HasOptedOutOfEmail = 'FALSE' AND
sub.DateJoined = sub.DateUnsubscribed
How can I update the all subscribers with this info?