disable "Fail"button and "Fail selected fields" button for end users in CMDB workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2025 09:50 AM - edited 01-03-2025 12:33 AM
Hi All,
I am working on CMDB attestation tasks functionality .Want to disable disable "Fail" button and "Fail selected fields" button for non-admin users when they are reviewing the task in CMDB workspace.
Fail button--> CMDB workspace>> Mywork>>Task>>Select one task >>"fail" button would be enabled.
"Fail selected fields" button -->CMDB workspace>> Mywork>>Task>>Select one task >>click on review records button>>"Fail selected fields" button would be enabled.
Any pointer would be helpful to disable these buttons.
Thanks & regards,
Abhishek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2025 01:07 PM
Hi @_bhishek
The end user in this context refers to someone who can simply use the portal. The WS is not built for end users. To disable this feature is not simple, as the buttons are part of the WS and are called declarative UI actions. You will need to locate these actions within the system and then add the necessary conditions. It is better to educate the users about this process rather than attempting to disable it.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2025 01:30 AM
Hi Atul,
Thanks for your response,
I was referring to non-admin users .I want to disable these buttons for them .As they are just failing with these buttons .Could you please suggest me on steps ,how can i approach this requirement .I am bit new in declarative UI actions.
Thnaks & regards,
Abhishek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2025 01:51 AM
Hi @_bhishek
You can find these buttons under UX declarative actions, and then you need to add conditions as we add them to normal UI action.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 07:47 AM
Hi Atul,
Thanks for your response . I checked all declarative actions .But I don't find any action named like these buttons .I checked in UI builder. In Ui builder ,I checked under CMDB workspace .In CMDB workspace ,I see one "List fail action" which is for one button "Fail".If I am adding condition in disabled section as below ,it is not working .Also to save this ,I need to create duplicate which is causing 2 buttons in workspace.Could you please help me here.
!g_user.hasRole('admin')
How can i check another button 'Fail Selected Fields'. I am not able to find that in UI Builder.
Thanks & regards,
Abhishek