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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

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

ranjank
15-Moonstone

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

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

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
14-Alexandrite
(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