@celigo/api-specs 0.2.326 → 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/sync.yml +46 -11
- 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/sync.yml
CHANGED
|
@@ -1036,7 +1036,9 @@ paths:
|
|
|
1036
1036
|
another dataset's table name in another letter case), two source columns sanitize to
|
|
1037
1037
|
the same destination column name (`duplicate_sanitized_column_names` — rename
|
|
1038
1038
|
or disable the conflicting source columns), an update changes a dataset's
|
|
1039
|
-
`isExport` (`is_export_update_not_allowed`),
|
|
1039
|
+
`isExport` (`is_export_update_not_allowed`), a `delta` dataset that carries a
|
|
1040
|
+
`netsuite.recordType` has no `delta.dateField`
|
|
1041
|
+
(`dataset_export_properties_date_field_missing`), or a data-element combination is
|
|
1040
1042
|
invalid (e.g. `transformMode` without children, or `isPrimaryKey` with `mask`).
|
|
1041
1043
|
content:
|
|
1042
1044
|
application/json:
|
|
@@ -1050,6 +1052,13 @@ paths:
|
|
|
1050
1052
|
- field: ingestionMode
|
|
1051
1053
|
code: ingestion_mode_required_for_enabled_datasets
|
|
1052
1054
|
message: ingestionMode field is required for enabled datasets.
|
|
1055
|
+
missing_delta_date_field:
|
|
1056
|
+
summary: Delta dataset with a NetSuite record type and no date field
|
|
1057
|
+
value:
|
|
1058
|
+
errors:
|
|
1059
|
+
- field: exportProperties.type
|
|
1060
|
+
code: dataset_export_properties_date_field_missing
|
|
1061
|
+
message: exportProperties.delta.dateField is required if exportProperties.type is delta.
|
|
1053
1062
|
/v1/syncs/{_syncId}/datasets/{_id}:
|
|
1054
1063
|
get:
|
|
1055
1064
|
x-internal: false
|
|
@@ -3342,8 +3351,8 @@ paths:
|
|
|
3342
3351
|
type: array
|
|
3343
3352
|
description: |-
|
|
3344
3353
|
Column names usable as the incremental-extraction cursor. A
|
|
3345
|
-
Salesforce dataset uses the first entry itself
|
|
3346
|
-
saved
|
|
3354
|
+
Salesforce dataset uses the first entry itself. Not returned for
|
|
3355
|
+
a NetSuite saved search, which names its cursor in
|
|
3347
3356
|
`exportProperties.delta.dateField`.
|
|
3348
3357
|
items:
|
|
3349
3358
|
type: string
|
|
@@ -4952,10 +4961,14 @@ components:
|
|
|
4952
4961
|
type: string
|
|
4953
4962
|
description: |-
|
|
4954
4963
|
Source field that carries each record's last-modified timestamp, used as
|
|
4955
|
-
the delta cursor.
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4964
|
+
the delta cursor. A NetSuite saved-search dataset carries one when its
|
|
4965
|
+
`exportProperties.type` is `delta` and a `netsuite.recordType` was set —
|
|
4966
|
+
`lastmodifieddate` when the Create Sync form saved it — and each run adds it
|
|
4967
|
+
to the saved search as a search filter; a saved search on a custom record
|
|
4968
|
+
type uses `type: all`, and a dataset on `all` carries none. Salesforce
|
|
4969
|
+
datasets take the first entry of the column read's `deltaFields` instead, and
|
|
4970
|
+
HTTP-connector datasets have no date field: their delta filter is part of the
|
|
4971
|
+
request.
|
|
4959
4972
|
examples:
|
|
4960
4973
|
- lastmodifieddate
|
|
4961
4974
|
netsuite:
|
|
@@ -5137,10 +5150,32 @@ components:
|
|
|
5137
5150
|
type: string
|
|
5138
5151
|
description: |-
|
|
5139
5152
|
Source field carrying each record's last-modified timestamp, used as the
|
|
5140
|
-
delta cursor.
|
|
5141
|
-
when a `netsuite.recordType` is set
|
|
5142
|
-
|
|
5143
|
-
|
|
5153
|
+
delta cursor. A NetSuite saved-search dataset whose `exportProperties.type`
|
|
5154
|
+
is `delta` needs one when a `netsuite.recordType` is set — `lastmodifieddate`,
|
|
5155
|
+
which each run adds to the saved search as a search filter — except on a
|
|
5156
|
+
custom record type, where NetSuite refuses that filter and the dataset uses
|
|
5157
|
+
`exportProperties.type: all` instead. Salesforce datasets take the first
|
|
5158
|
+
`deltaFields` entry, and HTTP-connector datasets take no date field.
|
|
5159
|
+
x-celigo-ai-guidance:
|
|
5160
|
+
- |-
|
|
5161
|
+
NetSuite saved-search dataset on type delta: when the saved search is on a
|
|
5162
|
+
custom record type, set type all instead — with lastmodifieddate every run
|
|
5163
|
+
of that dataset fails at the extract stage with NetSuite's
|
|
5164
|
+
SSS_INVALID_SRCH_FILTER ("An nlobjSearchFilter contains invalid search
|
|
5165
|
+
criteria: lastmodifieddate"). Otherwise send lastmodifieddate, the value the
|
|
5166
|
+
Create Sync form saves for "Date last modified", the one date field it
|
|
5167
|
+
offers for a new selection; leave datecreated on a dataset that already
|
|
5168
|
+
carries it.
|
|
5169
|
+
- |-
|
|
5170
|
+
A type delta item that carries netsuite.recordType and no dateField fails
|
|
5171
|
+
the whole request with 422 dataset_export_properties_date_field_missing. A
|
|
5172
|
+
type all item is saved without one.
|
|
5173
|
+
- |-
|
|
5174
|
+
The value isn't validated at save — not against the saved search, and not
|
|
5175
|
+
against a column list: the column read returns no deltaFields for a saved
|
|
5176
|
+
search. A name NetSuite has no search filter for is saved as sent, and each
|
|
5177
|
+
run of that dataset then fails at the extract stage with
|
|
5178
|
+
SSS_INVALID_SRCH_FILTER naming it.
|
|
5144
5179
|
examples:
|
|
5145
5180
|
- lastmodifieddate
|
|
5146
5181
|
netsuite:
|
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