Hey.
In our currently private integration, we want to support Transfers for REST hook triggers. Is it possible to do it in the Zapier UI?
Up until now we had no pagination support. Triggers are configured in Code Mode so there is no “Can paginate” checkbox. Do we have to set in the the code (in Perform List)?
This is how Perform List currently looks like (with pagination attempt).
...
let pageSize = 5;
if (bundle.meta.isBulkRead) {
// Called from Transfer
pageSize = 50;
}
const options = {
url: `${process.env.REST_API_BASE}/objects/search`,
method: 'POST',
body: customBody,
headers: {
'Content-Type':'application/json',
'Accept': 'application/json',
'Authorization': bundle.authData.api_key
},
params: {
per_page: pageSize,
page: bundle.meta.page + 1,
},
};
return z.request(options)
.then((response) => {
response.throwForStatus();
let result = response.json.objects;
return result;
});
Hopefully this question makes sense.
Thanks.