- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 10:58 PM
Hi Team,
There is a requirement that whenever the Service Offering.business_Criticality is 3 then Priority shouldn't be Critical and if it's Critical then user shouldn't be able to submit/save the incident form.
Which is the Best way to do this? BR or Client script?
@Ankur Bawiskar which script is recommended for this?
Thanks in Advance,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 11:30 PM
Hi @Balaraju K B ,
Before business rule should be the right choice on this case. If you go with on submit client script then you need to make server call using glideAjax to get the service offering business criticality , so better go with before BR.
Please accept the solution or hit like if it helped you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 11:30 PM
Hi @Balaraju K B ,
Before business rule should be the right choice on this case. If you go with on submit client script then you need to make server call using glideAjax to get the service offering business criticality , so better go with before BR.
Please accept the solution or hit like if it helped you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2024 02:05 AM
@Runjay Patel I have used onSubmit client script for this without involving server processing with Business rule.
We can do this via BR also but opted Client script. Thank you for the reply Runjay.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2024 05:13 AM
It depends on what's the business requirement but you can go with either component.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader