Quantcast
Channel: Microsoft Online: SharePoint Online forum
Viewing all articles
Browse latest Browse all 10096

Unable to deserialize HTTP response content - SharePoint Designer Call Web Service Workflow Activity

$
0
0

I am calling file REST API file method"GetFileByServerRelativeURL('Server Relative URL')/$value' to get the file contents (media resource)  using 'Call HTTP Web Service Action' in SharePoint 2013 workflow. When i try to execute this call, workflow gives me the following error and gets suspended:

Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.IO.InvalidDataException: Unable to deserialize HTTP response content. Expected ContentType : 'application/json', 'text/plain' or 'text/html', Received ContentType : 'application/octet-stream'.

I have set following properties in request headers for this web service call:

1) accept : application/json; odata=verbose

2) content-type: application/json; odata=verbose

3) binaryStringResponseBody: true

I presume the call works because it is returning the binary stream, i want this file binary stream so that i can copy this file to another team site. I am following this article but i need to use workflow to achieve this. Guidance needed!




Viewing all articles
Browse latest Browse all 10096

Trending Articles



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