Web API to get document by document ID

Certified Associate Developer

Hi,

I need to create a web api which would take document ID as input and should give the document.  I tried using document download function in the web api and the response I am getting is as follows:

[@attributes=[@anyAttribute=[_documentDownloadLink:ioBHxsE-N_JZt_4edZOQWnRVKO7BA2EyyDE3f8W5ryXvpMCFErFIBm5KMo], @nil=], document=[Document:117890], label=loan, actions=, version=-1]

How can I get the document from here?  

I also created the web api to download the document where the response is the url like "">mysite.com/.../56831"

But I do not want to get the link to download the document.  

Is there any other way to get the document through web api?  

Thanks in advance,

Brinda Sateesh.

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to Stefan Helzle

    Hi Stefan,

    I have  folders like "Test PDF files", "Test Image Files", and "Test Word Files" in "Test Knowledge Center".  All the folders are inheriting the security of "Test KC".  So, the security is same for all the folders and the user has editor access to all folders.  But I can move the pdf files and images files, but not the word files.  I even tried moving the word file to PDF Files folder. Even then I am not able to download.  I am not able to figure out the issue.  Have you tried moving the word files using web api?  Any suggestions would be of great help.

Children