Forum Discussion

salesopsintegra's avatar
salesopsintegra
New Contributor II
4 years ago
Solved

URL Pagination, but it's buried within the string

This article is very similar to my question. I’m in a bit of a different boat though. My pagination is buried as a string within a string within the headers - not entity. I am able to parse ...
  • del's avatar
    4 years ago

    Hi @salesopsintegration,

    Okta is also one of my use cases, so I’ve worked this out before. Here is my approach (there are alternatives to the syntax):

    For copy/paste…
    Has next:    $headers.link.contains("\"next\"")
    Next URL:    $headers.link.replace(/^<(.+)>.+/,"$1")