Where is the listener of "sp.attachments.update"?

trangdan106
Tera Contributor

Hello everyone,

Inside the Ticket Conversation widget's client script I see a $broadcast for "sp.attachments.update" but I can't seem to find any where that is listening on this event?

trangdan106_0-1781061990680.png

 

2 REPLIES 2

pr8172510
Tera Guru

Hey @trangdan106,

The sp.attachments.update event is an OOTB broadcast that notifies the platform's internal attachment handler when attachments change—it's not meant to be caught by your custom widget's client script.

The listener is built into ServiceNow's framework-level attachment directives (like sp-attachment components) that manage file display and synchronization . These components automatically refresh when they receive this broadcast.

To trace it, use browser dev tools to search the page's Angular event listeners. 

Ankur Bawiskar
Tera Patron

@trangdan106 

what's your actual business requirement?

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