Skip to main content
17-Peridot
December 17, 2019
Solved

How to call service with Service Name

  • December 17, 2019
  • 1 reply
  • 1773 views

Hi,
I am having an infotable (thingName (STRING), serviceName (STRING)) 10 rows (may vary). Each row having thing name and service name. I have to execute all the services available from infotable in a particular scheduled event. How to handle this scenario?

Thanks & Regards,
Sathishkumar C.

Best answer by drichter

Do you want something like this?

 

for(var x=0; x<list.rows.lenght; x++) {
 var row = list.rows[x];
 var rowResult = Things[row.thingName][row.serviceName]();
}

 

1 reply

drichter1-VisitorAnswer
1-Visitor
December 17, 2019

Do you want something like this?

 

for(var x=0; x<list.rows.lenght; x++) {
 var row = list.rows[x];
 var rowResult = Things[row.thingName][row.serviceName]();
}