Skip to main content
Jul 17, 2020 7:34 PM UTC
Solved

Subscription on change in configuration tables

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!

rjanardanAnswer
Jul 20, 2020 12:38 PM UTC

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. 

2 replies

rjanardanAnswer
Jul 20, 2020 12:38 PM UTC

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. 

Jul 20, 2020 2:08 PM UTC

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.