Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hi Team,
Suppose I want to write a service which take any node of a network as an input and check whether that input node has any parent exist or not (i.e. Boolean Output), then what would be the snippet to be used?
Please help me the logic or provide some in-built PTC api service.
Thanks in advance.
Solved! Go to Solution.
Did you try using "GetParentName" snippet of Network entity ? If it give you a name you can return true if it does not you can return false.
// result: STRING
var result = Networks["MyNetwork"].GetParentName({
name: "Asset_1-2" /* STRING */
});
Did you try using "GetParentName" snippet of Network entity ? If it give you a name you can return true if it does not you can return false.
// result: STRING
var result = Networks["MyNetwork"].GetParentName({
name: "Asset_1-2" /* STRING */
});