How to set an inbound working on weekdays.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hello,
I have a scenario to create an inbound action with the following conditions:
When the instance receives an email containing "(CRITICAL)" in the email subject, and
"Integrated Management Log Severity: CRITICAL" in the email body,
Then an incident record should be created.
The tricky part is:
This should only happen on workdays (Monday to Friday).
Emails received on weekends (Saturday or Sunday) must be ignored, and no incident record should be created.
The condition and script I provided are shown below. The inbound action is working, and incidents are being created, but they are also being created on weekends. I need to prevent incidents from being created on weekends.
Thanks in advance!!
- Labels:
-
Ask the Experts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
Check the value it returns for the GlideDateTime as system takes Sunday as 7 and Monday as 1.
Tweak the code accordingly and test, it should work fine.
If this helped to answer your query, please accept the solution and close the thread.
Thanks,
Bhuvan