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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

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.

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

 

Top Tags