Skip to main content
1-Visitor
April 2, 2019
Solved

Event and mail generation

  • April 2, 2019
  • 1 reply
  • 1331 views
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.
Best answer by PaiChung

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

1 reply

PaiChung22-Sapphire IAnswer
22-Sapphire I
April 2, 2019

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

1-Visitor
April 7, 2019

Thank you for the reply