Employee Center My Active Items showing a count, but when you click it, then next page is empty

Steven Parker
Giga Sage

So just configuring the Employee Center and noticed that a non-itil user can't see their request, even though the "My Active Items" widget shows the correct count.

 

How can I fix this as I am fairly new to Employee Center?

 

StevenParker_0-1747418592149.pngStevenParker_1-1747418600137.png

 

 


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven
6 REPLIES 6

You're on the right track. The Activity configuration has the "getRequestsCount" function being called. You can navigate to that script include, find that function and follow the trail of where they are building the query to get the count. 

 

My apologies as I'd get you screenshots but my PDI is currently down due to issues with SN. If I can get it back up and running then I will add some screens for you. What I am guessing is happening is that function is querying using the correct conditions since you stated it's show the right count which is displayed on the homepage.

 

Once you find the query conditions you can then compared it to the conditions shown in the Request Filter record and correct what's missing/wrong so the records on the "My Requests" page would properly display

Turns out...we have a record separation business rule that keep some groups from seeing other groups catalog task.  This business rule was inadvertently causing the issue I was seeing on the Employee Center.  So I added a condition where the BR only runs if the URL doesn't have .com/esc in it.

 

&& GlideTransaction.get().getRequest().getHeader("referer").indexOf('.com/esc') == -1

 

This resolved the issue.  I can't believe I forgot about that business rule possibly blocking viewing.


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven