I understood that your activity should call the API to get a new access token and store it in a pipeline variable access_token
.
After the Web Activity, add a Set Variable activity to store the token obtained from the Web Activity into the access_token
variable and use it to to set the Authorization header
Since you need to refresh the token every 15 minutes, consider breaking down your copy activity into smaller chunks that run for less than 15 minutes each.
Then set up the pagination rules as per the API documentation. This usually involves specifying how to fetch the next set of results. ADF currently doesn't support dynamic content for headers in the pagination rules section. This is a limitation as of my last update in April 2023.
As a workaround, you can break your copy activity into smaller batches that complete within the token's validity period. If the standard activities in ADF don't meet your requirements, consider using an Azure Function or a custom activity to handle the data extraction and pagination logic, including token refresh.
Links to check :