Which executes first ,UI policy action or UI policy script?

Rohith16
Tera Contributor

When runnning ui policies ,which executes first ,whether UI policy action or UI policy script?

26 REPLIES 26

Hi @Robert H , 

 

I tested as you suggested and I confirm what you mentioned is right. 

 

Learned something new today, Thank you ! 🙂 

To @anyone who is looking for a confirmed answer here - UI Policy actions gets executed first and then the script. 

 

Thanks,

Gopikrishnan

NamanChaturvedi
Tera Contributor

Hi @Rohith16

So try a scenario, create an UI policy on incident table, create an UI action to make description field mandatory, under when to apply -> priority is 1-critical. Also create a script in -> Execute if true section - alert("Description mandatory now for P1 incident"). 

Create an incident with this now, you'll notice that the alert runs first, then the description becomes mandatory, which suggests that - UI policy script runs first then the UI policy action runs.

Mark my answer as helpful if applicable.

Thanks
Naman Chaturvedi