Hi,
Currently, on 3.23.1, there is no way to download attachments using the API. We would like to have a new API call to download the file.
Regards,
Hi,
Currently, on 3.23.1, there is no way to download attachments using the API. We would like to have a new API call to download the file.
Regards,
Hello,
As far as I know, you can perform a GET on the following URL to download the attachment(s) you want.
https://[eramba url]/attachments/attachments/download/[attachment_id]
You can get the [attachment_id] in two steps:
https://[eramba url]/[module_name]/index
https://[eramba url]/[module_name]/[item_id]/attachments
Once you have the [attachment_id] you need, you can make a GET request to
https://[eramba_url]/attachments/attachments/download/[attachment_id]
This will return the contents of the file you need. Using the URL from step 2, you will also get information about the attachment’s extension. You can use this to setup the proper stream in your code to fetch the document’s content.
Its not super practical, but it works! It also requires a bit of additional work if you want to retrieve extensions such as .docx or .pdf.