API DOCUMENT ATTACHMENT examples

Good day everyone,
if you have any example of using an http activity document upload can you please send me an example a file or screenshot. For uploading the document from a local file to maybe a web application. I would really appreciate

Hi @Anelisa_Bolosha1

Please check on this

Regards,

1 Like

Hi @Anelisa_Bolosha1

Check the below thread to upload a file to web application by using http request,

Hope it helps!!

1 Like

Hi, Do I first need to create an assign activity to put it there on the attachment section?
Another thing my attachment on the folder can be one or more, will this be able to cater for that?

@Anelisa_Bolosha1

This depends on what and how your api accepts the file

Few apis accept the file in base64encoded…then you need to convert the file and send in api call

Some apis would accept the file to be attached…then you can use the attachment option in http request to specify the file directly

Please check how your api would accept a file

Cheers

Please help on how I can go about this,


it throws an error

@Anelisa_Bolosha1

You should give the full file path…it looks like you gave a folder path

Cheers

Good day @Anil_G , so the file is dynamic before the bot download the file to that folder it first clears the folder then downloads it there.

So I would normally use this to get the files:

@Anelisa_Bolosha1

Then give array_str(0) if you know its only single file…else you can pass array also

Cheers

Good day @Anil_G , it’s more than 1 file downloaded in that folder sometime 1.
Please if you have an example please take screenshot of the flow

@Anelisa_Bolosha1

image


cheers

1 Like

Thank you I will try it out to see if I win or not

1 Like

Hi@Anil I tried this I am not winning in my studio I don’t even have the Append item to list activity