niwayandm commited on
Commit
fcb4e9c
·
1 Parent(s): 03810ee

Added additional property to emails

Browse files
Files changed (1) hide show
  1. python/hubspot_emails.py +2 -0
python/hubspot_emails.py CHANGED
@@ -70,6 +70,7 @@ supabase_client = create_client(SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY)
70
  EMAIL_PROPERTIES = [
71
  "hs_email_from_email",
72
  "hs_email_to_email",
 
73
  "hs_email_subject",
74
  "hs_email_direction",
75
  "hs_email_text",
@@ -284,6 +285,7 @@ def read_emails_by_ids(
284
  "normalized_subject": normalize_subject(props.get("hs_email_subject")),
285
  "from_email": props.get("hs_email_from_email") or "",
286
  "to_emails": parse_emails(props.get("hs_email_to_email")),
 
287
  "sent_at": sent_at_iso,
288
  "direction": props.get("hs_email_direction"),
289
  "email_content": cleaned,
 
70
  EMAIL_PROPERTIES = [
71
  "hs_email_from_email",
72
  "hs_email_to_email",
73
+ "hs_email_cc_email",
74
  "hs_email_subject",
75
  "hs_email_direction",
76
  "hs_email_text",
 
285
  "normalized_subject": normalize_subject(props.get("hs_email_subject")),
286
  "from_email": props.get("hs_email_from_email") or "",
287
  "to_emails": parse_emails(props.get("hs_email_to_email")),
288
+ "cc_emails": parse_emails(props.get("hs_email_cc_email")),
289
  "sent_at": sent_at_iso,
290
  "direction": props.get("hs_email_direction"),
291
  "email_content": cleaned,