attachment type variable not displaying attachment on the RITM

RudhraKAM
Tera Guru

When I use this attachment variable type and submit the request the attachment is showing on the work notes field not on the RITM, 

 

the use case is we need to copy the attachment which is attached to the RITM and copy it to a Data source, when I use the below script it is not copying the attachment but when searching in the attachment table, I can see the attachment for that data source 

 

 

GlideSysAttachment.copy('sc_req_item', current.sys_id, 'sys_data_source', 'b52ea7861be001d0a283ca22604bcbc6');

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@RudhraKAM 

I had shared solution for this 1 year ago

Disable ZZ_YY prefix from attachment when added through record producer

User adds file to attachment variable and that gets copied to target record of record producer; you enhance for RITM

Regards
Ankur

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

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@RudhraKAM 

I had shared solution for this 1 year ago

Disable ZZ_YY prefix from attachment when added through record producer

User adds file to attachment variable and that gets copied to target record of record producer; you enhance for RITM

Regards
Ankur

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