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

SOLVED
Aquamarine

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
Highlighted

Re: How to call service with Service Name

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
Highlighted

Re: How to call service with Service Name

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

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________