Skip to main content
9-Granite
June 23, 2022
Question

How to write a subscription to trigger a service which will execute and updates the DataTable

  • June 23, 2022
  • 2 replies
  • 928 views

I wrote a service to update all the values of a thing to DataTable.

 

But i need to do the same when automatically, when the new data updates in a thing.

 

Pls support in writing a sub'n which triggers the service and updates the DataTable whenever the particular property updates in a thing

2 replies

Sathya9-GraniteAuthor
9-Granite
June 23, 2022

Thanks all, got it

15-Moonstone
August 7, 2022

Hi,

 

Use datachange event of property in subscription. Within subscription call the service to update the value to datatable.

 

Hope this helps!!