What is your goal?
in the trigger I want to send the last_id in the second time, the first time it will be 0
What is the problem?
i’m not able to get the last id or the make is not sennding it
What have you tried so far?
i have tried “last_id”: “{{ifempty(trigger.id, 0)}}” but not getting
here is my code:
{
“url”: “/contacts”,
“method”: “GET”,
"headers": {
"Authorization": "Bearer {{connection.accessToken}}",
"Content-Type": "application/json"
},
"qs": {
"size": 100,
// This handles the "Next Execution" (Run 2, Run 3...)
"last_id": "{{ifempty(trigger.id, 0)}}"
},
"response": {
"iterate": "{{body.data}}",
"trigger": {
"type": "date",
"id": "{{item.id}}",
"date": "{{item.created_at}}",
"order": "desc"
},
"output": "{{item}}",
"limit": "{{parameters.limit}}"
},
"pagination": {
"condition": "{{body.meta.remaining > 0}}",
"qs": {
"last_id": "{{body.meta.last_id}}"
}
}
}
here is the api response: (postman)
{
“success”: true,
“status”: “success”,
“message”: “Contacts found”,
“data”: [
{
“id”: 114,
“uniqueid”: “dandasdn”,
“firstname”: “Fname”,
“lastname”: “Lname”,
“email”: “name@exaple.com”,
“phone”: “”,
“address”: “”,
“country”: null,
“note”: null,
“created_at”: “2025-08-03T14:44:01.688Z”,
“updated_at”: “2025-11-07T15:03:11.946Z”
}
],
“meta”: {
“last_id”: 114,
“returned”: 100,
“remaining”: 1019,
“total_after_last_id”: 1119
}
}
