Skip to main content
Apr 2, 2019 4:46 AM UTC
Solved

Event and mail generation

Hi All,

I have two properties A and B, now I want to generate an event when property A value is less than B value. Also I need to send an email when this condition happens. How I can achieve this? I am using ThingWorx 8.3 version.
PaiChungAnswer
Apr 2, 2019 4:10 PM UTC

You can do this by using the DataChange event.

You'd have to probably monitor the change in both the A and B values.

Also please be aware, if these values change often, then you might be sending a lot of notifications.

So you might want to either create some logic to prevent that, or resolve this into a Boolean Property that you set to True or False this way you can provide a 'lock in' and then send notification on the true/false toggle

3 replies

PaiChungAnswer
Apr 2, 2019 4:10 PM UTC

You can do this by using the DataChange event.

You'd have to probably monitor the change in both the A and B values.

Also please be aware, if these values change often, then you might be sending a lot of notifications.

So you might want to either create some logic to prevent that, or resolve this into a Boolean Property that you set to True or False this way you can provide a 'lock in' and then send notification on the true/false toggle

Apr 7, 2019 2:06 PM UTC

Thank you for the reply