Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
Trying to get a list of children in a Network using the GetChildConnectionsForTemplate function which accepts two parameters, both of which are of STRING type; however I keep getting a Too Many Parameters error when I input two strings.
When I try to input a single parameter, it runs with 0 errors but outputs an empty/incorrect table.
Hi,
How do you input the parameters?
Consider the following Network.
The inputs for the service GetChildConnectionsForTemplate are:
The output of the service should be of type INFOTABLE.
The result contains the 2 children (Thing1 and Thing2) which implement the template GenericThing.
Service code
var params = {
name: "test1" /* STRING */,
thingTemplateName: "GenericThing" /* STRING */
};
// result: INFOTABLE dataShape: NetworkConnection
var result = Networks["anetwork"].GetChildConnectionsForTemplate(params);