PLs advise the correction in the script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-21-2024 02:44 AM
Hi,
My requirement is - The scheduled job should run the check computer login date(check_in), if the checkin date exceeded 30 days from the current date, the system will trigger event for email notification.
if the checkin date exceeded 35 days, the system will create incident. if the check in date exceeded 50days, the system Check for active incident that matches this criteria:
- Incident CI = sys ID of Ci being checked in scheduled script
- Incident short description starts with "PC has not login"
- If active incident exists:
- Update incident work note to add: PC has been login for 50 days
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-21-2024 03:40 AM
Using a single greater-than sign in the if loop will enable daily updates or record creation. This will particularly impact the same PC, resulting in 15 new INCs being generated from days 36 to 50.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā10-21-2024 03:45 AM
Yeah, I caught that and updated it right after I posted. They didn't specify when / how often the job will be run, but safer to assume it will be daily.