Service now attachments are not showing up in Manage Attachments section

rajuvadnala
Kilo Explorer

0down votefavorite

I'm using service now api https://xyz.service-now.com/api/now/attachment/file api for attaching files to the incidents. Files are getting attached to the incident and they are appearing in activity section but not showing up in the Manage Attachments section. How do I resolve the issue?

18 REPLIES 18

Hi Magali, In my case, table mentioned in integration was not correct. That's why it didn't get updated correctly. We have updated the table now, so it is working.

Hi,

 

if you are attaching the attachment with the help of script using 

GlideSysAttachment.copy() or attaching using file attachment field

in this case in sys_attachment table add prefix ZZ_YY in table name column
just remove prefix and test with fresh request you will get on manage attachment as well on head and worknotes

Please refer below screenshot
find_real_file.png
Please mark as correct/helpful, If you find any help

Kajal Goti
Mega Guru

Hi @rajuvadnala 

 

Yes, For that please go to the sys_attachment table and find your attachment record

And remove the prefix of table "ZZ_YY",and then check you will get your attachment attached in manage attachment 

 

find_real_file.png

I have faced same issue earlier and resolved like this

Please mark as correct/helpful, If you find any help

Hi @rajuvadnala  Thanks for marking helpful,

Please mark as correct if it's solve your query so thread will be closed 

 

@Magali Modugno , @dhanu , @preetid  Please see my answer if you have still same issue please let me know
 If it's resolved and please mark as correct/helpful, If it you find any help
 
 
 
 
Please mark as correct/helpful, If you find any help
 
 
 

Thanks Kajal!

 Yes, when wee have Copy attachment BR on task table ..we need get current table name  instead of task table.

here is BR

var systemp = current.u_template;
var thisRec = current.sys_id;
var table = current.getTableName();

GlideSysAttachment.copy('sys_template', systemp, table, thisRec);

 

Issue resolved ..attachments on right child table and now visible under Manage attachments.