I'm looking for a way how to get list (document library) item with property on its parent folder, for that API call : GET https://{site_url}/_api/web/lists/GetByTitle('Test')/items({item_id}). I know that I can specify $select but I don't know what property to pass (googling didn't provide any useful info). Please advise Thanks
- What type of field are you trying to GET, is it a people and group lookup field?Fjay– Fjay2020-06-23 14:18:27 +00:00Commented Jun 23, 2020 at 14:18
Add a comment |
1 Answer
As a workaround,you could try this rest: /_api/web/lists/getbytitle('Documents')/items?$select=FileRef
You can see the url of the parent folder.
You could use jsom/csom/powershell to get item parent folder directly.
- Thanks, Fileref is not exactly what I'm looking for, as it can change if parent moves. I',m looking for parent id (in Sharepoint Graph API there's such ID). But I can't find it in Sharepoint REST (V1)SlavaG– SlavaG2020-06-24 09:56:52 +00:00Commented Jun 24, 2020 at 9:56
