Search-After Pagination

Comments

7 comments

  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Yash Kumar is there a specific endpoint with documentation that you're thinking about? 

    0
  • Yash Kumar Salesforce Integration Whiz NetSuite Integration Whiz
    Awesome Follow-up
    Engaged
    Magento 2-NetSuite IA Certification
    Salesforce-NetSuite IA Certification
    ZenDesk-NetSuite IA Certification
    Celigo University Level 4: Legendary

    Tyler Lamparter Yes, Here's the link to the endpoint Documentation. 

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Yash Kumar it looks like you would just use the "next page url" option in IO. From the docs, they respond with a next url link that has the search_after parameter already filled for you.

    0
  • Yash Kumar Salesforce Integration Whiz NetSuite Integration Whiz
    Awesome Follow-up
    Engaged
    Magento 2-NetSuite IA Certification
    Salesforce-NetSuite IA Certification
    ZenDesk-NetSuite IA Certification
    Celigo University Level 4: Legendary

    Tyler Lamparter This configuration is something which we are already using .

     

    Well here's the confusing part, is the "Search after pagination" same as "Next page URL"?

    Current configuration i.e "Next page URL" works fine for smaller number of records. 

    But the moment we try to perform the bulk import it throws the error in the screengrab below. 

    This is what lead to the conflict that is Search after is different from "Next Page url"!

     

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Yash Kumar what does the rest of your setup look like? What do you have in the relative url section of the export setup? 

     

    Everyone's terms for paging vary, but in this case, we use next page url because they are returning you a full url to use to grab the next page. Within that url, it specifies the page mechanism. Based on their docs, it says to use the _links to get the next page as you can't explicitly come up with the query parameter on your own.

    0
  • Yash Kumar Salesforce Integration Whiz NetSuite Integration Whiz
    Awesome Follow-up
    Engaged
    Magento 2-NetSuite IA Certification
    Salesforce-NetSuite IA Certification
    ZenDesk-NetSuite IA Certification
    Celigo University Level 4: Legendary

    Tyler Lamparter Here's the complete export setup:-

    GET- Call

    api/rest/v1/product-models?search={"updated":[{"operator":">","value": "{{lastExportDateTime}}"}]}

     

    0
  • Tyler Lamparter Principal Product Manager
    Awesome Follow-up
    Engaged
    Top Contributor
    Answer Pro
    Celigo University Level 4: Legendary

    Yash Kumar this is interesting because the next link url we're using clearly has paging method as search after. Can you debug that export step and review the requests being sent out? 

    0

Please sign in to leave a comment.