Delete business rule?

p t1
Kilo Sage
Kilo Sage

Delete business rule?

can anyone give me example for before(delete) and before(insert/delete) business rule??

7 REPLIES 7

Daniele Songini
Tera Guru

Hi,

before(delete) executes the code before the record is deleted.

if for example you write in the BR gs.log (' test '); before deleting the record, the BR will write the log.

instead the before(insert/delete) run the code before deleting or updating the record.

If, as in the example above, you write the log in the BR, if you update the record (for example writing a field) before saving, the BR will write in the log.

Look at this for more info

Business rules

Please mark this as "Correct Answer" if I have given you a sufficient answer to your question.

Best Regards,
Daniele

 

 

SagarTajane
Kilo Expert

Hello Pallavi,

 

Please go through below before Delete  business rule. User can not delete "guest User acccount".

 

 

 

 

Abort action with message:

 

 

 

Before Insert Example :

==================

Before inserting record into database , check it that record is already available or not.

 

Advanced

 

 

Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks
Sagar Tajane

Shweta KHAJAPUR
Tera Guru

Hi,

Please refer below link which has the requirement, where we have achieved the requirement using  Before insert BR and reverse of that can be achieved using before(delete) BR.

https://community.servicenow.com/community?id=community_question&sys_id=fb22f37bdb879700a39a0b55ca96...

p t1
Kilo Sage
Kilo Sage

can you tell me  when we will use async business rule...any situation