Add custom button in My Tasks page ServiceNow portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2025 03:13 AM
Hello,
Implementing reimbursement management. I have 2 tables Expense Request and Line of Items both are child table of Task. Employee must be able to enter single or multiple line items under single request number.
When a request is created, for Manager the submitted requests comes under My Tasks for Manager to Approve or Reject. But apart from Approve and Reject we also need a 3rd button 'Return for Review', so that incase of incorrect information the submitted request is sent back to the requestor for him/her to edit it and resend back.
How can I achieve this requirement ? Please details the steps/scripts. It must work in both portal as well as Mobile apps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2025 01:16 AM
Create an UI Action, select its position in order, put it on the desired table, give it conditions when it shall be displayed and add the scripted logics of what shall happen when somebody clicks on it.
What exactly is your issue? Have you do something and it does not work or you do not know where to start?
Based on the answer we can start to find solutions
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2025 01:38 AM
As per our R&D, we need to customize My Tasks widget is it correct or Button will be displayed even with UI action also?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2025 01:57 AM
then for that you will have clone the OOTB widget "HRM Todos Summary"
Then add your button there and then add this newly cloned widget to your portal page "hrm_todos_page"
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2025 05:49 AM
No tried inserting button via code but is not working. Will you drop the code for the same