capabilities.work

Scan With Pagination

A 2-step recipe with Amazon DynamoDB. We can help you get access.

Recipe · 2 steps

Scan With Pagination

Scan a table and follow LastEvaluatedKey until the Scan is complete.

  1. Run the initial Scan over the table.
  2. Continue the Scan from the previous page's LastEvaluatedKey, looping until DynamoDB returns no further LastEvaluatedKey.
What you'll need to have ready
  • tableName: The name of the table to Scan.
  • filterExpression: Optional filter expression to apply to scanned items.
  • expressionAttributeNames: Optional substitution tokens for attribute names.
  • expressionAttributeValues: Optional values substituted into the filter expression.
  • limit: Maximum number of items to evaluate per page.
For your developer

Arazzo workflow amazon-dynamodb:Scan-paginate, 2 operations: Scan → Scan. Specs on APIs.io.