Hi and Thanks for your time! In my extension View....
# suitecommerce
s
Hi and Thanks for your time! In my extension View.js I want to get data of all items available in webstore. But using PLP.getItemsInfo() gives me array of only items that are currently being displayed on page (after pagination, filtering...). Is there any way I can achieve this by only using the Extensibility API or do I have to send request to NS to get all items data? Thanks
Ok, made some progress using Item search API url. Used the container.getComponent('Search').getUrl() which returned a url. Sent a GET request on the url in View.js using XMLHttpRequest. BUT this returned array of 50 items/products whereas shows total: 68. Does anyone know which type of items are being skipped and why? Thanks
d
The default pagination limit from the search API is 50 items. You need to send offset and limit params to get different paginated results
👍 1
s
And yes, you're dealing with pagination. You will need to read the item search API docs on traversing results
👍 1
s
Thanks @Dominic B
Thanks @Steve Goldberg