Knowledge Article - Publish Button

Madhumita Das1
Tera Contributor

@AnubhavRitolia 

 

How to make 'Publish' button on Knowledge Article visible only if user has 'knowledge' role and user is member of Ownership Group.

 

1 ACCEPTED SOLUTION

AnubhavRitolia
Mega Sage
Mega Sage

Hi @Madhumita Das1 

 

You can put below code in your 'Condition' field of Publish UI Button:

 

gs.hasRole('knowledge') && gs.getUser().isMemberOf(current.ownership_group)

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

View solution in original post

1 REPLY 1

AnubhavRitolia
Mega Sage
Mega Sage

Hi @Madhumita Das1 

 

You can put below code in your 'Condition' field of Publish UI Button:

 

gs.hasRole('knowledge') && gs.getUser().isMemberOf(current.ownership_group)

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023