I’m trying to create a trigger that fires after an order is invoiced, however when I check the order number it’s not the same one — it’s returning an order placed by the person years ago. Why is this happening? In runAt I set dateTime: "now" and increment: {addMinutes: 1}, meaning it should fire the trigger 1 minute after the customer makes a purchase and then send the related email.
"v-triggers": [
{
"name": "Copy data",
"active": true,
"condition": "status=invoiced",
"action": {
"type": "t-email",
"template": "reviews-and-rating",
"provider": "default",
"subject": "My template email with VTEX Master Data",
"to": [
""
],
"bcc": [
""
],
"replyTo": "wanderson@livreeleve.com.br",
"body": {
"firstName": "{!clientProfileData.firstName}",
"email": "{!clientProfileData.email}",
"id": "{!id}",
"clientName": "{!clientProfileData.firstName}{!clientProfileData.lastName}",
"ownerListName": "{!customData.customApps[0].fields.ownerListName}",
"ownerListEmail": "{!customData.customApps[0].fields.ownerListEmail}",
"items": "{!items}",
"openTextField": "{!openTextField.value}"
}
},
"runAt": {
"dateTime": "now",
"increment": {
"addMinutes": 1
}
}
}
]
}