Azure Synapse Analytics - Pipeline API source with pagination

Nico Deunk | Bliksems! 1 Reputation point
2023-12-14T08:26:04.9566667+00:00

We use a pipeline in Azure Synapse Analytics to retrieve data from a REST API. This API has pagination support. The response contains a 'nextLink' value when there is more data to retrieve. Het nextLink value is a relative path to the API base URL. The problem is that Synapse determines the base URL itself and does not take the base URL from the integration dataset.

Setup
Integration dataset base URL: https://api.<system>.nl/wfm/
Relative URL in nextLink response: /v1.0/persons?key=...

Synapse will create a request to: https://api.<system>.nl/v1.0/persons?key=...
So the /wfm/ part is missing.

Anyone suggestions how to resolve this? Thanks.

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,295 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Wilko van de Velde 2,231 Reputation points
    2023-12-14T08:42:18.6633333+00:00

    Hi @Nico Deunk | Bliksems! ,

    It is possible to create a dynamic relative URL in the dataset:
    User's image

    Use the concat function to combine several strings, for example:

    User's image

    Here I combine the string '/wfm/' with a dataset parameter.

    Hope this will help

    Kind Regards,

    Wilko


    Please do not forget to "Accept the answer” wherever the information provided helps you, this can be beneficial to other community members. If you have extra questions about this answer, please click "Comment".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.