Hot answers tagged

1

You can use the $select parameter to select the folder ID like below: /_api/Web/Lists/getByTitle('Documents')/items?$select=FileLeafRef,ID This will return you the folder name & ID like: <content type="application/xml"> <m:properties> <d:FileLeafRef>folder2</d:FileLeafRef> <d:ID m:type="Edm....


1

To create a folder and get its ID in one request, you can simply create a list item with a folder content type (0x0120): POST request /_api/web/lists/getByTitle('Custom List')/items Body ContentTypeId: "0x0120" Title: "FolderName" __metadata: {type: "SP.Data.CustomListListItem"} type: "SP.Data.TListItem" Response ... ...


1

In case you're using Power Automate, when you use Send an HTTP request to SharePoint action, field name + Id is not working. Use this syntax instead: { "lookup_field": { "Id": <id> } }


Only top voted, non community-wiki answers of a minimum length are eligible