Webhook payload to gmail

Hi guys,

I have a webhook payload that looks like this.

But when I want to see the specific field values on the gmail they do not get showed.

How can I fix this?

Welcome to the Make community!

This is because field_values is an array.

To be able to individually map the values, you’ll need to first convert it to a collection using the toCollection built-in function.


Links

Here are some useful links and guides to help you get started and learn more on how to use the Make platform, apps, and app modules —

General

Help Center Basics

Articles & Videos

3 Likes

I tried this, but didn’t work

How should I use this tool?

Hey There @Esben , try using the get() function to extract the name and values out of the “field_values” array .
Example - get(data.field_values;“raw name of the name field”),
let me know if this helps.

1 Like

The name and value is a plain text string. You do not add any mapped variables.

Please follow my screenshot exactly.

2 Likes

How do I then choose between the values?

Your variable name field is incorrect. Type it in, following my screenshot.

2 Likes

tage one saying “1.data.field_values” right? How do I set that in like you have done?

Only for that variable, you select it from the variables list. The rest has to be typed in manually.

Screenshot_2024-01-11_200104

2 Likes

This is the output I get

And this is the options I have for adding the values

Make sure you do not have any spaces before or after the value.

2 Likes

isnt this correct?
Skærmbillede 2024-01-11 kl. 13.44.17

this is how it looks when I run the module

Skærmbillede 2024-01-11 kl. 13.47.38

You can’t run the module only. Try setting each variable like this

{{first(map(1.field_values; "value"; "name"; "Namen"))}}

{{first(map(1.field_values; "value"; "name"; "Bestellnummer"))}}

{{first(map(1.field_values; "value"; "name"; "Email"))}}

{{join(first(map(1.field_values; "value"; "name"; "Grund")); ", ")}}

2 Likes

How do I add this???

made it work! Thank you so much

2 Likes

If I want to upload a picture that comes with the webhook output how can I the do it? The output image is a link to the picture. But can I somehow download it and the upload it?

How does the picture get sent over the webhook? Is it binary data or a URL?

If it’s a URL you can use HTTP Get a File module.

2 Likes

Hi again, Make didn’t let me answer yesterday.

how can I make this webhook output

Be the output of this tool

If this makes sense