Arrays to 1 email

Hi,

I don’t really get it. I have been trying several things but nothing really works and ChatGPT doesn’t help either. I get the information below from a webhook. I immediately go to an email module because I don’t really want something special.

I want to get the data from the order in the mail. And also a small html table with the IMEI number and Title of each tracker.

I’ve been trying with aggregators but then it sends 2 mails because there are 2 trackers in the list . Any hints?

Bundle content

[
    {
        "order_id": 4276,
        "order_number": "4276",
        "status": "completed",
        "total": "0.00",
        "currency": "EUR",
        "customer": {
            "id": 2,
            "name": "Jens",
            "email": "sales@be.be",
            "phone": "+00000"
        },
        "items": [
            {
                "product_id": 4275,
                "name": "test",
                "quantity": 1,
                "subtotal": "0"
            }
        ],
        "trackers": [
            {
                "id": 4280,
                "title": "test2",
                "imei": "2222222"
            },
            {
                "id": 4274,
                "title": "test",
                "imei": "123456"
            }
        ]
    }
]

Hey there,

As I understand you are trying to go back to one bundle before sending the email right? Change source of the Aggregator module to whichever module is producing the second bundle.

Hello,

Welcome to the community.

In 99.9% of cases, the error you describe is caused by an incorrect source in the aggregator module.

Please find an example of the scenario:

It generates the email template described in your post - of course you must apply styles and formatting: