- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2022 12:04 AM
Hi all, I need to send a notification 6 hours after the last update. I am thinking of a scheduled job but it should run exactly after 6 hours of the last update. Please, could you provide a suggestion?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2022 02:29 AM
Hello @Victor Monteale
I would suggest to have a scheduled Job for this requirement because if you configure the flow or create an event from BR then there will be 1 flow or event for each record that will be created. So suppose you have created a flow and there are say 5K record so in your instance you will have 5K flow which will have Wait for duration action that is waiting for the time.
It will be better if you create a scheduled jobs at interval of 1 hour and can query the record updated before 6 hours ago and can trigger the notification. Also you can handle the case where if there are 10 records for specific user then you can trigger a single email with the link for all those 10 records instead of sending 10 separate emails.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2022 01:35 AM
Rightly said, Schedule Job will an extra load on the system and the time won't match either which is 6 hours in this case.
You can create an event with a scheduled time to trigger at a particular date and time,
You can write a server script(Business Rule/Flow ) to trigger an event(scheduled) and the event will take care of the notification (assuming notification is triggered by an event)
Syntax would de :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-07-2022 02:29 AM
Hello @Victor Monteale
I would suggest to have a scheduled Job for this requirement because if you configure the flow or create an event from BR then there will be 1 flow or event for each record that will be created. So suppose you have created a flow and there are say 5K record so in your instance you will have 5K flow which will have Wait for duration action that is waiting for the time.
It will be better if you create a scheduled jobs at interval of 1 hour and can query the record updated before 6 hours ago and can trigger the notification. Also you can handle the case where if there are 10 records for specific user then you can trigger a single email with the link for all those 10 records instead of sending 10 separate emails.