Hi,
I am trying to retrieve the files stored in SharePoint location as part of CRM integration with SharePoint. I am doing it in Mobile API. I am getting the site url, relative url and document name from CRM.
I am using HHTPRequest to retrieve the document.
string resourceUrl = siteUrl + "/_api/web/GetFolderByServerRelativeUrl('" + relativePath + "')/Files('" + fileName + "')/$value";
I am able to retrieve the document, but not getting entire content. But if I access the above url in browser I am getting the entire pdf document.
Also I tried using direct url to retrieve the same thing is happening.
Any help in this regard will be really helpful.
Regards,
Pramod