How do i set an inbound action condition for FROM email address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2022 06:40 PM
How do I set an inbound action condition for FROM email address. The email belongs to an external service and not a servicenow user. When i put something in the From field of the inbound action I get an "invalid reference" error as that field expects a user
What is the best way to do this?
Thank you
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2024 07:57 PM
Thought to add extra note found in the docs which would helpful.
email.from Contains an email address that depends on the following conditions:
* If the address listed in the email Headers field matches an existing user's Email address, this variable contains the user's email address.
* If the address listed in the email Headers field does not match an existing user's Email address, this variable contains the address listed in the email Headers field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2023 02:24 AM
I tried this, but it did not work 😞 am I missing something?
email.subject.indexOf("Oracle Account Responsibilities Change Request") == 0 && email.from == 'charmaine.benico@emerson.com'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 11:52 PM
You may try this. There are cases where email.from could contain uppercase letters.
email.from.toLowerCase() == 'test@email.com';