Adding new email contacts to Brevo

:bullseye: What is your goal?

Adding new email contacts to Brevo

:thinking: What is the problem & what have you tried?

Hi all, I am new to make and need your help in an issue I am facing. I want to check any new emails coming to my gmail account and add the email address to my brevo account if doesn’t exist there already. I have created the attached scenario but it always executes the error module ignore and doesn’t go to to the router module so a new email address doesn’t get added to brevo.
If I don’t add the error handler then the scenario gives me ‘Document not found error’.
Can someone please help me with this?

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Welcome to the Make community!

That’s what the error directive Resume allows you to do. This should allow you to create a contact if you are unable to get an existing contact.

I explained this in a similar older post Can I skip a module based on a filter? - #3 by samliew

You can learn more about errors in these Make Academy units:

Error handling

  • Errors Overview
  • Error handling directives - Ignore, Rollback, and Commit
  • Retrying automatically - the Break directive
  • Error handling using routers and filters

Hope this helps! If you are still having trouble, please provide more details.

— @samliew
P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

Thank you for your reply. Based on your reply, I changed the scenario as below but now it gives me ‘Document not found’ error on the Get a Contact module. I think I am nearly there but need to make a tweak which I am being unable to figure out.

Thank you for help in advance!

I managed to make the scenario work by adding a resume at the get a contact module. The emails are being added to brevo. See below the final scenario. Let me know please anything I need to change. Thank you for your help again!

Or you could just move the “Create a Contact” module to just before your Resume module, as shown in my screenshot above. This way, you do not need another router module.

Hope this helps! If you are still having trouble, please provide more details.

— @samliew

This is perfect! Thanks for all your help.

If I may ask one more thing. I also want to add the First Name and Last Name to the Brevo contact but the output from Get an Email module only gives ‘From (name)’ which contains the full name. So how can I separate first name and last name from there?

I think I have sorted this out using split() and get() functions. Thank you for all your help!

No problem, glad I could help with "Adding new email contacts to Brevo"!
:slight_smile:

1. Which was the most helpful post in this thread?

The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep this forum organised. :folded_hands:

This marks the topic as solved, so that others can:

  • save time when browsing the latest activity on the forum, and
  • quickly jump to the solution in this topic from the top

To do this, simply click the checkbox at the bottom of the post that is the most helpful in answering your question.

a screenshot of post menu options at the bottom of each post

:link: Here’s a magic link to a list of your other “unsolved” topics: status:unsolved

2. Have you learnt something new?

Do bookmark this topic so you can easily find and return to this topic in future.

a screenshot of bookmark link at the bottom of the topic

:link: Here’s a magic link to a list of your bookmarks /my/activity/bookmarks

3. Have a different/follow-up question? Start a new topic.

Creating a new topic for each question makes it easier for others with the same problem to search for answers. You are also more likely to receive help sooner as new topics are displayed first on the forum’s “new” page!

If you have a follow-up question, please start a new thread. Thanks!

— @samliew