BR

Community Alums
Not applicable

Create a Business Rule on issues such that if priority is 1 it should not allow user to update the issues priority. (Abort operation). Need code for this

2 ACCEPTED SOLUTIONS

sorry I did a quick test, my condition is wrong, it should be something as below

SuyogAptikar_0-1698045047436.png

This will only trigger is priority is getting changed from critical to some other value

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.



Best regards

Suyog

View solution in original post

Also due to want to restrict this only for user action i.e. when someone opens up form and try to do it or it should be restricted for request coming via 3rd party tool i.e. via integration?
if its only user then recommendation of @Vishal Birajdar is valid as it should be only restricted when user is trying to transact.
just for info from BR you can add message as well using gs.addInfoMessage().

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.



Best regards

Suyog

View solution in original post

7 REPLIES 7

Suyog Aptikar
Giga Guru

@Community Alums 

 

Can you try below and see if this works

 

SuyogAptikar_2-1698044407726.png

 

 

SuyogAptikar_1-1698044164268.png

Edit:  Have updated screenshot for 'When to Run'

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.



Best regards

Suyog

Community Alums
Not applicable

Its not working actually i want to prevent user to update the priority when its P1

 

sorry I did a quick test, my condition is wrong, it should be something as below

SuyogAptikar_0-1698045047436.png

This will only trigger is priority is getting changed from critical to some other value

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.



Best regards

Suyog

Also due to want to restrict this only for user action i.e. when someone opens up form and try to do it or it should be restricted for request coming via 3rd party tool i.e. via integration?
if its only user then recommendation of @Vishal Birajdar is valid as it should be only restricted when user is trying to transact.
just for info from BR you can add message as well using gs.addInfoMessage().

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.



Best regards

Suyog