cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the Parent of a Node

lascaux
Champ on-the-rise
Champ on-the-rise
Hi,

How can I get the parent of a node using Web Service (in .Net).

For now, I have my content node (and its ID) … but I don't know how to get its parent space object …

Any help would be great

Sylvain
2 REPLIES 2

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

I'd use the queryParents method on the repository web service.  It will return you all the parents of a node.

There should be a system column called PRIMARY_PARENT which will indicate which of the returned references is to the primary parent of the queried node (if that is what you are after).

Cheers,
Roy

lascaux
Champ on-the-rise
Champ on-the-rise
Thanks a lot Smiley Happy