Business Should run only once irrespective of Records updated or inserted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2022 07:00 AM
Hi Team,
Irrespective of Records inserted or updated Business Rule will have to trigger only once ..
Could you Suggest?
Thanks & Regards,
Rahul
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2022 07:03 AM
Hi Rahul,
Why don't you go with Scheduled Job ?
Hopefully, this will give you a direction.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2022 10:10 AM
Its not working on scoped applications
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2022 10:24 AM
hi Mohammad,
Thanks for your response
There is not certain time.
when the records got updated all the records the business rules will run only once
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2022 01:11 PM
Well, then I will suggest you to use On Demand Scheduled Job and execute it from the script where you are inserting or updating records. Execute it after all records have been inserted or updated.
You can use the below script to execute scheduled job via server script.
var grJob = new GlideRecord('sysauto_script');
if (grJob.get('<sys_id_of_scheduled_job>'))
SncTriggerSynchronizer.executeNow(grJob);
You can find this script statement in the UI Action "Execute Now" which is for scheduled job. See the below image for reference;
Hopefully, this will resolve your query.