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.
