Business rule Abort action not working

VISWANATH KAMAL
Tera Contributor

I have given abort action for a table in a Business rule based on the conditions it is not creating a entry in the table as expected when we try to submit from portal but in native UI it is creating the entry in the table. How to stop creating the entry in table even we try to submit from native UI.

7 REPLIES 7

Business rule work at server level & thus should work irrespective of portal or native UI.

Please share the configurations & trigger conditions for the BR.

Riya Verma
Kilo Sage
Kilo Sage

Hi @VISWANATH KAMAL ,

 

Hope You are doing great.

To troubleshoot try following below steps to check the issue:

  1. Verify that the abort action is properly implemented within the Business rule. The abort action should be triggered based on the specific conditions that indicate the entry should not be created in the table.

  2. Check the sequence of the Business rule within the system. If there are multiple Business rules operating on the same table, ensure that the abort action is placed before any other rules that might override it. The order of execution is crucial in ServiceNow.

  3. If you have confirmed that the abort action is correctly implemented and the sequence of rules is appropriate, consider examining the differences between the portal and native UI submission processes. Look for any specific events or functions triggered during the submission process that might affect the creation of the entry.

  4. Utilize client-side scripting or UI policies to enforce additional validation rules on the native UI submission form. By adding these validations, you can prevent the submission of the form if certain conditions are not met, thus avoiding the creation of the entry in the table.

if this doesn't work , please share confguration built to look into it.

 

Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma

Kamal17
Kilo Sage

Ideally the server side script works in same way for both native UI and portal UI. Maybe you can share the screenshot of your BR.
Note: Abort action works only in global scope and fails in other scopes. So you can double check if the abort action is executed in global scope.