cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

How to check if any sibling exist for any node in network using script

ranjank
14-Alexandrite

How to check if any sibling exist for any node in network using script

Hi Team, Please let me know the PTC api or any logic to check the sibling of any node in a network? Thanks in advance.
ACCEPTED SOLUTION

Accepted Solutions
SathishkumarC
6-Contributor
(To:ranjank)

You can find using following steps,

1. Get parent of current node

2. Get Child list of parent node

 

By comparing child count you can find.

View solution in original post

2 REPLIES 2
SathishkumarC
6-Contributor
(To:ranjank)

You can find using following steps,

1. Get parent of current node

2. Get Child list of parent node

 

By comparing child count you can find.

suverma
12-Amethyst
(To:ranjank)

Hi ranjank,

 

I have created a query to get relation between a parent node and it's child. Every child within a parent can be grouped as siblings.

 

Please use the entities I have attached for the service I have created for above mentioned scenario. This can also be modified to get the count of sibling.

 

Do revert for any further queries.

 

Regards,

Sudeepta Verma

Announcements


Top Tags