Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Updating document metadata with REST through 2013 Workflow

$
0
0

I am having a hard time getting a document's metadata to update using REST. I'm fairly certain I've tried every permutation of the examples I have seen with no luck. I have no problem checking in\out or approving. It's just updating.

I have attempted to rename a document in a library with no luck.  I either get anot found or bad request as a response.  I'm not sure if I should have PUT or POST.  Documentation says PUT. 

https://msdn.microsoft.com/en-us/library/office/dn292553.aspx

If you want to update a file's metadata, you'll have to construct an endpoint that reaches the file as a list item. You can do this because each folder is also a list, and each file is also a list item. Construct an endpoint that looks like this:https://<site url>/_api/web/lists/getbytitle('Documents')/items(<item id>)

I tried with items('[%Current Item:ID%]') but that fails also.  Has anyone a working example they can show me?


David Jenkins



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>