How to create counter for "My Requests" on service portal header menu

Sriram18
Tera Contributor

Hi All,

How to create a counter for "My Requests" in the portal header menu like "My Approvals".

**Attached the image.

The count value should consider:

  • User's Incident(s) in state On Hold / awaiting caller
  • User's Requested Items in state On Hold / awaiting caller
  • If no tickets in this state - show "0" on the counter and make the circle green

 

It will be really nice to see if you are able to help me with the steps and some code.

 

Thanks in advance.

 

/BR

Sriram

1 ACCEPTED SOLUTION

Sam126
Tera Expert

Hi Sriram,

You'll have to create a 'Scripted List' type Menu item to replace the Page type 'My Requests' Menu item.
Have a look on table sp_rectangle_menu_item_list at the OOB options for My Approvals to get an idea.

These may help:

https://community.servicenow.com/community?id=community_question&sys_id=713b44b4db9ba050da1999ead396195d

https://community.servicenow.com/community?id=community_question&sys_id=41dd91c7dbc10010414eeeb5ca96192c

https://community.servicenow.com/community?id=community_question&sys_id=ef9ef370dbaa84904819fb2439961977

View solution in original post

2 REPLIES 2

Sam126
Tera Expert

Hi Sriram,

You'll have to create a 'Scripted List' type Menu item to replace the Page type 'My Requests' Menu item.
Have a look on table sp_rectangle_menu_item_list at the OOB options for My Approvals to get an idea.

These may help:

https://community.servicenow.com/community?id=community_question&sys_id=713b44b4db9ba050da1999ead396195d

https://community.servicenow.com/community?id=community_question&sys_id=41dd91c7dbc10010414eeeb5ca96192c

https://community.servicenow.com/community?id=community_question&sys_id=ef9ef370dbaa84904819fb2439961977

Sriram18
Tera Contributor

Hej Sam,

Thanks for the quick answer, I was trying multiple ways to perform this action. I confirm I am able to understand the 3 links and develop my use case using your reply.

 

Thank you

Sriram