Skip to main content
1-Visitor
February 7, 2018
Question

Subscription script failing on REST API update

  • February 7, 2018
  • 1 reply
  • 1251 views

I've got a Thing Template called 'NetworkSection' with three properties: 'StartPoint' a reference to another Thing, 'StartCity' a string, and 'Locations', an infotable with one column of Locations.

I've also written a subscription for NetworkSection on its own 'StartPoint' property, which updates the 'StartCity' and first row of the 'Locations' infotable', based on the properties of the new StartPoint.

me.Locations.getRow(0).Loc = Things[me.StartPoint].Loc

me.StartCity = Things[me.StartPoint].City

When I change the StartPoint of a NetworkSection from within composer, both the StartCity and Locations properties update as expected. However, if I do the same through the REST API, I'm finding that the StartCity updates, but record in the Locations infotable does not. Any ideas why that might be?

1 reply

5-Regular Member
February 22, 2018

Hi @bmaxted would it be possible to share the REST call you are making to update the properties? Additionally, it will also be helpful to see if the applicationLog.log is showing any error related to the REST call. 

 

May be you can try and debug it with Postman application.