Skip to content
Proud to collaborate with Microsoft for Startups

bling.sync-products ​

Iterates through every page of Bling /produtos (optionally filtered by since for incremental sync), aggregating counts. Each page is fetched via the bling.fetch-product workflow, so retries and rate limiting are inherited from that workflow.

Paginate through Bling /produtos via repeated bling.fetch-product.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-bling
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
sincestringNo—ISO date — only products altered on/after
limiteintegerNo—Page size. Default 100.
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
connection_uuiduuidYes——
sincestringNo—ISO date — only products altered on/after
limiteintegerNo—Page size. Default 100.
actorstringNo——
current_pageintegerNo—Next page to fetch (1-indexed)
synced_countintegerNo—Total items fetched across all pages so far
persisted_countintegerNo—Total commerce_entity rows upserted across all pages
created_countintegerNo—New commerce_entity rows inserted (subset of persisted_count)
updated_countintegerNo—Existing commerce_entity rows updated
last_page_itemsjsonNo—Items from the most recent page (capped); useful for spot-checks
has_next_pagebooleanNo——
effective_sincestringNo—ISO date used as the actual since filter — input.since wins, else the cursor's last_synced_at, else null.
max_provider_updated_at_seenstringNo—Tracks the max provider_updated_at across all upserted items to use as the next cursor value.
started_atstringNo——
completed_atstringNo——
failure_reasonstringNo——
failed_atstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepjsonNo——
failed_layerjsonNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—startSync requested
fetchingNoNo——Fetching one page (loops until has_next_page=False)
planningNoNo—fetch_pageKick first page fetch
completedNoYesYes—All pages fetched
failedNoYesNo—Sync failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedstartplanning—
planningfetch_pagefetching—
fetchingfetch_pagefetching—
fetchingcompletecompleted—
initiatedfailfailed—
planningfailfailed—
fetchingfailfailed—

Business Errors ​

CodeMessage Template
BLING_PAGE_FETCH_FAILEDbling.fetch-product failed on page {page}:

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "bling.sync-products",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value"
  }
}