Unable to send attachment to other instance

pankajjajda
Tera Contributor

Hi,

I integrated 2 instances and able to create new case record from sc_task in other instance but when i am trying to send an attachment I am unable to do.

I am receiving an error message "

error":{"message":"User not authorized","detail":"User is unauthorized to write to table: sc_task"},"status":"failure"

I checked role and have itil role too. Let me know what is causing it to not send an attachment.

Thanks.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@pankajjajda 

if your API user which you are using doesn't have WRITE Access to sc_task then attachment can't be added

in your target instance ensure the API user has correct role

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

nayanmule
Tera Guru

Can you share the script that you have configured to send the attachment ? 

I don't think if just giving itil role would be sufficient because the entry has to added on attachment table. Not necessary 'itil' role would have access to the attachment table.

 

Regards,

Nayan

Ankur Bawiskar
Tera Patron
Tera Patron

@pankajjajda 

if your API user which you are using doesn't have WRITE Access to sc_task then attachment can't be added

in your target instance ensure the API user has correct role

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader