Skip to main content
Solved

FSM Attachments - oData API

  • December 10, 2020
  • 3 replies
  • 616 views

ZRZJOLIVEIRA
Do Gooder (Partner)
Forum|alt.badge.img+7

Hi,

 

I’m testing the oData REST API to download/upload attachments in FSM, but I’m facing some issues.

I can get the attahcment info (but the “attachment@data.mediaReadLink” attribute). However I don’t get anything, while trying to retrieve the binary data (prints attached)

 

Additionally, I’m not able to change the stored flag for manually added attachments.

 

Thank you,

João Oliveira

 

Best answer by ZRZJOLIVEIRA

Hi all,

 

We found another API to get the binary data from attachments (/perform_get_attachment_stream):

 

 

Best regards,

João Oliveira

View original
This topic has been closed for comments

FedeZ
Do Gooder (Employee)
Forum|alt.badge.img+2
  • Do Gooder (Employee)
  • December 11, 2020

Hi,

 

I have been looking at this issue too and I have further info for somebody to look at if possible. Maybe the API is not supporting  file attachments yet ?

 

I have 2 attachments on FSM. Attachment 1 is attached using Stored = Y (meaning stored on the database). Attachment 2 is attached using Stored = N with a file path on the server. Attachment 1 is downloaded perfectly, attachment 2 does not get downloaded at all (USING POSTMAN). Have tried giving access to the folder to ‘everyone’ in case it was an access thing by the web user on the server but no luck.

 

To download the attachments just add /attachment to the end of the get.

 

 


Lee Pinchbeck
Ultimate Hero
Forum|alt.badge.img+24

Hi @FedeZ,

I understand you may have found a solution to this or at least a workaround? Is that correct? Would you be able to post it here if so?

Kind regards,

Lee Pinchbeck


ZRZJOLIVEIRA
Do Gooder (Partner)
Forum|alt.badge.img+7
  • Do Gooder (Partner)
  • December 17, 2020

Hi all,

 

We found another API to get the binary data from attachments (/perform_get_attachment_stream):

 

 

Best regards,

João Oliveira


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings