Skip to content

Commit

Permalink
Brevo: improve list of fields sent to Company CRM
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed May 22, 2024
1 parent dec3141 commit 49253d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lemarche/utils/apis/api_brevo.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ def create_or_update_company(siae):
siae_brevo_company_body = sib_api_v3_sdk.Body(
name=siae.name,
attributes={
# default attributes
# name, owner, linked_contacts, revenue, number_of_employees, created_at, last_updated_at, next_activity_date, owner_assign_date, number_of_contacts, number_of_activities, industry # noqa
"domain": siae.website,
"phone_number": str(siae.contact_phone),
# custom attributes
"app_id": siae.id,
"siae": True,
"active": siae.is_active,
Expand All @@ -92,8 +97,6 @@ def create_or_update_company(siae):
"address_post_code": siae.post_code,
"address_city": siae.city,
"contact_email": siae.contact_email,
"contact_phone": siae.contact_phone,
"domain": siae.website,
"logo_url": siae.logo_url,
"geo_range": siae.geo_range,
"app_url": get_object_share_url(siae),
Expand Down

0 comments on commit 49253d4

Please sign in to comment.