Modification of field within nested path (for pagination) #44913
Replies: 2 comments 7 replies
-
@KrishivGubba While it might be nice to allow for this to be done in those settings with paths, there's another way you can accomplish this in Builder today. First, It's worth noting that the Bill API doesn't actually expect JSON in the body, but rather form-encoded data. So it's really expecting something more like (which is an important distinction on how it needs to be injected):
Here's how you can produce this format while using dynamic pagination:
So the resulting values should look something like this in the case of the example you gave:
. . . then just merge in whatever additional endpoint-specific options your endpoint requires in It's also worth noting that their API v3 (beta) handles this all in the query parameters, which is much easier. So trying those is another option. |
Beta Was this translation helpful? Give feedback.
-
Hi @KrishivGubba I am facing similar problem with another connector (Vinculum). In the value, there is "pageNumber" field where I want to increment the page number and send the next request. My response has the number of totalPages and the currentPage. It looks like this: { How do I make the pagination work? |
Beta Was this translation helpful? Give feedback.
-
I'm trying to build a source connector for the Bill Api, and I'm trying to implement pagination in the Airbyte UI, however I'm facing an issue.
This is what the request body to a Bill API endpoint looks like:
{ "data": "{"start":0,"max":999}", "devKey": "xxx", "sessionId": "xxx" }
For pagination, I need the "start" field which is nested within the data object to be modified/incremented (by 999 in this case). Note: I need pagination because the maximum number of records that the endpoint can return in one go is 999 (which is what I've set it to above ^^).
My problem lies in the Airbyte connector builder, wherein you cannot modify a nested field for pagination:
As you can see, the Key Name field only asks for a key and not the path to the key.
By the way, I need the body data to be in URL encoded format, and I need the injected field to be in the same format as well (well, obviously :) ).
Could you please add this feature please. I need to be able to modify the field according the path I provide.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions