- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2019 11:48 AM
We have a need to notify our agents if a customer comes into the portal and adds an attachment to an open case.
I followed the instructions from the accepted solution at How to trigger mail whenever attachment is added for incident, obviously changing all references to the 'incident' table to be 'sn_customerservice_case'. If I log into the portal as a customer and add a file to a case, I see in System Logs > Events that the business rule does fire the event. However, no notification is ever sent out.
Event::
Business Rule::
My event is registered under the Customer Service application scope and the business rule that fires it is in Global. I have two notifications currently defined with the same criteria, one in Global and one in Customer Service.
Notification details:
When to send:
Who will receive:
What it will contain:
The body of the email is simply "An attachment has been added to the case."
What am I missing? I'm fairly new to the platform but this logic seems to make sense and it matches up with that solution for ITSM Incidents.
Solved! Go to Solution.
- Labels:
-
Customer Service Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-03-2019 02:09 PM
I believe I figured this out, I have the script looking for 'sn_customerservice_case.attachment.add' instead of 'sn_customerservice.attachment.add'. I wasn't paying close enough attention to the event registry. Apparently the event is named by the application rather than the table.
TL;DR - make sure the event your business rule is looking for is actually named what you think it is named.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2019 01:58 PM
Business rule needs to be on sys_attachment table. Can you confirm if you have that
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2019 06:37 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2019 01:50 PM
Can you try changing below on your business rule
gs.eventQueue('sn_customerservice_case.attachment.add', incObj, current.file_name, '')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2019 04:11 PM
I tried that but the result is unchanged. I still see the event being processed in the events log but I never see an email get created.