Skip to main content
5-Regular Member
July 17, 2020
Solved

Subscription on change in configuration tables

  • July 17, 2020
  • 1 reply
  • 1435 views

Hi!

 

I'm trying to launch a subscription when a change is made in the configuration tables of a thing. The generic event ThingStart is useful if the configuration tables are changed manually, since it triggers on Save. It won't work though if the change to the configuration table data comes from the generic services like SetConfigurationTable.

 

I was wondering if there is a way to set an Event to trigger when a generic service like SetConfigurationTable is completed. A workaround would be to set an Event to trigger when the data in configuration tables changes, but the Event dataChange seems to only works for properties. Is there a way to make it work for Configuration tables data?

 

Thanks for your help!

Best answer by rjanardan

I am not aware of an out of the box way to achieve this.

Probably you could update the table by calling a wrapper service which internally calls SetConfigurationTable only and also updates a boolean property. 

1 reply

rjanardan16-PearlAnswer
16-Pearl
July 20, 2020

I am not aware of an out of the box way to achieve this.

Probably you could update the table by calling a wrapper service which internally calls SetConfigurationTable only and also updates a boolean property. 

5-Regular Member
July 20, 2020

Thanks @rjanardan for you answer. That is what I was afraid to hear since this solution doesn't protect from situations where the configuration table is edited by the generic services. It may still be the best possible way to do things.