Adding a Thing to a Network
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Adding a Thing to a Network
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Actually you can leave connection type as undefined by not even declaring it in the JSON parameter block, otherwise use contains.
