cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to call service with Service Name

Sathishkumar_C
15-Moonstone

How to call service with Service Name

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.

1 ACCEPTED SOLUTION

Accepted Solutions
drichter
14-Alexandrite
(To:Sathishkumar_C)

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]();
}

 

View solution in original post

1 REPLY 1
drichter
14-Alexandrite
(To:Sathishkumar_C)

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]();
}

 

View solution in original post

Announcements