Condition based on system property

Patrik
Mega Contributor

Hi,

I found problem with condition in UI Actions. I need to show form button only when Task is assigned to group which is one of the groups defined in system property. Is there any way how to make script codition of UI Actions or I'll have to make it different way?

2 REPLIES 2

Mark Roethof
Tera Patron
Tera Patron

Hi there,

An example from an out-of-the-box UI Action condition:

gs.getProperty('glide.ui.update_is_submit') != 'true'

So gs.getProperty will do the trick for you. Something like current.assignment_group == gs.getProperty('your_group_sys_property'). <-- note assignment_group is a sys_id.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi Mark,

This will work only with one group in sys_property but I have string with groups which I need to parse them first.