Running into a bundle validation error

What are you trying to achieve?

Send an email with Brevo based on a webhook from Creem. Please see blueprint below and screenshot attached. What am I doing wrong???

{
“name”: “Integration Webhooks, Brevo”,
“flow”: [
{
“id”: 4,
“module”: “gateway:CustomWebHook”,
“version”: 1,
“parameters”: {
“hook”: 1119067,
“maxResults”: 1
},
“mapper”: {},
“metadata”: {
“designer”: {
“x”: 0,
“y”: 0
},
“restore”: {
“parameters”: {
“hook”: {
“data”: {
“editable”: “true”
},
“label”: “test-new-purchase-email-webhook”
}
}
},
“parameters”: [
{
“name”: “hook”,
“type”: “hook:gateway-webhook”,
“label”: “Webhook”,
“required”: true
},
{
“name”: “maxResults”,
“type”: “number”,
“label”: “Maximum number of results”
}
],
“interface”: [
{
“name”: “id”,
“type”: “text”
},
{
“name”: “eventType”,
“type”: “text”
},
{
“name”: “created_at”,
“type”: “number”
},
{
“name”: “object”,
“spec”: [
{
“name”: “id”,
“type”: “text”
},
{
“name”: “object”,
“type”: “text”
},
{
“name”: “product”,
“spec”: [
{
“name”: “id”,
“type”: “text”
},
{
“name”: “object”,
“type”: “text”
},
{
“name”: “name”,
“type”: “text”
},
{
“name”: “description”,
“type”: “text”
},
{
“name”: “price”,
“type”: “number”
},
{
“name”: “currency”,
“type”: “text”
},
{
“name”: “billing_type”,
“type”: “text”
},
{
“name”: “billing_period”,
“type”: “text”
},
{
“name”: “status”,
“type”: “text”
},
{
“name”: “tax_mode”,
“type”: “text”
},
{
“name”: “tax_category”,
“type”: “text”
},
{
“name”: “default_success_url”,
“type”: “text”
},
{
“name”: “created_at”,
“type”: “text”
},
{
“name”: “updated_at”,
“type”: “text”
},
{
“name”: “mode”,
“type”: “text”
}
],
“type”: “collection”
},
{
“name”: “customer”,
“spec”: [
{
“name”: “id”,
“type”: “text”
},
{
“name”: “object”,
“type”: “text”
},
{
“name”: “email”,
“type”: “text”
},
{
“name”: “name”,
“type”: “text”
},
{
“name”: “country”,
“type”: “text”
},
{
“name”: “created_at”,
“type”: “text”
},
{
“name”: “updated_at”,
“type”: “text”
},
{
“name”: “mode”,
“type”: “text”
}
],
“type”: “collection”
},
{
“name”: “items”,
“spec”: {
“spec”: [
{
“name”: “object”,
“type”: “text”
},
{
“name”: “id”,
“type”: “text”
},
{
“name”: “product_id”,
“type”: “text”
},
{
“name”: “price_id”,
“type”: “text”
},
{
“name”: “units”,
“type”: “number”
},
{
“name”: “created_at”,
“type”: “text”
},
{
“name”: “updated_at”,
“type”: “text”
},
{
“name”: “mode”,
“type”: “text”
}
],
“type”: “collection”
},
“type”: “array”
},
{
“name”: “collection_method”,
“type”: “text”
},
{
“name”: “status”,
“type”: “text”
},
{
“name”: “current_period_start_date”,
“type”: “text”
},
{
“name”: “current_period_end_date”,
“type”: “text”
},
{
“name”: “canceled_at”,
“type”: “text”
},
{
“name”: “created_at”,
“type”: “text”
},
{
“name”: “updated_at”,
“type”: “text”
},
{
“name”: “mode”,
“type”: “text”
}
],
“type”: “collection”
}
]
}
},
{
“id”: 6,
“module”: “sendinblue:SendEmail”,
“version”: 2,
“parameters”: {
IMTCONN”: 4564087
},
“mapper”: {
“to”: “[\n {\n "email": "{{4.object.customer.email}}"\n }\n]”,
“sender”: {},
“replyTo”: {
“name”: “Molly & Adam”,
“email”: “contact@astramedia.app”
},
“templateId”: 2
},
“metadata”: {
“designer”: {
“x”: 300,
“y”: 0
},
“restore”: {
“expect”: {
“cc”: {
“mode”: “chose”
},
“to”: {
“mode”: “edit”
},
“bcc”: {
“mode”: “chose”
},
“tags”: {
“mode”: “chose”
},
“params”: {
“mode”: “chose”
},
“headers”: {
“mode”: “chose”
},
“attachment”: {
“mode”: “chose”
},
“templateId”: {
“mode”: “chose”,
“label”: “Purchase Confirmation”
}
},
“parameters”: {
IMTCONN”: {
“data”: {
“scoped”: “true”,
“connection”: “sendinblue2”
},
“label”: “My Brevo connection”
}
}
},
“parameters”: [
{
“name”: “IMTCONN”,
“type”: “account:sendinblue2”,
“label”: “Connection”,
“required”: true
}
],
“expect”: [
{
“name”: “templateId”,
“type”: “select”,
“label”: “Template”
},
{
“name”: “to”,
“spec”: [
{
“name”: “name”,
“type”: “text”,
“label”: “Name”
},
{
“name”: “email”,
“type”: “email”,
“label”: “Email”,
“required”: true
}
],
“type”: “array”,
“label”: “To”,
“required”: true
},
{
“name”: “subject”,
“type”: “text”,
“label”: “Subject”
},
{
“name”: “htmlContent”,
“type”: “text”,
“label”: “HTML body”
},
{
“name”: “textContent”,
“type”: “text”,
“label”: “Text body”
},
{
“name”: “replyTo”,
“spec”: [
{
“name”: “name”,
“type”: “text”,
“label”: “Name”
},
{
“name”: “email”,
“type”: “email”,
“label”: “Email”,
“required”: true
}
],
“type”: “collection”,
“label”: “Reply To”,
“required”: true
},
{
“name”: “attachment”,
“spec”: [
{
“name”: “type”,
“type”: “select”,
“label”: “Type”,
“options”: [
{
“label”: “URL”,
“value”: “url”,
“nested”: [
{
“name”: “fileName”,
“type”: “filename”,
“label”: “File name”,
“required”: true
},
{
“name”: “url”,
“type”: “url”,
“label”: “Image URL”,
“required”: true
}
]
},
{
“label”: “Data”,
“value”: “data”,
“nested”: [
{
“name”: “fileName”,
“type”: “filename”,
“label”: “File name”,
“required”: true,
“semantic”: “file:name”
},
{
“name”: “data”,
“type”: “buffer”,
“label”: “Data”,
“required”: true,
“semantic”: “file:data”
}
]
}
],
“required”: true
}
],
“type”: “array”,
“label”: “Attachments”
},
{
“name”: “bcc”,
“spec”: [
{
“name”: “name”,
“type”: “text”,
“label”: “Name”
},
{
“name”: “email”,
“type”: “email”,
“label”: “Email”
}
],
“type”: “array”,
“label”: “BCC”
},
{
“name”: “cc”,
“spec”: [
{
“name”: “name”,
“type”: “text”,
“label”: “Name”
},
{
“name”: “email”,
“type”: “email”,
“label”: “Email”
}
],
“type”: “array”,
“label”: “CC”
},
{
“name”: “sender”,
“spec”: [
{
“name”: “name”,
“type”: “text”,
“label”: “Name”
},
{
“name”: “email”,
“type”: “email”,
“label”: “Email”
}
],
“type”: “collection”,
“label”: “Sender”
},
{
“name”: “headers”,
“spec”: [
{
“name”: “name”,
“type”: “text”,
“label”: “Name”,
“required”: true
},
{
“name”: “value”,
“type”: “text”,
“label”: “Value”,
“required”: true
}
],
“type”: “array”,
“label”: “Headers”
},
{
“name”: “tags”,
“spec”: {
“name”: “value”,
“type”: “text”
},
“type”: “array”,
“label”: “Tags”
},
{
“name”: “params”,
“spec”: [
{
“name”: “name”,
“type”: “text”,
“label”: “Name”,
“required”: true
},
{
“name”: “value”,
“type”: “text”,
“label”: “Value”,
“required”: true
}
],
“type”: “array”,
“label”: “Params”
}
]
}
}
],
“metadata”: {
“instant”: true,
“version”: 1,
“scenario”: {
“roundtrips”: 1,
“maxErrors”: 3,
“autoCommit”: true,
“autoCommitTriggerLast”: true,
“sequential”: false,
“slots”: null,
“confidential”: false,
“dataloss”: false,
“dlq”: true,
“freshVariables”: false
},
“designer”: {
“orphans”:
},
“zone”: “us2.make.com”,
“notes”:
}
}

Steps taken so far

Tried it a few different ways.

Mappings
To [
{
“email”: “4. customer: email”
}
]

Screenshots: scenario setup, module configuration, errors

1 Like

I was able to fix this with the help of chatgpt!

You need to click “Add item” and enter your mapping like this:

  1. Enable “Map” (already on).
  2. Click + Add item under the To field.
  3. A form will appear for Email and Name.
1 Like

Heyy @Astra_Media Welcome to the community!

Pleas share output for this field : 4.object.customer.email

It looks like you just need to use split function to split the email addresses if they are available in comma separated string in To field for email addresses as it will create valid array of email addresses. It will be like {{split(4.object.customer.email; ",")}} you can copy paste this in input.

Best,
@Prem_Patel

1 Like