Is there a way to write the service call in example A to get the file properties in example B? Currently the folder isn't a named list. If it were would that help?

This question is similar to: Is it possible to GET a list of Files in a document library with "extended properties". I'm using the answer, but still not getting the properties I want in one pass. I have to call example B for every file.

File properties - example A:


  <d:CheckInComment /> 
  <d:CheckOutType m:type="Edm.Int32">2</d:CheckOutType> 
  <d:CustomizedPageStatus m:type="Edm.Int32">0</d:CustomizedPageStatus> 
  <d:Exists m:type="Edm.Boolean">true</d:Exists> 
  <d:Length m:type="Edm.Int64">82805</d:Length> 
  <d:Level m:type="Edm.Byte">1</d:Level> 
  <d:MajorVersion m:type="Edm.Int32">3</d:MajorVersion> 
  <d:MinorVersion m:type="Edm.Int32">0</d:MinorVersion> 
  <d:Name>O0032C - Decline letter.docx</d:Name> 
  <d:ServerRelativeUrl>/sites/s3vdfnl/docs/general/S0032/O0032C - Decline letter.docx</d:ServerRelativeUrl> 
  <d:TimeCreated m:type="Edm.DateTime">2015-04-09T12:45:11Z</d:TimeCreated> 
  <d:TimeLastModified m:type="Edm.DateTime">2015-04-09T12:45:11Z</d:TimeLastModified> 
  <d:Title>Decline Letter NL</d:Title> 
  <d:UIVersion m:type="Edm.Int32">1536</d:UIVersion> 

File properties - example B:


    <d:FileSystemObjectType m:type="Edm.Int32">1</d:FileSystemObjectType>
    <d:Id m:type="Edm.Int32">8</d:Id>
    <d:Title m:null="true" />
    <d:ID m:type="Edm.Int32">8</d:ID>
    <d:Created m:type="Edm.DateTime">2015-01-23T22:56:12Z</d:Created>
    <d:AuthorId m:type="Edm.Int32">11</d:AuthorId>
    <d:Modified m:type="Edm.DateTime">2015-01-23T22:56:12Z</d:Modified>
    <d:EditorId m:type="Edm.Int32">11</d:EditorId>
    <d:OData__CopySource m:null="true" />
    <d:CheckoutUserId m:null="true" />
    <d:GUID m:type="Edm.Guid">c7093817-f264-4e85-845c-4989aa66e142</d:GUID>
    <d:md7package m:null="true" />
  • Robert, i revised the question to make it more clear. I saw the duplicate post you were referring to and variations on the answer haven't helped either. I also have tried the suggestions in this post too: sharepoint.stackexchange.com/questions/138135/…
    – steve
    Commented Aug 30, 2015 at 3:22
  • I need to get the file details when I tapped on file in the folder and that file is open in browser or web view? Commented Oct 22, 2021 at 19:10

1 Answer 1


You probably want this query: /_api/web/getfolderbyserverrelativeurl('<url>')/Files?$expand=ListItemAllFields

It will return files properties along with associated list item properties.

  • 2
    Winner, winner! Thank you so much Vadim. That works just the way I want it to.
    – steve
    Commented Aug 31, 2015 at 17:47
  • 1
    Steve, i'm glad it helped you! Commented Aug 31, 2015 at 18:09
  • 1
    Why does it have only one upvote? Commented Mar 24, 2016 at 19:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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