Skip to main content
May 24, 2024
Question

Can't call an integration with a file on its body

  • May 24, 2024
  • 8 replies
  • 0 views

I am trying to call an integration that needs to pass a file from appian through its body.

 However, it's not being acceptable, cause

As you can see, the connection endpoint is expecting the file parameter to be of type File. 

An information: with the url that I am retrieving in appian, I am being able to download the file just by clicking on the link.

However apparently the File type on this connection expects another type of string: MultipartFile,

Is it by any chance possible that conversion? Thanks

8 replies

stefanhelzle0001
May 25, 2024

So you want to send the file from Appian to that other system, correct?

You cannot just pass some URL somewhere. You first need to download the file into Appian before sending it.

May 27, 2024

Sorry, do you have any docs on what you said? Because it is still not very clear for me what to do about downloading the file into Appian

stefanhelzle0001
May 27, 2024

You define a JSON structure that contains the URL to the file as the content. So, you are sending that URL to the other system.

https://docs.appian.com/suite/help/24.2/Integration_Object.html#sending-a-binary-document

May 27, 2024

My question is simply: how to pass an user's uploaded file into an external system endpoint

May 27, 2024

Looking at the postman screenshot, it seems like the endpoint accepts form-data. Have you tried multiple form-data in request body ?

May 27, 2024

It worked as expected.

Special thanks goes to Mr. [mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05] and Mr. [mention:4c43eb441fcc44299beb7b47702ad370:e9ed411860ed4f2ba0265705b8793d05] . Thank you all.