Webservice Saas connector pagination issue

Below is the pagination payload for webservice saas connector. How can i use this for postman and in UI.

Pagination is cursor-based using limit and after.

users, after = , None
while True:
params = {“fields”: “roles,domains”, “limit”: 100}
if after:
params[“after”] = after
data = requests.get(f"{BASE_URL}/v1/users", params=params,
headers=HEADERS).json()
users.extend(data[“data”])
after = data.get(“paging”, {}).get(“after”)
if not after:
break

Hi @nandiniks1

You could use the paging configuration available for the Web Services SaaS connector.

From the information provided, you can try the following:

TERMINATE_IF $response.paging.after$ == NULL || $response.paging.after$ == “”
$endpoint.fullUrl$ = $application.baseUrl$ + $endpoint.relativeUrl$ + “&after=” + $response.paging.after$

This is working under the assumption that the relativeUrl (under the aggregation operation) is being set to /v1/users?fields=roles,domains&limit=100 and the after query parameter is being appended after the first execution.

Hope this helps!

Yes, the applictaion is Collate saas connnectivity. Let me try this and revert if it helps.

Hi @nandiniks1 - were you able to resolve the issue?