
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2023 06:08 AM
Hi,
I set up an email notification to the assignee if the record got updated by the user. My email notification doesn't work if the user added attachment to an existing ticket via our portal without adding comments. The only time it works if the user added comment. I want the assignee to get notification if the user added attachment to the request.
Thanks,
S
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2023 04:08 PM
Here is the updated script:
var getINC = new GlideRecord('incident');
getINC.addQuery('sys_id',current.table_sys_id);
getINC.query();
if(getINC.next()){
getINC.comments = 'Attachment has been added!';
getINC.update();
}
Change the table name with custom table name you have.
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2023 03:54 PM
Can you share the screenshot of BR and use case like steps when this error shows from service portal ?
Regards,Sushant Malsure

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2023 03:57 PM
I just noticed that new record get inserted to the custom table every time I add attachment. I will send screenshot shortly.
thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2023 04:08 PM
Here is the updated script:
var getINC = new GlideRecord('incident');
getINC.addQuery('sys_id',current.table_sys_id);
getINC.query();
if(getINC.next()){
getINC.comments = 'Attachment has been added!';
getINC.update();
}
Change the table name with custom table name you have.
Regards,Sushant Malsure

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2023 04:45 PM
Hi Sushant,
Thanks for your help, it works with no error, also no new record got inserted to my costume table.
Thanks again!!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2023 04:01 PM - edited 07-31-2023 12:32 PM