- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-31-2021 11:16 AM
Hello Guys,
I have a requirement to send a notification to the Agent every time a case[sn_customerservice_case] has a new received email.
My first tentative was building a Inbound Action calling an event and sending an email notification triggered by event. - It didn't work cause the [sn_customerservice_case] has already an "inbound e-mail flow" to get updates and replies and attach to the case record. So this flow was making my inbound Action to be bypassed.
Then I tried putting the code to call the event inside this flow as you can see:
Well, the idea sounded good but it seems like it's not working because the flow it's in a scoped application "Customer Service", I came into this conclusion because the code actually works fine when I run it in the background script.
I couldn't even use the OOTB Flow Action "Create Record" to create a new record in the [sysevent] table because the scoped flow is not allowed to access this core table.
Any Good Ideas on how to solve it? Any guidance?
Solved! Go to Solution.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2022 11:25 AM
You do not need Ajax call as it is serverside script
You will have to call something like
var objCaseUtils = new global.CaseUtils();
objCaseUtils.NewActivityEventCall(caseSysID);
Vinod Kumar Kachineni
Community Rising Star 2022

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2022 09:49 AM
Hi,
You might be able to modify the OOB Flow that handles updates to the Customer Case.
Make a duplicate of that flow, then inactivate the OOB one, and in your custom one, insert an extra step to send an email to the Agent, and activate your copied/customized Flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2022 10:37 AM
Hey OlaN,
Are you suggesting to use the OOTB flow in a global scope? I thought about it but it seems like i'm running out of the best practices since the original design was inside the Customer Service Scope.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2022 11:40 AM