How to upload an attachment from Postman to ServiceNow

Mahesh23
Mega Sage

Hello,

Can some help me to upload files from postman to ServiceNow via Attachment API.
The files is not stored in the local system. I tried passing URL of file but its giving me an error

{
    "error": {
        "message""Failed to create the attachment. File part might be missing in the request.",
        "detail"null
    },
    "status""failure"
}

Mahesh23_0-1669099671432.png

 




2 REPLIES 2

Aman Kumar S
Kilo Patron

Hello,
We are working on integration between ServiceNow and 3rd party tool. they are sending the attachment from there system to ServiceNow via Attachment api the attachment is also attached to ServiceNow record. but when we open attachment is showing base64 but not actual image.

Mahesh23_0-1669100375159.png

Can you help me how to send an POST call to Attachment API from 3rd party tool ?