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

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

How to call service with Service Name

Sathishkumar_C
17-Peridot

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.

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

 

Announcements


Top Tags