- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 12:18 AM
Hello,
Created one table in that there is a relation with asset(alm_asset) table,i created one ui action in asset table this ui action is showing every table which is linked to asset.How to show that ui action only to my particular asset table.Please help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 01:42 AM
in that case you can add this condition in that UI action
try this
parent.getTableName() == 'lost Request table name'
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 12:29 AM - edited 03-31-2023 12:29 AM
Hi,
You may use the script "current.getTableName()" in UI Action's "Conditions" to get the current table name and put the restriction on the button to be visible on desired child tables.
Hope this helps.
Regards,
Dhruv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 12:31 AM
@Shaik22 - In UI action select the table as 'your table name' and use condition to apply filter to show UI action when some condition meets.
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 12:37 AM
UI action is created on which table?
share screenshot.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 12:52 AM
Asset(alm_asset) table.i created a table name 'lost request' in related list asset table is there and created one ui action 'stock' on asset table.My issue here is i want to show that ui action in lost request table only.but the ui action is reflecting to all tables for example transfer order,disposal order tables.How to resolve this.