service portal : my approval count how can we handle

sam1212
Mega Expert

Hi All,

I am trying to understand how the out of box service portal is able to handle the my approval count.

When we approve any request it automatically reduce the approval count on the header menu , i have check the approvals widget but no much information on how to reduce the number on the header.

Any help is appreciated.

1 ACCEPTED SOLUTION

larstange
Mega Sage

If you need a count to be updated in your own widget, you need to apply "record watchers" to update your data model.



See this guide Real Time To Do App using Service Portal & Record Watchers - ServicePortal.io - Service Portal, CMS,...


View solution in original post

4 REPLIES 4

larstange
Mega Sage

Hi



Its not a widget - its defined in the menu.



Go to Service Portal -> Menus -> Open the Header Menu for "Service Portal for Enterprise Service Management"


find_real_file.png


In here the Menu for "Approvals" is defined as a scriptet list. This scripts add the appropriate record watcher and returns the count


Hi Lars,



Thanks but i was looking for some other solution .


scenario :



I have a page which has a   common   widget which serves as header and shows the approval count   just like in the SP header Menu. But when i click on the Approval count link it goes to a different page and shows the approval records where we can reject or approve and that page includes the common header .


When i approve the record the count on the header widget should be also get updated . I was looking for this solution.



IF you see the out of box when we click on Approvals (view all my approvals) it goes to to approvals page which shows all the approval record and when we approve or reject the count on the header gets approved.



I am trying to find how the count is updated in this scenario.


nathanfirth fschuster   you help or give any suggestions.


larstange
Mega Sage

If you need a count to be updated in your own widget, you need to apply "record watchers" to update your data model.



See this guide Real Time To Do App using Service Portal & Record Watchers - ServicePortal.io - Service Portal, CMS,...


Thanks Lars perfect it worked.