For each sale made, a specific email to a specific person should be sent via a master data trigger

Hello, my need is that when a specific SKU is sold, an email should be sent with some customer/order data to the team that will handle that particular item.

I configured a trigger in Master Data using the VTEX documentation

However, the email is not being sent, even though some of those SKUs have already been sold after the trigger was configured.

The configuration is as follows:

Data entity: order
Rules:
Trigger rule: A record is created
Additional filter: Skus > greater than or equal to > 123456789
Schedule:
Run as soon as possible
If positive:
Action: Send an email
Static recipient: exemplo@mail.com
Email body format: Text
Sender name: Example Name
Content type: Content
Subject: item sold
Body:

An item has been purchased:

purchased by:{!userId.CL.firstName}

customer email:{!userId.CL.email}

items purchased:
{!itemsTotal}

order:
{!orderId}

{!items}.

deliver to: {!addressId.AD.addressName}

Could anyone tell me what is going wrong, since the email is not being sent?
Thanks in advance.

configuracao-trigger

Hi @alan_rm. How’s it going?

I went through this same issue recently — after a while I reached out to VTEX and found out that Master Data v2 has been discontinued.

The solution given by VTEX was to migrate to the Orders Feed and Hook. Here are some docs that might help you:

Hope this helps.
Cheers!

Wow, thank you so much, I was going to do the same thing, open a ticket with their support. They could at least put a notice directly in the master data v1 panel — it’s a usability thing… Anyway, thanks for your time, I’ll look into how to create those codes :handshake:t3: