Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hello,
I am trying to add a Thing to a network programatically,
It is intended in this case to add a parent
var params2 = {
from : undefined,
to : SiteName,
connectionType : undefined
};
Networks['CustomerNetwork'].AddConnection(params2);
When tested I get an error about invalid connection type.... I however can not find a resource which lists valid connection types
Solved! Go to Solution.
I seemed to have found a or the solution... The connectionType appear to be Parent, Sibling or Child, though I haven't yet tested all 3, At the very least Sibling works. And I have been able to add a thing to a network in this way
I seemed to have found a or the solution... The connectionType appear to be Parent, Sibling or Child, though I haven't yet tested all 3, At the very least Sibling works. And I have been able to add a thing to a network in this way
Actually you can leave connection type as undefined by not even declaring it in the JSON parameter block, otherwise use contains.