Avoid duplicate record creation in flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 05:45 PM - edited 02-15-2023 05:46 PM
Hi Team,
I need help figuring out a logic of how to avoid the duplication of records with a daily flow.
The flow runs daily at a set time and checks for all the employees within a set cost center and also whose hire date is 5 days from now(today). It then creats a record in a notification table and sends email notification. Now if this runs daily, I want to avoid duplication of record creation.
Any suggestions on how to avoid that? I tried playing around with the look up records but was unsuccessful in my endeavour. thanks in advances
- Labels:
-
flow designer
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 08:19 PM
For hire date you can add condition like-
Hire Date is ⬇️
var hire_d = new GlideDateTime();
hire_d.addDays(5);
return hire_d;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2023 11:37 PM
Can you share the lookup records condition you used.
You need to check exact 5 days from today records instead of all the records which are greater than 5 days to avoid duplicate sending of emails.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP