Hi,
I use GetNodesInContainer method to read an entire folder structure which works fine.
However, in some cases I have shortcuts to other folders in which case only the folder (its shortcut) is retrieved but not its content. Is there an easy way to have GetNodesInContainer expand on "shortcut folder structures"? (I didn't find any setting in GetNodesInContainerOptions).
Below the c# code I use:
Thanks,
-------
idParent = 123123123;
Node[] oContainerItems = null;
GetNodesInContainerOptions nodecontopt = new GetNodesInContainerOptions();
nodecontopt.MaxDepth = 10;
nodecontopt.MaxResults = 100;
List<List<string>> myList = new List<List<string>>();
oContainerItems = this.docClient.GetNodesInContainer(ref this.docAuth, idParent, nodecontopt);
foreach (Node node in oContainerItems)
{
List<FolderStructureItem> lrecs = new List<FolderStructureItem>();
string sType = "0";
string sName = node.Name;
string id = node.ID.ToString();
string idParentNode = node.ParentID.ToString();
myList.Add(new List<string> { sType, sName, idParentNode, id });
}
this.docClient.Close();
sResult = new JavaScriptSerializer().Serialize(myList);