Business Should run only once irrespective of Records updated or inserted

Rahul Jonnadul1
Tera Contributor

Hi Team,

Irrespective of Records inserted or updated Business Rule will have to trigger only once ..

Could you Suggest?

Thanks & Regards,

Rahul

9 REPLIES 9

Muhammad Khan
Mega Sage
Mega Sage

Hi Rahul,

 

Why don't you go with Scheduled Job ?

 

 

Hopefully, this will give you a direction.

Its not working on scoped applications

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

 

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;

find_real_file.png

 

Hopefully, this will resolve your query.