Hide Export Option within context menu?

Edwin Fuller
Tera Guru

Is there a way to hide or remove the "Export" option within the context menu?

find_real_file.png

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Edwin,



You can refer to my answer for below thread


Can we restrict user to click on group by link



This might be useful for you to hide the Export button itself. You can try it out.



Mark my reply as Correct and also hit Like and Helpful if you find my response worthy.


Thanks


Ankur


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

View solution in original post

10 REPLIES 10

Hi,

you can add more conditions for other table

something like this

current.getTableName() !='sys_user_group' && current.getTableName() !='tablename2' && current.getTableName() !='tablename3'

Regards
Ankur

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

Hi Ankur,

The condition field is not allowing to include the tables that I need, because the field has limited length and unable to increase the length too.

Hi,

then you will have to create script include and include the complete UI action condition code in it and call that script include function in UI action condition field

Regards
Ankur

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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Edwin,



You can refer to my answer for below thread


Can we restrict user to click on group by link



This might be useful for you to hide the Export button itself. You can try it out.



Mark my reply as Correct and also hit Like and Helpful if you find my response worthy.


Thanks


Ankur


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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Edwin,



Any progress on this.


If your query is resolved please mark my answer as Correct and hit Like and Helpful.



Thanks


Ankur


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