Inbound Email Action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2023 02:35 PM
Hi All,
We have an inbound action that creates incident, we want to restrict this inbound action to execute only when the users are external .We have tried to restrict using the userid. email contains in the filter but find that the inbound email action is still executing . Need assistance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2023 03:22 PM
Hi @JP6,
Could you explain what would qualify the user as an "external" user in your use case? Also, could you please provide a screenshot of your inbound action?
Thanks,
- Aylee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2023 03:47 PM
We are using email address to qualify the user as external/internal . Anyone with @telstra.com is internal and everyone else is external .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2023 06:31 PM
HI @JP6 ,
I trust you are doing great.
Here is an example script you could use in the "Condition" field of your inbound action:
(function() {
// Check if the email object and sender's address are available
if (email && email.origemail) {
var senderEmail = email.origemail.toLowerCase();
// Define the internal domain
var internalDomain = '@telstra.com'.toLowerCase();
// Check if the sender's email ends with the internal domain
return !senderEmail.endsWith(internalDomain);
}
// If email object is not available, do not process the inbound action
return false;
})();
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi