Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Upload Zip file using Rest API Explorer

Bharath40
Giga Guru

When I tried to upload zip file using attachment api, file is attached to record successfully but the extension is missing. 

Once you download the file I have to manually rename to .zip which allows to read the file. Any idea why it is not copied in

original format.

Any help is appreciated !

 

Thanks,

Bharath

1 ACCEPTED SOLUTION

Ah never mind. File name is missing .zip while making post call. 

View solution in original post

6 REPLIES 6

sachin_namjoshi
Kilo Patron
Kilo Patron

I am able to attach zip file using REST API explorer like below payload

 

 

find_real_file.png

 

find_real_file.png

Yes but when you download from the record it's not the same format. You will have to rename file to .zip

It's in the same format even when i download.

I am on orlando and it works for me.

 

Regards,

Sachin

I'm on Orlando but as you see the second picture it's not in same format that I attached. Once I download and rename i'm able to extract files.

find_real_file.png

find_real_file.png