Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

My Approvals Widget "Loading Approvals"

Chad31
Mega Expert

Good Morning everybody. 

I have an issue where when an approval is requested on an INC, the my approvals widget on the service portal for the approver just says loading approvals. 

find_real_file.png

When I remove the approval it goes back to No pending approvals. When looking into this I see that in the HTML for the widget this is what causes that message 

<div ng-if="data.approvals.length == 0 && data.pagination.of != 0">
${Loading approvals...}
</div>

and in the server side script this is what sets pagination 

// for pagination
data.pagination = {};
data.pagination.hasNext = (approvals.length == (parseInt(lastRow) - parseInt(initRow)) && lastRow < rowCount);
data.pagination.hasPrevious = parseInt(initRow) > 0;
data.pagination.from = parseInt(initRow + 1);
data.pagination.to = parseInt(lastRow) < parseInt(rowCount) ? parseInt(lastRow) : parseInt(rowCount);
data.pagination.of = parseInt(rowCount);
data.pagination.showPagination = data.pagination.hasPrevious || data.pagination.hasNext;
data.pagination.currentPage = data.pagination.from > data.pagination.to ? currentPage -1 : currentPage;

The approver has approval user rights, and when I give them ITIL rights, the approval widget shows the approval correctly. Can anybody point me in the right direction on how to resolve this? 

11 REPLIES 11

rachelconstanti
Mega Sage

I am having a similar issue - did anyone ever get this resolved?

admin03
Tera Contributor

Hello Chad31,
Did you find the solution for the above query? if so could you please share it with us? I got the same issue