Attachment link/URL in worknotes .

Deepak92
Tera Contributor

Hi Team,

How can i achieve the below requirement.

When the agent attaches the attachment to ServiceNow, a link to the attachment should get added to work notes.

 Any help would be highly appreciated .

 

Thanks in Advance.

Regards

Deepak Bisht

1 ACCEPTED SOLUTION

Hi,

then use this but it won't be clickable link unless you give anchor tag

I have not used anchor tag in below code

var rec = new GlideRecord(current.table_name);
rec.get(current.table_sys_id);

var url = 'https://' + gs.getProperty('instance_name') + '.service-now.com/sys_attachment.do?sys_id=' + rec.sys_id;

rec.work_notes = url;

rec.update():

Regards
Ankur

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

View solution in original post

10 REPLIES 10

Hi pradeep,

 

Thanks for reply . but i need URL not the attachment

 

Appropriate your efforts