How to pass an array as "Params" to "Send an Email" Brevo Module

Hey there :wave:,

i am trying to pass an array containing collections to the “Params” object in the Brevo “Send an Email” module.

My problem is that the value seems to support only “text”, but i need to pass an array e.g. for order lines.

I tried to use “Map” checkbox to map it manually, but i don’t know how to create the same structure that “Params” requires then.

Screenshots:


Anybody got an idea how to solve that?

Many thanks in advance!

Josh

You should find clue in thier api documentation on what format you need. Another way to try and figure it out is to run the module with some test data and then download the input bundle. The input bundle should be in the structure you need it to be.

Hope this helps!

Thanks for your answer! The format the brevo module requires for params makes my process just more complex.

I just used the HTTP Module instead, which works very well.

1 Like

Hi @josh_th,

Could you give more details on the solution ?

I’m trying to do the same !
Thank you

Hi @Angelo_Blot, sorry for my late response.

Currently there is an outage on eu2.make.com. As soon as i can login into make, i’ll provide more details here.

Hi @josh_th,

Don’t bother, I succeeded last night with this code :

{
   "sender": {
      "email": "test@test.com",
      "name": "Test"
   },
   "templateId": 7,
   "messageVersions": [
      {
         "to": [
            {
               "email": "test@test.com",
               "name": "test"
            }
         ],
         "params": {
            "products": [
               {
                  "name": "Test",
                  "url": "https://test.com"
               },
               {
                  "name": "Test",
                  "url": "https://test.com"
               }
            ]
         }
      }
   ]
}

Thank you,
Angelo

Hi @Angelo_Blot,

i just created a data structure in make, converted it to a json string and passed it to the http module. Here are the screenshots:

Overview:
image

Create JSON module:

Finally, send the mail:

The data structure looks like this:

Hope that helps.

1 Like

Thank you @josh_th ! That helped me a lot !

1 Like