Skip to content

Commit

Permalink
use subscribe status in contact sink
Browse files Browse the repository at this point in the history
  • Loading branch information
keyn4 committed Jun 18, 2024
1 parent 6b9cb0c commit f901ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target_salesforce_v3/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def preprocess_record(self, record: dict, context: dict):
"Salutation": salutation,
"Birthdate": birthdate,
"OwnerId": record.get("owner_id"),
"HasOptedOutOfEmail": record.get("unsubscribed"),
"HasOptedOutOfEmail": record.get("unsubscribed") or record.get("subscribe_status") == "unsubscribed" if record.get("subscribe_status") else None,
"NumberOfEmployees": record.get("number_of_employees"),
"Website": record.get("website"),
"Industry": industry,
Expand Down

0 comments on commit f901ab2

Please sign in to comment.