Need help on the pagination on service portal
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 03:19 AM
Hi @Ankur Bawiskar
As per the below script in the ticketlist .length we are getting as undefined.
data.tickets.push(ticketList); We are getting the object
So my concern is how to find the length of the object in the widget?
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 11:53 PM - edited 08-01-2023 11:55 PM
I recommend you build "ticketList" as an array from the get go.
Object.entries(ticketList).length
More info: https://devdocs.io/javascript/global_objects/object/entries