Skip to main content
The “pull latest records” strategy involves fetching records based on their creation, update, or deletion date. Use this strategy when the external app does not support webhook events.

Configuration Example

Functions

There is only one method: pullLatestRecords.

Pull Latest Records

File: <event-type>-pull-latest-records.<ext>, for example created-pull-latest-records.js Arguments:
  • cursor – string, cursor returned from the previous page of the results. If not provided, the first page is returned.
  • parameters – object, parameters (matching parametersSchema) of this particular data collection.
Result:
  • records – list of objects representing records, ordered by creation date or date-time in descending order.
  • cursor – string (optional) providing information to retrieve the next chunk of records if pagination is allowed.
Example Implementation: