Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am currently in the process of trying to upload a file from using SharePoint 2013 Restful Service as well as setting the fields in the same document library at the same time.

I have had success upload a file to SharePoint 2013 but setting the field values seems to be a problem

http://<site url>/_api/web/GetFolderByServerRelativeUrl(
  '/Shared Documents')/Files/add(url='a.txt',overwrite=true)

Is there a way to set the field values and upload a file at the same time with out resorting to SOAP

share|improve this question

1 Answer 1

No. First you need to upload the file. Then you need to get the list item associated with the new file. Then you can update the field values for the list item. So, it's a minimum of three service calls.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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