Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Condition in an edit button

Juan18
Tera Contributor

Hi all,

 

I need to do a condition in an edit button to show this button only to the assignment group in a table. How can I take the current assignmet group in the condition?

 

Thanks a lot

6 REPLIES 6

Ayushi12
Mega Sage

Hi @Juan18,
You can add the below script in the UI Action condition:
!current.assignment_group.nil() && gs.getUser().isMemberOf(current.assignment_group.toString())

Please mark this response as correct or helpful if it assisted you with your question.

Juan18
Tera Contributor

I tried this and doesnt run in edit button