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.

Hide retire button Knowledge article based on user.

nivethika
Tera Contributor

In the knowledge base table there is custom field with reference to group table

nivethika_0-1750742554737.png

Only user belongs to this group can retire this specific knowledge articles attached to this KB.

If the user not belongs to this group should not retire i/e retire button should be invisible for them in kb article form.

 

How can i achieve this please help me to find the solution.

 

10 REPLIES 10

So i should add this condition "new RetireButtonVisibility().checkRetireCondition(current)" in my existing Retire Ui action record?

 

@nivethika 

yes try with 1 UI action first and then check for others.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

@nivethika 

I believe I have answered your question with all the details.

I hope you can enhance it further based on your requirement.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

I am trying the solution will let you know once it worked

 

Thank you so much @Ankur Bawiskar 

It didn't worked for me by adding that in my condition. Is there any other way to achieve it.