We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Error while saving an attachment in servicenow table using REST and SAVE AN ATTACHMENT

mdshahvez11
Tera Contributor
{
    "Action Status": {
        "code": 1,
        "message": "Error encountered while creating Attachment. Record for file Changes on letters ALL.xlsx is not of required class."
    }
}

I'm getting attachments in href or in url and i'm using SAVE AS ATTACHMEMNTS way to save them with there respective record , but while runnig the flow i'm getting this error. 

1 REPLY 1

Shivalika
Mega Sage

Hello, Could you please share how you solved it ? 
I am also facing same issue in save as attachment. I have specified header as "*/" and also as application or octet stream. Security also I have altered to download the required extension attachments. Also I have uploaded the attachment manually and verified, its uploading. But this automation step is failing with same error repeatedly.