@celigo/api-specs 0.2.327 → 0.2.328
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-agent.yml +23 -3
- package/dist/export.yml +33 -8
- package/dist/flow.yml +7 -3
- package/dist/import.yml +29 -5
- package/dist/tool.yml +39 -10
- package/package.json +1 -1
- package/schemas.json +1 -1
package/dist/ai-agent.yml
CHANGED
|
@@ -6249,9 +6249,10 @@ components:
|
|
|
6249
6249
|
Child record shape differs by mode. Path mode: each child is the array element plus
|
|
6250
6250
|
``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
|
|
6251
6251
|
itself, with no ``_PARENT``. In both modes templates on the step reference an object child as
|
|
6252
|
-
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child
|
|
6253
|
-
the downstream step receives the re-joined parent (path mode) or the
|
|
6254
|
-
mode)
|
|
6252
|
+
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child
|
|
6253
|
+
the lookup ran for, and the downstream step receives the re-joined parent (path mode) or the
|
|
6254
|
+
re-joined array (row mode). A child the step's input filter excluded is re-joined without
|
|
6255
|
+
the fields mapped from the lookup's ``data``.
|
|
6255
6256
|
- |-
|
|
6256
6257
|
A child that is itself an ARRAY (rows under the path, or an array element in row mode) is a
|
|
6257
6258
|
grouped record in either mode: templates bind it as ``rows`` (``{{rows.0.<field>}}``,
|
|
@@ -6267,6 +6268,25 @@ components:
|
|
|
6267
6268
|
path renders empty in the HTTP body template. To send a parent value, map it into a named
|
|
6268
6269
|
row; the mapped record is then an object, which the body reads as ``{{record.<row>}}``.
|
|
6269
6270
|
Live-verified 2026-10-26 in import previews and a real flow run.
|
|
6271
|
+
- |-
|
|
6272
|
+
The step's input filter (``filter`` on an import, ``inputFilter`` on a lookup) runs after
|
|
6273
|
+
the fan-out, once per child: it decides which children the step processes. An object child
|
|
6274
|
+
is read with its own fields at the root and, in path mode, the parent's fields under
|
|
6275
|
+
``_PARENT``. A child that is itself an array is read as the array of its rows — a rule on a
|
|
6276
|
+
field name reads the first row, ``<index>.<field>`` the row at that index — and its rows are
|
|
6277
|
+
bare on an import (a ``_PARENT`` path matches nothing, so every child is dropped) while on a
|
|
6278
|
+
lookup each row carries ``_PARENT``. Children the filter drops are counted as ignored: the
|
|
6279
|
+
step makes no request for them and its response mapping reads an ignored result for them
|
|
6280
|
+
(see the step's filter field). The record still re-joins, with every child, and continues
|
|
6281
|
+
to the next step.
|
|
6282
|
+
Live-verified 2026-11-20: object children on flow, Tool and API test runs and on real flow
|
|
6283
|
+
runs; array children on flow test runs and real flow runs.
|
|
6284
|
+
- |-
|
|
6285
|
+
A branching step (router) after a one-to-many step receives the re-joined record once and
|
|
6286
|
+
routes it as a whole: a branch rule on a child's field at the root matches nothing, and a
|
|
6287
|
+
rule reads one child by its index (``items.0.type``). To have a step act on some
|
|
6288
|
+
children only, give that step ``oneToMany`` and an input filter on the child's field.
|
|
6289
|
+
Live-verified 2026-11-20 on a flow test run and a real flow run.
|
|
6270
6290
|
- |-
|
|
6271
6291
|
One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
|
|
6272
6292
|
root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
|
package/dist/export.yml
CHANGED
|
@@ -1269,9 +1269,10 @@ components:
|
|
|
1269
1269
|
Child record shape differs by mode. Path mode: each child is the array element plus
|
|
1270
1270
|
``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
|
|
1271
1271
|
itself, with no ``_PARENT``. In both modes templates on the step reference an object child as
|
|
1272
|
-
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child
|
|
1273
|
-
the downstream step receives the re-joined parent (path mode) or the
|
|
1274
|
-
mode)
|
|
1272
|
+
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child
|
|
1273
|
+
the lookup ran for, and the downstream step receives the re-joined parent (path mode) or the
|
|
1274
|
+
re-joined array (row mode). A child the step's input filter excluded is re-joined without
|
|
1275
|
+
the fields mapped from the lookup's ``data``.
|
|
1275
1276
|
- |-
|
|
1276
1277
|
A child that is itself an ARRAY (rows under the path, or an array element in row mode) is a
|
|
1277
1278
|
grouped record in either mode: templates bind it as ``rows`` (``{{rows.0.<field>}}``,
|
|
@@ -1287,6 +1288,25 @@ components:
|
|
|
1287
1288
|
path renders empty in the HTTP body template. To send a parent value, map it into a named
|
|
1288
1289
|
row; the mapped record is then an object, which the body reads as ``{{record.<row>}}``.
|
|
1289
1290
|
Live-verified 2026-10-26 in import previews and a real flow run.
|
|
1291
|
+
- |-
|
|
1292
|
+
The step's input filter (``filter`` on an import, ``inputFilter`` on a lookup) runs after
|
|
1293
|
+
the fan-out, once per child: it decides which children the step processes. An object child
|
|
1294
|
+
is read with its own fields at the root and, in path mode, the parent's fields under
|
|
1295
|
+
``_PARENT``. A child that is itself an array is read as the array of its rows — a rule on a
|
|
1296
|
+
field name reads the first row, ``<index>.<field>`` the row at that index — and its rows are
|
|
1297
|
+
bare on an import (a ``_PARENT`` path matches nothing, so every child is dropped) while on a
|
|
1298
|
+
lookup each row carries ``_PARENT``. Children the filter drops are counted as ignored: the
|
|
1299
|
+
step makes no request for them and its response mapping reads an ignored result for them
|
|
1300
|
+
(see the step's filter field). The record still re-joins, with every child, and continues
|
|
1301
|
+
to the next step.
|
|
1302
|
+
Live-verified 2026-11-20: object children on flow, Tool and API test runs and on real flow
|
|
1303
|
+
runs; array children on flow test runs and real flow runs.
|
|
1304
|
+
- |-
|
|
1305
|
+
A branching step (router) after a one-to-many step receives the re-joined record once and
|
|
1306
|
+
routes it as a whole: a branch rule on a child's field at the root matches nothing, and a
|
|
1307
|
+
rule reads one child by its index (``items.0.type``). To have a step act on some
|
|
1308
|
+
children only, give that step ``oneToMany`` and an input filter on the child's field.
|
|
1309
|
+
Live-verified 2026-11-20 on a flow test run and a real flow run.
|
|
1290
1310
|
- |-
|
|
1291
1311
|
One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
|
|
1292
1312
|
root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
|
|
@@ -17800,9 +17820,10 @@ components:
|
|
|
17800
17820
|
x-celigo-agent:
|
|
17801
17821
|
- filter
|
|
17802
17822
|
description: |-
|
|
17803
|
-
Filter applied to incoming
|
|
17804
|
-
|
|
17805
|
-
|
|
17823
|
+
Filter applied to each incoming record — each child record when `oneToMany` is true —
|
|
17824
|
+
before a lookup export queries the external system. Only matching records trigger lookup
|
|
17825
|
+
calls; the others pass through the step without lookup results, which cuts unnecessary
|
|
17826
|
+
API traffic. Only relevant when `isLookup` is true.
|
|
17806
17827
|
allOf:
|
|
17807
17828
|
- $ref: '#/components/schemas/Filter'
|
|
17808
17829
|
x-celigo-ai-guidance:
|
|
@@ -17816,7 +17837,7 @@ components:
|
|
|
17816
17837
|
When configured in a lookup export, this filter is applied to the incoming records
|
|
17817
17838
|
before they are used to query the external system:
|
|
17818
17839
|
- Only input records that match the filter criteria will trigger lookup operations
|
|
17819
|
-
- Records that don't match will pass through the step without
|
|
17840
|
+
- Records that don't match will pass through the step without lookup results
|
|
17820
17841
|
- This can significantly improve performance by reducing unnecessary API calls
|
|
17821
17842
|
|
|
17822
17843
|
## USE CASES
|
|
@@ -17829,7 +17850,11 @@ components:
|
|
|
17829
17850
|
|
|
17830
17851
|
## AVAILABLE FILTER FIELDS
|
|
17831
17852
|
The fields available for filtering are the data fields from the input records
|
|
17832
|
-
passed to this lookup export from previous flow steps
|
|
17853
|
+
passed to this lookup export from previous flow steps — with `oneToMany`, the
|
|
17854
|
+
fields of each child record (next entry).
|
|
17855
|
+
- 'With `oneToMany: true` the filter is evaluated after the fan-out, once per child record, never on the parent. A rule reads the child''s own fields at the root and the parent''s fields under `_PARENT`; a rule on a parent-level field at the root matches no child, so every child is counted as ignored, no lookup call is made, and no error is raised. The response mapping then merges lookup results only into the children the filter kept, and the re-joined record continues to the next step. Live-verified 2026-11-20 on a flow test run and real flow runs, in path mode and in row mode (blank `pathToMany` on an array record: each row is the record the filter reads, with no `_PARENT`).'
|
|
17856
|
+
- A child that is itself an array (the elements under `pathToMany` are arrays of rows) reaches this filter as the array of its rows, each row carrying `_PARENT`. A rule on a field name reads the first row — `<field>` and `_PARENT.<field>` alike — and `<index>.<field>` reads the row at that index. This differs from an import's `filter`, whose array child is the bare rows with no `_PARENT`. Live-verified 2026-11-20 on a flow test run and a real flow run with rule filters; a script filter was not probed on this shape.
|
|
17857
|
+
- 'A record the filter excludes is not done with the step: its response mapping still runs, against an empty, ignored result (`statusCode: 200`, `data: []`, `ignored: true`), so nothing mapped from `data` lands, and the step''s `postResponseMap` hook still runs and its changes land on the record. With `oneToMany` each excluded child gets that ignored result in the mapping, and the hook receives the re-joined record, not the children: its changes land on that record. Live-verified 2026-11-20 on a flow test run with a plain lookup and with a one-to-many lookup whose filter kept no child.'
|
|
17833
17858
|
mappings:
|
|
17834
17859
|
x-celigo-agent:
|
|
17835
17860
|
- mapping
|
package/dist/flow.yml
CHANGED
|
@@ -5511,8 +5511,10 @@ components:
|
|
|
5511
5511
|
mapped `statusCode` 200. So a router after
|
|
5512
5512
|
the step picks out the failed records with a rule on the mapped `statusCode` equal to
|
|
5513
5513
|
422 (or `errors` not empty) and lets every other record take the other branch —
|
|
5514
|
-
written records, and records the import's input filter skipped, which
|
|
5515
|
-
|
|
5514
|
+
written records, and records the import's input filter skipped, which are not failures:
|
|
5515
|
+
their response mapping runs against the ignored response, so they carry a mapped
|
|
5516
|
+
`statusCode` of 200, a mapped `ignored` of `true` and no mapped `id` (verified live
|
|
5517
|
+
2026-11-20 in a flow test run); a rule on the mapped
|
|
5516
5518
|
`id` being empty holds only where the destination assigns an id solely to a record it
|
|
5517
5519
|
wrote. `hooks.postResponseMap` documents the shape in that hook.
|
|
5518
5520
|
responseMapping:
|
|
@@ -5683,7 +5685,9 @@ components:
|
|
|
5683
5685
|
Only used when the router's `routeRecordsUsing` is `input_filters`.
|
|
5684
5686
|
Records matching these criteria will be routed to this branch. A branch
|
|
5685
5687
|
without an `inputFilter` matches every record, so under
|
|
5686
|
-
`first_matching_branch` the catch-all branch goes last.
|
|
5688
|
+
`first_matching_branch` the catch-all branch goes last. Each record is
|
|
5689
|
+
evaluated once, as a whole: after a step with `oneToMany` it is the record
|
|
5690
|
+
with its children re-joined, never one child.
|
|
5687
5691
|
|
|
5688
5692
|
Send `version` and `rules` directly on `inputFilter` — not inside the
|
|
5689
5693
|
`{type: "expression", expression: {...}}` wrapper that export and import
|
package/dist/import.yml
CHANGED
|
@@ -13359,9 +13359,10 @@ components:
|
|
|
13359
13359
|
Child record shape differs by mode. Path mode: each child is the array element plus
|
|
13360
13360
|
``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
|
|
13361
13361
|
itself, with no ``_PARENT``. In both modes templates on the step reference an object child as
|
|
13362
|
-
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child
|
|
13363
|
-
the downstream step receives the re-joined parent (path mode) or the
|
|
13364
|
-
mode)
|
|
13362
|
+
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child
|
|
13363
|
+
the lookup ran for, and the downstream step receives the re-joined parent (path mode) or the
|
|
13364
|
+
re-joined array (row mode). A child the step's input filter excluded is re-joined without
|
|
13365
|
+
the fields mapped from the lookup's ``data``.
|
|
13365
13366
|
- |-
|
|
13366
13367
|
A child that is itself an ARRAY (rows under the path, or an array element in row mode) is a
|
|
13367
13368
|
grouped record in either mode: templates bind it as ``rows`` (``{{rows.0.<field>}}``,
|
|
@@ -13377,6 +13378,25 @@ components:
|
|
|
13377
13378
|
path renders empty in the HTTP body template. To send a parent value, map it into a named
|
|
13378
13379
|
row; the mapped record is then an object, which the body reads as ``{{record.<row>}}``.
|
|
13379
13380
|
Live-verified 2026-10-26 in import previews and a real flow run.
|
|
13381
|
+
- |-
|
|
13382
|
+
The step's input filter (``filter`` on an import, ``inputFilter`` on a lookup) runs after
|
|
13383
|
+
the fan-out, once per child: it decides which children the step processes. An object child
|
|
13384
|
+
is read with its own fields at the root and, in path mode, the parent's fields under
|
|
13385
|
+
``_PARENT``. A child that is itself an array is read as the array of its rows — a rule on a
|
|
13386
|
+
field name reads the first row, ``<index>.<field>`` the row at that index — and its rows are
|
|
13387
|
+
bare on an import (a ``_PARENT`` path matches nothing, so every child is dropped) while on a
|
|
13388
|
+
lookup each row carries ``_PARENT``. Children the filter drops are counted as ignored: the
|
|
13389
|
+
step makes no request for them and its response mapping reads an ignored result for them
|
|
13390
|
+
(see the step's filter field). The record still re-joins, with every child, and continues
|
|
13391
|
+
to the next step.
|
|
13392
|
+
Live-verified 2026-11-20: object children on flow, Tool and API test runs and on real flow
|
|
13393
|
+
runs; array children on flow test runs and real flow runs.
|
|
13394
|
+
- |-
|
|
13395
|
+
A branching step (router) after a one-to-many step receives the re-joined record once and
|
|
13396
|
+
routes it as a whole: a branch rule on a child's field at the root matches nothing, and a
|
|
13397
|
+
rule reads one child by its index (``items.0.type``). To have a step act on some
|
|
13398
|
+
children only, give that step ``oneToMany`` and an input filter on the child's field.
|
|
13399
|
+
Live-verified 2026-11-20 on a flow test run and a real flow run.
|
|
13380
13400
|
- |-
|
|
13381
13401
|
One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
|
|
13382
13402
|
root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
|
|
@@ -18231,14 +18251,18 @@ components:
|
|
|
18231
18251
|
Filter applied to incoming records before they are sent to the destination system.
|
|
18232
18252
|
Records that match continue through the import; records that don't skip this import,
|
|
18233
18253
|
counted as ignored, and continue to the next step. Filter expressions reference the
|
|
18234
|
-
incoming record's fields
|
|
18254
|
+
incoming record's fields; when `oneToMany` is true the filter runs once per child record,
|
|
18255
|
+
after the record is split, and references each child's fields.
|
|
18235
18256
|
allOf:
|
|
18236
18257
|
- $ref: '#/components/schemas/Filter'
|
|
18237
18258
|
x-celigo-ai-guidance:
|
|
18238
18259
|
- |-
|
|
18239
18260
|
## IMPORT-SPECIFIC BEHAVIOR
|
|
18240
18261
|
|
|
18241
|
-
**Pre-Import Filtering**: Filters are applied to incoming records before they are sent to the destination system. A record that doesn't match is not sent, but it is not removed from the flow: it continues to the next step
|
|
18262
|
+
**Pre-Import Filtering**: Filters are applied to incoming records before they are sent to the destination system. A record that doesn't match is not sent, but it is not removed from the flow: it continues to the next step, so a later step that writes the destination's fields needs its own filter. Its response mapping still runs, against an empty, ignored response (`statusCode: 200`, `_json: {}`, `ignored: true`): a field mapped from `id` stays absent, fields mapped from `ignored` and `statusCode` hold `true` and `200`, and the step's `postResponseMap` hook still runs with the record in `postResponseMapData`. Live-verified 2026-11-20 on a flow test run of an import without `oneToMany`; a real flow run counted the record as ignored. With `oneToMany` only a child the filter excluded is mapped that way; a child it kept is mapped from the import's own response for it (`id` and `statusCode` land, `ignored` does not). The hook runs once per page on the re-joined records, whether the filter kept some children or none (same date, flow test run).
|
|
18263
|
+
- 'With `oneToMany: true` the filter is evaluated after the fan-out, once per child record, never on the parent. A rule reads the child''s own fields at the root (`<field>`) and the parent''s fields under `_PARENT` (`_PARENT.<field>`). A rule on a parent-level field at the root matches no child: every child is counted as ignored, nothing is sent, and no error is raised. A script filter''s `options.record` is the child. Live-verified 2026-11-20: rule filters on flow, Tool and API test runs and on real flow runs, a script filter on flow runs; in row mode (blank `pathToMany` on an array record) each row is the record the filter reads, with no `_PARENT`.'
|
|
18264
|
+
- 'To send only some of a record''s children, this is the setting: `oneToMany` with a filter on the child''s field. The children the filter keeps are sent, the others are counted as ignored, and the re-joined record continues to the next step; the response mapping lands the response''s fields on the kept children and the ignored response''s fields on the others. A branching step cannot select children — it routes each record once, as a whole (see `oneToMany`). Live-verified 2026-11-20 on flow test runs; real flow runs showed the same kept and ignored counts.'
|
|
18265
|
+
- 'A child that is itself an array (the elements under `pathToMany` are arrays of rows) reaches the filter as the bare array, without `_PARENT`: a rule on a field name reads the first row, `<index>.<field>` reads the row at that index, a `_PARENT` path matches nothing, and a script filter''s `options.record` is the array. Live-verified 2026-11-20 on flow test runs and real flow runs.'
|
|
18242
18266
|
traceKeyTemplate:
|
|
18243
18267
|
type: string
|
|
18244
18268
|
x-celigo-agent:
|
package/dist/tool.yml
CHANGED
|
@@ -25757,9 +25757,10 @@ components:
|
|
|
25757
25757
|
Child record shape differs by mode. Path mode: each child is the array element plus
|
|
25758
25758
|
``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
|
|
25759
25759
|
itself, with no ``_PARENT``. In both modes templates on the step reference an object child as
|
|
25760
|
-
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child
|
|
25761
|
-
the downstream step receives the re-joined parent (path mode) or the
|
|
25762
|
-
mode)
|
|
25760
|
+
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child
|
|
25761
|
+
the lookup ran for, and the downstream step receives the re-joined parent (path mode) or the
|
|
25762
|
+
re-joined array (row mode). A child the step's input filter excluded is re-joined without
|
|
25763
|
+
the fields mapped from the lookup's ``data``.
|
|
25763
25764
|
- |-
|
|
25764
25765
|
A child that is itself an ARRAY (rows under the path, or an array element in row mode) is a
|
|
25765
25766
|
grouped record in either mode: templates bind it as ``rows`` (``{{rows.0.<field>}}``,
|
|
@@ -25775,6 +25776,25 @@ components:
|
|
|
25775
25776
|
path renders empty in the HTTP body template. To send a parent value, map it into a named
|
|
25776
25777
|
row; the mapped record is then an object, which the body reads as ``{{record.<row>}}``.
|
|
25777
25778
|
Live-verified 2026-10-26 in import previews and a real flow run.
|
|
25779
|
+
- |-
|
|
25780
|
+
The step's input filter (``filter`` on an import, ``inputFilter`` on a lookup) runs after
|
|
25781
|
+
the fan-out, once per child: it decides which children the step processes. An object child
|
|
25782
|
+
is read with its own fields at the root and, in path mode, the parent's fields under
|
|
25783
|
+
``_PARENT``. A child that is itself an array is read as the array of its rows — a rule on a
|
|
25784
|
+
field name reads the first row, ``<index>.<field>`` the row at that index — and its rows are
|
|
25785
|
+
bare on an import (a ``_PARENT`` path matches nothing, so every child is dropped) while on a
|
|
25786
|
+
lookup each row carries ``_PARENT``. Children the filter drops are counted as ignored: the
|
|
25787
|
+
step makes no request for them and its response mapping reads an ignored result for them
|
|
25788
|
+
(see the step's filter field). The record still re-joins, with every child, and continues
|
|
25789
|
+
to the next step.
|
|
25790
|
+
Live-verified 2026-11-20: object children on flow, Tool and API test runs and on real flow
|
|
25791
|
+
runs; array children on flow test runs and real flow runs.
|
|
25792
|
+
- |-
|
|
25793
|
+
A branching step (router) after a one-to-many step receives the re-joined record once and
|
|
25794
|
+
routes it as a whole: a branch rule on a child's field at the root matches nothing, and a
|
|
25795
|
+
rule reads one child by its index (``items.0.type``). To have a step act on some
|
|
25796
|
+
children only, give that step ``oneToMany`` and an input filter on the child's field.
|
|
25797
|
+
Live-verified 2026-11-20 on a flow test run and a real flow run.
|
|
25778
25798
|
- |-
|
|
25779
25799
|
One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
|
|
25780
25800
|
root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
|
|
@@ -27962,14 +27982,18 @@ components:
|
|
|
27962
27982
|
Filter applied to incoming records before they are sent to the destination system.
|
|
27963
27983
|
Records that match continue through the import; records that don't skip this import,
|
|
27964
27984
|
counted as ignored, and continue to the next step. Filter expressions reference the
|
|
27965
|
-
incoming record's fields
|
|
27985
|
+
incoming record's fields; when `oneToMany` is true the filter runs once per child record,
|
|
27986
|
+
after the record is split, and references each child's fields.
|
|
27966
27987
|
allOf:
|
|
27967
27988
|
- $ref: '#/components/schemas/Filter'
|
|
27968
27989
|
x-celigo-ai-guidance:
|
|
27969
27990
|
- |-
|
|
27970
27991
|
## IMPORT-SPECIFIC BEHAVIOR
|
|
27971
27992
|
|
|
27972
|
-
**Pre-Import Filtering**: Filters are applied to incoming records before they are sent to the destination system. A record that doesn't match is not sent, but it is not removed from the flow: it continues to the next step
|
|
27993
|
+
**Pre-Import Filtering**: Filters are applied to incoming records before they are sent to the destination system. A record that doesn't match is not sent, but it is not removed from the flow: it continues to the next step, so a later step that writes the destination's fields needs its own filter. Its response mapping still runs, against an empty, ignored response (`statusCode: 200`, `_json: {}`, `ignored: true`): a field mapped from `id` stays absent, fields mapped from `ignored` and `statusCode` hold `true` and `200`, and the step's `postResponseMap` hook still runs with the record in `postResponseMapData`. Live-verified 2026-11-20 on a flow test run of an import without `oneToMany`; a real flow run counted the record as ignored. With `oneToMany` only a child the filter excluded is mapped that way; a child it kept is mapped from the import's own response for it (`id` and `statusCode` land, `ignored` does not). The hook runs once per page on the re-joined records, whether the filter kept some children or none (same date, flow test run).
|
|
27994
|
+
- 'With `oneToMany: true` the filter is evaluated after the fan-out, once per child record, never on the parent. A rule reads the child''s own fields at the root (`<field>`) and the parent''s fields under `_PARENT` (`_PARENT.<field>`). A rule on a parent-level field at the root matches no child: every child is counted as ignored, nothing is sent, and no error is raised. A script filter''s `options.record` is the child. Live-verified 2026-11-20: rule filters on flow, Tool and API test runs and on real flow runs, a script filter on flow runs; in row mode (blank `pathToMany` on an array record) each row is the record the filter reads, with no `_PARENT`.'
|
|
27995
|
+
- 'To send only some of a record''s children, this is the setting: `oneToMany` with a filter on the child''s field. The children the filter keeps are sent, the others are counted as ignored, and the re-joined record continues to the next step; the response mapping lands the response''s fields on the kept children and the ignored response''s fields on the others. A branching step cannot select children — it routes each record once, as a whole (see `oneToMany`). Live-verified 2026-11-20 on flow test runs; real flow runs showed the same kept and ignored counts.'
|
|
27996
|
+
- 'A child that is itself an array (the elements under `pathToMany` are arrays of rows) reaches the filter as the bare array, without `_PARENT`: a rule on a field name reads the first row, `<index>.<field>` reads the row at that index, a `_PARENT` path matches nothing, and a script filter''s `options.record` is the array. Live-verified 2026-11-20 on flow test runs and real flow runs.'
|
|
27973
27997
|
traceKeyTemplate:
|
|
27974
27998
|
type: string
|
|
27975
27999
|
x-celigo-agent:
|
|
@@ -40859,9 +40883,10 @@ components:
|
|
|
40859
40883
|
x-celigo-agent:
|
|
40860
40884
|
- filter
|
|
40861
40885
|
description: |-
|
|
40862
|
-
Filter applied to incoming
|
|
40863
|
-
|
|
40864
|
-
|
|
40886
|
+
Filter applied to each incoming record — each child record when `oneToMany` is true —
|
|
40887
|
+
before a lookup export queries the external system. Only matching records trigger lookup
|
|
40888
|
+
calls; the others pass through the step without lookup results, which cuts unnecessary
|
|
40889
|
+
API traffic. Only relevant when `isLookup` is true.
|
|
40865
40890
|
allOf:
|
|
40866
40891
|
- $ref: '#/components/schemas/Filter'
|
|
40867
40892
|
x-celigo-ai-guidance:
|
|
@@ -40875,7 +40900,7 @@ components:
|
|
|
40875
40900
|
When configured in a lookup export, this filter is applied to the incoming records
|
|
40876
40901
|
before they are used to query the external system:
|
|
40877
40902
|
- Only input records that match the filter criteria will trigger lookup operations
|
|
40878
|
-
- Records that don't match will pass through the step without
|
|
40903
|
+
- Records that don't match will pass through the step without lookup results
|
|
40879
40904
|
- This can significantly improve performance by reducing unnecessary API calls
|
|
40880
40905
|
|
|
40881
40906
|
## USE CASES
|
|
@@ -40888,7 +40913,11 @@ components:
|
|
|
40888
40913
|
|
|
40889
40914
|
## AVAILABLE FILTER FIELDS
|
|
40890
40915
|
The fields available for filtering are the data fields from the input records
|
|
40891
|
-
passed to this lookup export from previous flow steps
|
|
40916
|
+
passed to this lookup export from previous flow steps — with `oneToMany`, the
|
|
40917
|
+
fields of each child record (next entry).
|
|
40918
|
+
- 'With `oneToMany: true` the filter is evaluated after the fan-out, once per child record, never on the parent. A rule reads the child''s own fields at the root and the parent''s fields under `_PARENT`; a rule on a parent-level field at the root matches no child, so every child is counted as ignored, no lookup call is made, and no error is raised. The response mapping then merges lookup results only into the children the filter kept, and the re-joined record continues to the next step. Live-verified 2026-11-20 on a flow test run and real flow runs, in path mode and in row mode (blank `pathToMany` on an array record: each row is the record the filter reads, with no `_PARENT`).'
|
|
40919
|
+
- A child that is itself an array (the elements under `pathToMany` are arrays of rows) reaches this filter as the array of its rows, each row carrying `_PARENT`. A rule on a field name reads the first row — `<field>` and `_PARENT.<field>` alike — and `<index>.<field>` reads the row at that index. This differs from an import's `filter`, whose array child is the bare rows with no `_PARENT`. Live-verified 2026-11-20 on a flow test run and a real flow run with rule filters; a script filter was not probed on this shape.
|
|
40920
|
+
- 'A record the filter excludes is not done with the step: its response mapping still runs, against an empty, ignored result (`statusCode: 200`, `data: []`, `ignored: true`), so nothing mapped from `data` lands, and the step''s `postResponseMap` hook still runs and its changes land on the record. With `oneToMany` each excluded child gets that ignored result in the mapping, and the hook receives the re-joined record, not the children: its changes land on that record. Live-verified 2026-11-20 on a flow test run with a plain lookup and with a one-to-many lookup whose filter kept no child.'
|
|
40892
40921
|
mappings:
|
|
40893
40922
|
x-celigo-agent:
|
|
40894
40923
|
- mapping
|
package/package.json
CHANGED