How to create Catalog UI Policy on Incident (record producer) to apply UI Policy action to variable?

Bird1
Mega Sage

I am creating 1 record producer to Incident table. There are some variable in this catalog.

What I need to do is to create UI Policy if Incident state is in Resolved, the variable field must be mandatory to fill in.

I cannot set the condition on Incident state, I could see only variable field. Anyone can help?

find_real_file.png

1 ACCEPTED SOLUTION

Hi,

you have not read my earlier response.

You need to create normal client script on incident table and not catalog client script and then use script I shared

find_real_file.png

Regards
Ankur

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

View solution in original post

11 REPLIES 11

Kailash Bhange
Kilo Sage
Kilo Sage

Hi Bird,

I suppose that the Incident will be created once the record producer is submitted right? and the state of incident will not be Resolved until it is manually done.

 

Can you please confirm if you are pushing variable value on incident (any field) and that needs to be mandatory?

 

Hope this helps.
If my answer resolves your issue, please mark my answer as ✅ Correct & Helpful based on the validations.

Thank You!
Regards,
Kailash

 

You're right. I do need below variables to be mandatory once it's manually changed to "Resolved".

 

find_real_file.png

Hi Bird,

have you tried this way.

you can use below Sample UI policy and change the UI action field name according to your use.

find_real_file.png

 

Hope it helps

Mark it Helpful and Correct.

Thanks

Anand

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use onChange normal client script on incident table and make variable mandatory when state changes to Resolved

Regards
Ankur

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