Geting "Unable to save response body as attachment: Invalid Attachment Record - table: incident record id: " when using saveResponseBodyAsAttachment

christopherjgil
Giga Guru

I gave the user that is getting the error, full write and read access on the incident table, what am I missing?

 

1 ACCEPTED SOLUTION

christopherjgil
Giga Guru

It was a silly mistake trying to do a business rule on insert before,  I changed it to insert after and the incident was there so the function had some where to save the attachment to .

View solution in original post

3 REPLIES 3

Prateek kumar
Mega Sage

See if this help:

https://hi.service-now.com/kb_view.do?sysparm_article=KB0719311


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

christopherjgil
Giga Guru

We are not using a mid server. I use very similar code to get attachments for sc_req_items on a different system. If I copy the sys_id from the error and search for it in the incident table list it finds the record. 

christopherjgil
Giga Guru

It was a silly mistake trying to do a business rule on insert before,  I changed it to insert after and the incident was there so the function had some where to save the attachment to .