Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Brevo): Mieux gérer la mises à jour des contacts Brevo (et envoyer le téléphone) #1230

Merged
merged 3 commits into from
May 24, 2024

Conversation

raphodn
Copy link
Contributor

@raphodn raphodn commented May 22, 2024

Quoi ?

Dans #1178 on a créé la management command crm_brevo_sync_contacts qui permet d'ajouter des utilisateurs à des listes.

Grâce à #1215 on a maintenant un champ User.phone qui est propre et prêt à être envoyé à Brevo

J'ai donc amélioré la fonction api_brevo.create_contact() (qui gère par défaut la mise à jour) pour envoyer le téléphone de l'utilisateur

Commande à lancer ensuite

python manage.py crm_brevo_sync_contacts --kind-users=BUYER --brevo-list-id=10
python manage.py crm_brevo_sync_contacts --kind-users=SIAE --brevo-list-id=23

Copy link
Contributor

@SebastienReuiller SebastienReuiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG !

@raphodn raphodn force-pushed the raphodn/brevo-sync-siae-v2 branch from 0ead02d to a3cb3ec Compare May 24, 2024 12:54
Base automatically changed from raphodn/brevo-sync-siae-v2 to master May 24, 2024 13:00
@raphodn raphodn force-pushed the raphodn/brevo-create-contact-v2 branch from 9bc1291 to 408679c Compare May 24, 2024 13:01
@raphodn raphodn force-pushed the raphodn/brevo-create-contact-v2 branch from 98d07d1 to 25c3baf Compare May 24, 2024 13:19
@raphodn raphodn merged commit 539d00f into master May 24, 2024
8 checks passed
@raphodn raphodn deleted the raphodn/brevo-create-contact-v2 branch May 24, 2024 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants