Add custom button in My Tasks page ServiceNow portal

ShivangiC
Tera Contributor

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

4 REPLIES 4

GlideFather
Tera Patron

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! */


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?

Ankur Bawiskar
Tera Patron
Tera Patron

@ShivangiC 

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.

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

No tried inserting button via code but is not working. Will you drop the code for the same