Service now attachment upload

I am using API for uploading attachment in the incident. File is getting uploaded but inside the file i am getting the json response passed and not the file data.

Please help me resolve this issue.

Thanks

Hi,

You need to make sure that you are passing required content - header and required properties in body of API

Regards,
Amit Anand

Hi Amit,

I am giving proper content - header and required properties.File is creating and getting attached but file is not picking from the location. Instead it is creating a new file and attaching it.

Thanks,
Ankita

Hi,

How is the file path being given.

Regards,
Amit Anand

In Input mapping:

“uploadFile”:"@D:\file"

Hi Amit,

I am giving the path in Input Mapping “uploadFile”:"@D:\file".
But it is creating a new file with no data inside it instead of taking the file from the path.

Kindly provide a solution for this.

Thanks & Regards,
Ankita Gupta

Hi,

Instead of giving hard coded path can you give file path as an argument or variable

Regards,
Amit Anand