Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. 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);