Inbound Emailed Report - Cumulative - How to Ignore Previously Processed Records?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2025 07:05 AM
I have a daily report being emailed to our Servicenow that has upcoming Offboarding users. There is an EVENT DATE which in theory is the date the HR system was notified of the upcoming termination, as well as a TERM DATE. I am being asked to send an email out to users that are "soon to be offboarded". I am coalescing on the user, and capturing event and term dates into fields on sys_user (currently- This may not be best option).
The problem I am running into is that this daily report is a cumulative report of all offboards for last few years and only getting bigger. What is the best way to only process records that are new/updated/future? Is there some sort of script I can add to the transform map (or wherever) to filter on the dates I have?
Original plan is to use a scheduled job nightly to send this email out a couple weeks prior to the TERM DATE, or if TERM DATE is less than that, immediately.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2025 08:37 AM
Ok, I actually figured it out, and used an onBefore transform map script to do a date compare and ignore the row if term date was in the past. Now I need to figure out how to ignore updating the record at all if the values are the same as what is there already.