Stephen Kim
09/11/2025, 8:56 PMkapa.ai
09/11/2025, 8:57 PMStephen Kim
09/12/2025, 2:02 PMkapa.ai
09/12/2025, 2:02 PMkapa.ai
09/12/2025, 2:02 PMyaml streams: - name: example_stream retriever: requester: name: example url_base: https://api.example.com/ path: /items http_method: GET record_selector: extractor: field_path: ["items"] incremental_sync: type: DatetimeBasedCursor cursor_field: lastModifiedDateTime cursor_datetime_formats: - "%Y-%m-%dT%H:%M:%SZ" - "%Y-%m-%dT%H:%M:%S.%fZ" start_datetime: type: MinMaxDatetime datetime: "{{ config['start_time'] }}" end_datetime: type: NowDatetime step: "P1D" start_time_option: type: RequestOption field_name: "created[gte]" inject_into: "request_parameter" end_time_option: type: RequestOption field_name: "created[lte]" inject_into: "request_parameter" Notes: - Replace cursor_field and cursor_datetime_formats with those matching your API’s field and format. - Adjust field_name in start_time_option/end_time_option to how your API expects time filtering (e.g., query params). [[Request options](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/request-options#incremental-syncs); [Filtering by cursor](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/incremental-syncs#filtering-according-to-cursor-field)] - In the Connector Builder UI, you’d configure the same pieces (cursor field, formats, start/end, injection to request parameters). [[Builder incremental](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/incremental-sync); [1.7 example](https://docs.airbyte.com/platform/1.7/connector-development/connector-builder-ui/incremental-sync#example)] If you need to reference the current interval directly (e.g., to build a path or complex filter), you can use placeholders like {{ stream_interval.start_time }} and {{ stream_interval.end_time }}. [[1.7 builder example](https://docs.airbyte.com/platform/1.7/connector-development/connector-builder-ui/incremental-sync#example)]Stephen Kim
09/12/2025, 2:05 PMkapa.ai
09/12/2025, 2:05 PMkapa.ai
09/12/2025, 2:06 PMyaml streams: - name: business_central_entities retriever: requester: url_base: https://api.businesscentral.dynamics.com/v2.0/tenant/env/api/v2.0/ path: items http_method: GET record_selector: extractor: field_path: [] # adjust if response nests records incremental_sync: type: DatetimeBasedCursor cursor_field: lastModifiedDateTime cursor_datetime_formats: - "%Y-%m-%dT%H:%M:%SZ" - "%Y-%m-%dT%H:%M:%S.%fZ" start_datetime: type: MinMaxDatetime datetime: "{{ config['start_time'] }}" end_datetime: type: NowDatetime step: "P1D" # Custom parameter injection: build the single $filter parameter value request_options: request_parameters: - name: "$filter" value: "lastModifiedDateTime ge {{ stream_interval.start_time }} and lastModifiedDateTime le {{ stream_interval.end_time }}" Notes: - This uses stream_interval.start_time and stream_interval.end_time to compose the OData $filter value in one parameter, which is exactly the “custom parameter injection” pattern. [[Custom injection](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/incremental-sync#custom-parameter-injection)] - Keep the built-in start/end injection disabled, since you’re supplying your own $filter. [[Custom injection](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/incremental-sync#custom-parameter-injection)] - The DatetimeBasedCursor pattern is supported for filtering by cursor via request options when the API supports it; here we’re composing it manually into $filter. [[Filtering by cursor](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/incremental-syncs#filtering-according-to-cursor-field)] - Adjust cursor_field name and datetime formats to match the exact field/format returned by your endpoint. [[Cursor formats](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/incremental-sync#cursor-datetime-formats)] If your endpoint needs a different operator (gt/lt vs ge/le) or quotes around timestamps, tweak the value string accordingly using Jinja. [[Custom injection](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/incremental-sync#custom-parameter-injection)]Stephen Kim
09/12/2025, 2:22 PMkapa.ai
09/12/2025, 2:22 PMkapa.ai
09/12/2025, 2:23 PMyaml retriever: requester: type: HttpRequester url_base: https://api.example.com/ path: items http_method: GET request_options_provider: request_parameters: "$filter": "lastModifiedDateTime ge {{ stream_interval.start_time }} and lastModifiedDateTime le {{ stream_interval.end_time }}" request_headers: Accept: application/json This is also where you’d add JSON or form bodies if needed. [[1.7 request options](https://docs.airbyte.com/platform/1.7/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider); [1.6 HttpRequester](https://docs.airbyte.com/platform/1.6/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester)] If you need components (like paginators or datetime cursors) to inject values, they use a RequestOption to specify where and under which key to inject. [[1.7 request options](https://docs.airbyte.com/platform/1.7/connector-development/config-based/understanding-the-yaml-file/request-options#request-options-provider)] In the Connector Builder UI, for cases like building a single $filter, disable the built-in start/end injection and add a custom query parameter at the bottom of the stream form using Jinja variables such as stream_interval.start_time and stream_interval.end_time. [[Custom parameter injection](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/incremental-sync#custom-parameter-injection)]