Hi all,
I want to retrieve documents from a nested folder. The depth of this folder is 5.
-Folder 1
- Folder 2
- Folder 3
- Folder 4
- Folder 5
- Document 1
- Document 2
To retrieve these document i use the method ListNodes this method use the objectid of the folder as input. So far so good. My question is how can i determine the objectid of folder5 as quick as possible?
When is use the method GetNodeByName(OTAuthentication, parentid, name) i have to give a parentid and the name of the folder. But this way i need to know the objectid of the folder 4 (parentid). To get the objectid of folder 4 i have to do the same trick. i have to know the parentid from folder 4 which is folder 3. This gives me the feeling that i have to start at folder 1 and make multiple calls to the method GetNodeByName to go deeper through the nested folders until i am at the folder 5.
There has to be another way to get right to the folder 5 but i am not that familiar with EWS, so is there a way to go direct to folder 5 without knowing it's objectid?
Thanks in advance.
Regards,
Dennis