1

I'm trying to get the Name from some documents using REST, i'm doing it with the following endpoint:

https://tenant.sharepoint.com/sites/my-site/_api/lists/getbytitle('Documents')/items?$select=*&$filter=ContentType eq 'Document'

It gives me a lot of properties except Name, how can i achieve this?

enter image description here

thanks in advance.

2

Like this:

https://tenant.sharepoint.com/sites/my-site/_api/lists/getbytitle('Documents')/items?$select=*,File/Name&$expand=File
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.