Inbound action is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 03:44 AM - edited 05-28-2024 03:48 AM
Hello Guys,
I have written a script in inbound action where if the subject contains " Escalation: High " and if the mail is coming from for eg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 04:11 AM
Hi @tGhadage ,
It looks like there might be a misunderstanding with the use of the email.recipients field. The email.recipients field is not the correct field to use for checking the sender of the email. Instead, you should use email.from to check the sender's email address.
Here's a corrected version of your script for the inbound email action:
if (email.subject.indexOf("Escalation: High") > -1 && email.from.toLowerCase() === 'tushar.ghadage@test.com') {
current.impact = 2;
current.urgency = 2;
current.priority = 2;
current.insert();
}
If you find my response helpful, please consider marking it as the 'Accepted Solution' and giving it a 'Helpful' rating. Your feedback not only supports the community but also encourages me to continue providing valuable assistance.
Thanks,
Amitoj Wadhera
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 04:41 AM
Hi @Amitoj Wadhera ,
Have checked with " .from " also its not working so had gone with this method.
Thanks,
Tushar Ghadage

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 04:35 AM - edited 05-28-2024 04:37 AM
Hi @tGhadage
Why dont you use conditions here and than just set values in your script
Second Please check if this is your notification that is triggering.
It seems like out of the box notification is triggering in your Screenshot. if that is the case you will have to change the weight so your notification gets triggered first.
Mark Correct and Helpful if it helps.
***Mark Correct or Helpful if it helps.***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 04:42 AM