Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

How to call system property in ui action condition field

siva14
Tera Contributor

We have a UI action field called "copy incident" in incident form,  i want to visible only for 3 groups, so i created string property, and using that property in ui action condition field, but it is not working , anyone please help

 

siva14_0-1712150122638.png

 

siva14_1-1712150149156.png

 

#ui action #sys properties

3 REPLIES 3

Abhijeet_Pawar
Tera Guru

Hello @siva14 ,

I believe you have passed the sys_id of the group in the value field of the system property.

You can use the following script in the condition of the UI action:

gs.getUser().isMemberOf(gs.getProperty('glide.ui.copy_incident'))

I hope this resolves your issue.

Thank you.

Regards,

Abhijeet

Hi @Abhijeet_Pawar , i have already tried this, this is also not working, when i impersonate the group member, i didn't the see the UI action

 

siva14_0-1712227416358.png

 

Hello @siva14,

I used a system property in the UI action, and it's working well.

Your UI action isn't working because of the extra condition you added.

Thanks,

Abhijeet