Inbound Action - Condition Question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2023 07:45 AM
I have a requirement to allow incident creation via email for some VPN Client testers. The plan is to create an Outlook template for the email with a set SUBJECT and prompts for COMMENTS to be copied into the created incident.
I want to include a condition though that will check either for the email to coming from one of the two domains we allow by checking the email address, or better, confirming that the sender is actually in the system (if they have an email on the domains, they should be).
My existing conditions all require a specific email address, which will not work here. What is the syntax on the conditions to either do a domain check on the email address, or confirm it matches to an existing user?
Thanks!
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2023 08:28 AM - edited 08-29-2023 08:41 AM
Hi Jeff,
Please follow the below video URL, on how to create and configure using the condition and script.
if the sender is not in the user table incident created will seem to be a guest.
you can select from the user to check if the user exists in the system or can allow by condition for two domains.
Set value using Condition
Set value using Script
//can set the value using the script or from action
current.caller_id = gs.getUserID();
current.comments = "received from: " + email.origemail + "\n\n" + email.body_text;
current.short_description = email.subject;
current.category = "inquiry";
current.incident_state = IncidentState.NEW;
current.notify = 2;
current.contact_type = "email";
current.insert();
https://www.youtube.com/watch?v=dhjLiwtT97E
please click on Helpful button if answer is correct.