
Announcements
Hello,
I'm building a Custom Connector on a odata service. For listing rows I want to use Pagination. I've added the following to the OpenAPI definition.
x-ms-pageable:
nextLinkName: '@odata.nextLink'
By default the Odata API i'm calling does not have a @OData.nextLink element. So with Custom Code I construct the correct URL and add the nextLink in the response.
When I now use my action in Power Automate and enable pagination it just gets the first 2 pages.
How do I know? I ended up with a Unauthorized error when pagination was enabled. When I put the correct authorization in the query string when constructing the next link the error went away. So no Authorization was added by the Custom Connector. Also, I added additional Custom Code for debugging, to make sure that my Custom Code is indeed not called.
What have I tried and/or found?
Specified swagger has the following errors: 'Definition is not valid. Error: 'Critical : paths/~1odata~1{entityName}/get/x-ms-pageable/operationName : The property 'operationName' is not allowed and must be removed.​
The name of the property at the root of the response that has the next link url.
Usage: Be sure to use the policy template (id: `updatenextlink`) to enable the correct routing of this link.
I'm unable to find any reference or documentation to policy template 'updatenextlink'.
Who can help me get the paging working for my Custom Connector? What am I doing wrong? It needs to Custom Code in order to add the @OData.nextLink in de response. So it needs to call my Custom Connector to do so.