Skip to main content

News Pages Loop

Overview

Loop through 3 pages of Swedish news API and log news count for each page

Suggested workflow name: news-pages-loop-workflow Total nodes: 6 Integrations used: none detected Tags: news, loop, http, logging

Build this in the UI

  1. Create a new workflow in your staging workspace.
  2. Add the nodes below in order and connect them.
  3. Configure credentials, dynamic fields, and required node settings.
  4. Run once with test data and inspect Executions.
  5. Publish after validation, then promote to prod when ready.

Node checklist

  • Add Bootstrap Pagination State (StateUpdate)
  • Add Pages Loop (Loop)
  • Add Fetch News Page (Http)
  • Add Log Page Summary (Code)
  • Add Advance Pagination (StateUpdate)
  • Add Complete (Log)

What to configure in the UI

  • Credentials / secret references: WORLDNEWS_API_KEY
  • Data referenced (state.*): baseOffset, pageIndex, pageSize, totalPages
  • Variables (vars.*): none detected

Related docs:

Troubleshooting

  • If a run fails, inspect node inputs/outputs in Executions.
  • Verify credentials are present and selected for this workspace.
  • Check expression fields for missing inputs, null paths, or invalid formats.