0

I'm working with SharePoint API. I'd like to check a status column value, which is changed to "new" when a new document is uploaded and changed throughout our ETL process.

I'm accessing the file via:

"https://oursite.sharepoint.com/teams/ourorg/ourorgsite/_api/web/GetFolderByServerRelativeUrl('DataServicesDocs/myProject/')/Files('sharepoint_test.csv')"

But this doesn't get me the column of the file in the library in which it exists. JSON properties I get are:

  • MajorVersion
  • MinorVersion
  • ServerRelativeURL
  • Name

Etc.

Where is:

  • Name
  • Modified
  • Modified By
  • Status (custom field)

?

1 Answer 1

2

You probably need below:

/_api/web/GetFolderByServerRelativeUrl('DataServicesDocs/myProject/')/Files('sharepoint_test.csv')?$expand=ListItemAllFields

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

1
  • do you know how I can make a PUT request to update said column name? I'd like to use the REST API to change the status column's value.
    – user3871
    Commented Apr 2, 2018 at 22:00

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.