AnsweredAssumed Answered

Web Request Check in document on another site

Question asked by b06rsw on Jun 6, 2016

I have a flow that converts a word document to a .pdf document and saves it on a URL provided by the user via parameters. When the document is saved, it is "checked out". I've trying to use a Web Request to check it in. This is on a different site than where the work flow is running. I first use a web request and Query XML to obtain the RequestDigest. I use this as a header in my second web request. I pass "http://<site url>/_api/web/getfilebyserverrelativeurl('/<document library>/<filename.pdf>')/checkin(comment='Check-in comment.',checkintype=0)" in the body of the request.  This returns a code "200" which means "OK" with no errors. However, the document does not get checked in. Can anyone provide an example I can follow to get this working?

Outcomes