Changing trigger conditions for sending tracking numbers
Copy the link to the article

The delivery registration process has changed in version 8.0 of the system. This has changed how previously created triggers operate. In version 7.0, triggers were executed by a change in order status. When it was changed, the order already contained a tracking number, which was sent via email or SMS. Now, previously created triggers do not transfer information about the tracking number, resulting in empty emails and SMS notifications being sent to customers.

To fix this, your old triggers need to be edited. For example, if, in the trigger conditions, the order status transition is checked:

changeSet.hasChangedField("status") and changeSet.getNewValue("status").getCode() == "send-to-delivery"

We recommend replacing this condition with a check for the appearance of tracking number in the order:

changeSet.hasChangedField("integration_delivery_data.track_number") and order.integrationDeliveryData.trackNumber != null

If you encounter difficulties or questions when making changes to triggers, please contact the technical support team via email

Thank you for your feedback.
Was this article helpful?
  • Рекомендации не помогли
  • Нет ответа на мой вопрос
  • Текст трудно понять
  • Не нравится описанный функционал
Next article
General information about triggers
A trigger in an event-driven tool used to automate various system processes. A trigger is activated when a specified event occurs, checks a set of given conditions and performs actions if the conditions are met.
Didn't find the answer to your question?
Get help
Didn't find the answer to your question?
Technical support specialist is ready to help!


By clicking the button, you agree to the terms of the user agreement

Message sent!

A technical support specialist will soon read your request and reply to you.

Message not sent!

An unexpected error occurred. We have already been notified of the problem and will fix it soon.