Add error message when adding Parent & child incident

Kusuma Sai
Mega Guru

Hi sir,
1. If i have a added a Parent incident by using reference field - then show the error message on the form
2, If i am adding a child incident by using related list - then show the error message on the form
for 1st scenario - i have written OnChange cs- it works perfectly.

for 2nd scenario - i have written after BR - update - works fine. but when added a parent incident then update/save the incident then it was showing the AfterBR error message. it won't comes when adding a incident in the reference field. please suggest
@Ankur Bawiskar , @Kieran Anson@AndersBGS 

Screenshot 2025-04-16 171652.jpg

1 ACCEPTED SOLUTION

@Kusuma Sai 

it's a expected behavior

the business rule will run when you change the reference field and it's a change to parent field and the BR condition will satisfy and it will throw error

Also when the record is linked with parent via New/Edit the same BR will run as parent field is getting updated.

I believe this much info should help you.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

24 REPLIES 24

@Kusuma Sai 

this is the expected behavior I already informed earlier

Please keep as it is and BR will handle everything

AnkurBawiskar_0-1745220994440.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Yes @Ankur Bawiskar sir, my bad. can you please there is any solution for this.
or else - can you please provide any Info to explain this behavior

@Kusuma Sai 

it's a expected behavior

the business rule will run when you change the reference field and it's a change to parent field and the BR condition will satisfy and it will throw error

Also when the record is linked with parent via New/Edit the same BR will run as parent field is getting updated.

I believe this much info should help you.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hello @Kusuma Sai ,

 

Unless there is some big misunderstanding you want the info message to show when someone adds a child incident, and when someone adds a parent incident. Correct?

In that case, as mentioned before, just keep the Business Rule as it will take care of both scenarios. No need for an additional Client Script.

 

Regards,

Robert

Yes @Robert H , info message need to show - when adding a child.
but if any user added parent incident - instead of child - this info showing -  because of in the backend current incident is adding as child - then executing the BR, showing Info message.