Solved

Upload attachment using oData ifs10upd9

  • 15 February 2021
  • 2 replies
  • 297 views

Userlevel 2
Badge +3

Hi,

We’re trying to upload attachments to IFS using oData.

‘We’ve tried mimicing the Aurena behavior found when inspecting the page and sniffing the HTTP traffic. Projection: DocumentHome.svc

CreateAndConnect work fine but can’t send the file data.

The FileData steps just returns an HTTP 500 , internal server error.

 

A second approach we’ve tried is through the CreateAndImportDocument Projection.

I’ve tried all kinds of formating for the FileData property but won’t accept any of it. Below is a Base64 encoded binary string.

 

Since documentation is almost non existing I’m a bit stuck. 

Has anyone managed to use oData for attachment upload and can provide som working examples? 

Would be much apricated !

 

thx!

icon

Best answer by dhlelk 1 March 2021, 15:40

View original

This topic has been closed for comments

2 replies

Userlevel 6
Badge +15

Hi @NovAlbinL,

 

Since documentation is almost non existing I’m a bit stuck.

You could find the full documentation for CreateAndImportDocument.svc endpoint posted by @Mathias Dahl below,

 

Cheers !
Dhananjaya.

Userlevel 2
Badge +3

Thx. Got a hold of the documentation from an IFS employee a week ago which solved the issue. 

We were missing the X-IFS-ContentDisposition header.