1. Filter incorrect
I think your filter is incorrect,
You are comparing the variable mappingKey
to
Yes, you are welcome to add me to your email
but the value coming from the webhook is
marketing-consent
So it will never allow the bundle through
2. Get specific collection from an array
You need to change your filter 1. customValues[ ]: mappingKey
to
{{ first(map(1.customValues; "value"; "mappingKey"; "marketing-consent")) }}
This means that you want to get the “value”, where “mappingKey” is equal to “marketing-consent”. The map
function returns an array, so you want to get the single/first item by using the first
function.
For more information on how to map values within arrays, see Mapping with arrays below
Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —
General
- Help Center | Tutorials
- Make Academy – learn Make and get your certificate
- Discord Server – join us in live chat for fans of Make!
Help Center Basics
- Mapping – What is mapping? What can I map?
- Mapping with arrays – How to map items in an array
- Aggregate an array for mapping complex fields
- Tokens for
parseDate
| Tokens forformatDate
- HTTP modules – Make a request, Get (download) a file
- Webhooks – Error Handling, Responding to webhooks
Articles & Videos
- Router Magic Formula - YouTube
- Error Handlers in Make - YouTube playlist
- Getting started with OpenAI
- How to use Regex in Make
samliew – request private consultation
Join the unofficial Make Discord server to chat with other makers!