Attachments for CaseFileCollection

Good evening, 

I'm trying to send images to CaseFileCollection using OData. Currently I'm sending them as a base64 file. I'm receiving "Unsupported Media Type" in the response. Could anyone please provide me some information regarding attachments for Cases?

Best regards and thanks for your time. 

Like 0

Like

1 comments

Firstly you need to create a record without a binary data. The type of the request will be "application/atom+xml;type=entry". Then you need to update the binary data column in the newly created record. The type of the request will be "multipart/form-data;boundary=+++++" so you'll be able to update only one field. This solution should work. However, I think that you can find more solutions in google. For example

https://stackoverflow.com/questions/1131425/send-a-file-via-http-post-w…

Show all comments