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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Call the same service on each thing of a thing shape

AF_10328563
10-Marble

Call the same service on each thing of a thing shape

Hello,

 

I have a thingShape with a service that works.
I want to execute It on every thing which has this service by using a button from my mashup.

What is the simplest way of doing so?

ACCEPTED SOLUTION

Accepted Solutions
PaiChung
22-Sapphire I
(To:AF_10328563)

ThingShapes[NameOfThingShape].GetImplementingThings

for each item

Things[row.name].ServiceToInvoke({Parameters});

 

Something like that

Just be aware about what type of impact this could have on your system, for example if this is thousands of Things all running your service.

 

View solution in original post

1 REPLY 1
PaiChung
22-Sapphire I
(To:AF_10328563)

ThingShapes[NameOfThingShape].GetImplementingThings

for each item

Things[row.name].ServiceToInvoke({Parameters});

 

Something like that

Just be aware about what type of impact this could have on your system, for example if this is thousands of Things all running your service.

 

Announcements


Top Tags