@celigo/api-specs 0.2.1 → 0.2.2-IO-168454-EPIC-fb
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/README.md +71 -80
- package/dist/account.yml +201 -3
- package/dist/agent.yml +7 -0
- package/dist/ai-agent.yml +627 -135
- package/dist/api.yml +5953 -127
- package/dist/apim.yml +0 -4
- package/dist/asynchelper.yml +117 -22
- package/dist/audit.yml +41 -2
- package/dist/bartendertemplate.yml +508 -0
- package/dist/connection.yml +1166 -125
- package/dist/ediprofile.yml +7 -0
- package/dist/editransaction.yml +250 -14
- package/dist/enduser.yml +5778 -35
- package/dist/export.yml +1028 -983
- package/dist/filedefinition.yml +37 -0
- package/dist/filedefinitionrules.yml +722 -0
- package/dist/fileserver.yml +1316 -0
- package/dist/filestorage.yml +712 -330
- package/dist/flow.yml +169 -63
- package/dist/guardrail.yml +280 -489
- package/dist/httpconnectorendpoint.yml +602 -126
- package/dist/httpconnectorresource.yml +1160 -84
- package/dist/iclient.yml +131 -76
- package/dist/import.yml +1937 -236
- package/dist/integration.yml +1024 -42
- package/dist/job.yml +180 -92
- package/dist/lookupcache.yml +7 -0
- package/dist/marketplace.yml +285 -105
- package/dist/mcp-server.yml +6745 -68
- package/dist/notification.yml +33 -8
- package/dist/processor.yml +8 -3
- package/dist/recyclebin.yml +32 -2
- package/dist/script.yml +7 -0
- package/dist/stack.yml +642 -5
- package/dist/storagequery.yml +865 -0
- package/dist/subscription.yml +254 -58
- package/dist/sync.yml +383 -72
- package/dist/template.yml +39 -1
- package/dist/tool.yml +6099 -2242
- package/dist/topic.yml +1783 -0
- package/dist/tradingpartnerconnector.yml +10 -0
- package/dist/user.yml +238 -32
- package/package.json +13 -1
- package/schemas.json +2346 -1885
package/dist/export.yml
CHANGED
|
@@ -111,6 +111,16 @@ paths:
|
|
|
111
111
|
http:
|
|
112
112
|
relativeURI: /api/v1/contacts
|
|
113
113
|
method: GET
|
|
114
|
+
topic_listener:
|
|
115
|
+
summary: Event Streams listener on a topic (no connection)
|
|
116
|
+
value:
|
|
117
|
+
name: Order Events Listener
|
|
118
|
+
adaptorType: TopicExport
|
|
119
|
+
type: stream
|
|
120
|
+
topic:
|
|
121
|
+
_topicId: 6ab1f48d38d7733b4599875c
|
|
122
|
+
startPosition: latest
|
|
123
|
+
maxWaitTimeMs: 30000
|
|
114
124
|
responses:
|
|
115
125
|
'201':
|
|
116
126
|
description: Export created successfully
|
|
@@ -133,6 +143,21 @@ paths:
|
|
|
133
143
|
apiIdentifier: e53af6b210
|
|
134
144
|
createdAt: '2026-06-09T17:30:12.482Z'
|
|
135
145
|
lastModified: '2026-06-09T17:30:12.554Z'
|
|
146
|
+
topic_listener:
|
|
147
|
+
summary: Created Event Streams listener — topic defaults filled in
|
|
148
|
+
value:
|
|
149
|
+
_id: 6ab1f553de9162306b4d7bac
|
|
150
|
+
name: Order Events Listener
|
|
151
|
+
adaptorType: TopicExport
|
|
152
|
+
type: stream
|
|
153
|
+
topic:
|
|
154
|
+
_topicId: 6ab1f48d38d7733b4599875c
|
|
155
|
+
startPosition: latest
|
|
156
|
+
maxWaitTimeMs: 30000
|
|
157
|
+
asynchronous: true
|
|
158
|
+
apiIdentifier: ea8179ebf0
|
|
159
|
+
createdAt: '2026-09-22T03:26:11.864Z'
|
|
160
|
+
lastModified: '2026-09-22T03:26:11.905Z'
|
|
136
161
|
'400':
|
|
137
162
|
$ref: '#/components/responses/400-bad-request'
|
|
138
163
|
'401':
|
|
@@ -796,36 +821,53 @@ components:
|
|
|
796
821
|
OneToMany:
|
|
797
822
|
type: boolean
|
|
798
823
|
description: |
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
824
|
+
When true, the step runs once per child record instead of once per incoming record.
|
|
825
|
+
`pathToMany` names the array field that holds the children inside an object record; when
|
|
826
|
+
the incoming record is itself an array (grouped or row-based data), leave `pathToMany` blank
|
|
827
|
+
and each element becomes a record. The fan-out is scoped to this step: afterwards the children
|
|
828
|
+
are re-joined into the record's original shape — the object with its array, or the array of rows —
|
|
829
|
+
carrying any response-mapping enrichment, and that re-joined record is what the next step
|
|
830
|
+
receives. Not for locating records in an export's HTTP response; use
|
|
831
|
+
`http.response.resourcePath` for that. Applies to steps that receive a record — imports and
|
|
832
|
+
lookups (an export referenced as a page processor of a flow, API, or Tool). A standalone export
|
|
833
|
+
(a flow's page generator) has no incoming record, so the fields are saved but have no effect on
|
|
834
|
+
the records it produces; to emit one record per array element from a standalone export, use a
|
|
835
|
+
`hooks.preSavePage` script, or for a file-definition export make the repeating segment the
|
|
836
|
+
record boundary in the definition's rules.
|
|
837
|
+
x-celigo-ai-guidance:
|
|
838
|
+
- |-
|
|
839
|
+
Only imports and lookups (exports placed as page processors) fan out. On a standalone export
|
|
840
|
+
(a flow's page generator) the API saves ``oneToMany`` / ``pathToMany`` and applies neither:
|
|
841
|
+
the records reach the next step unchanged and no error is raised. Live-verified 2026-09-18 on
|
|
842
|
+
a flow test run — an order record with three ``lines`` reached the import as ONE record with
|
|
843
|
+
the setting on the export, and as THREE child records with the same setting on the import.
|
|
844
|
+
Never propose these fields as the way to split a standalone export's records; that is
|
|
845
|
+
``hooks.preSavePage`` work (or, for a file definition, the definition's record boundary).
|
|
846
|
+
The rules below apply only on a step that receives a record.
|
|
847
|
+
- |-
|
|
848
|
+
Two modes, decided by the SHAPE of the record entering the step. Object record with a child
|
|
849
|
+
array under a field → set ``pathToMany`` to that field. Array record (a ``groupByFields``
|
|
850
|
+
export, a CSV/file group, a script that returns an array) → leave ``pathToMany`` blank; each
|
|
851
|
+
element becomes one record. Live-verified 2026-09-10 on flows, Tools, and APIs.
|
|
852
|
+
- |-
|
|
853
|
+
Blank ``pathToMany`` on an OBJECT record fails every record with code ``oneToMany_error``:
|
|
854
|
+
"Failed to extract child records from oneToMany import data. Record at index 0 was not an
|
|
855
|
+
array, and no PathToMany was provided". Builder previews return only the code, with no
|
|
856
|
+
message. The fix is never "turn oneToMany off" by default — first determine whether the
|
|
857
|
+
record arriving at the step is an object (set a path) or an array (blank is correct; a
|
|
858
|
+
preview error on an array-fed step is the preview panel re-applying one-to-many to the
|
|
859
|
+
already-fanned-out record — verify with a test run or a real run).
|
|
860
|
+
- |-
|
|
861
|
+
Child record shape differs by mode. Path mode: each child is the array element plus
|
|
862
|
+
``_PARENT`` (the parent record minus the array). Blank/row mode: each child is the element
|
|
863
|
+
itself, with no ``_PARENT``. In both modes templates on the step reference the child as
|
|
864
|
+
``{{record.<field>}}``; a response mapping on a one-to-many lookup merges into each child and
|
|
865
|
+
the downstream step receives the re-joined parent (path mode) or the re-joined array (row
|
|
866
|
+
mode) with every element enriched.
|
|
867
|
+
- |-
|
|
868
|
+
One-to-many never batches by itself: ``batch_of_records`` appears as the HTTP body template
|
|
869
|
+
root only when ``http.batchSize`` is greater than 1 (children are batched after fan-out).
|
|
870
|
+
With the default batch size the template root is ``record``.
|
|
829
871
|
default: false
|
|
830
872
|
examples:
|
|
831
873
|
- true
|
|
@@ -833,27 +875,31 @@ components:
|
|
|
833
875
|
PathToMany:
|
|
834
876
|
type: string
|
|
835
877
|
description: |
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
878
|
+
Path to the array of child records inside an object record when `oneToMany` is true, in dot
|
|
879
|
+
notation (`items`, `lines.lineItems`). Leave blank when the incoming record is itself an array
|
|
880
|
+
(grouped or row-based data) — each element is then a child record. A path that does not resolve
|
|
881
|
+
to an array processes zero records and reports success. Read only on steps that receive a
|
|
882
|
+
record (imports, lookup exports); on a standalone export it is saved and ignored — see `oneToMany`.
|
|
883
|
+
x-celigo-ai-guidance:
|
|
884
|
+
- |-
|
|
885
|
+
Inert on a standalone export (a flow's page generator) exactly like ``oneToMany`` — the value
|
|
886
|
+
is saved, the export's records reach the next step unchanged, and nothing errors
|
|
887
|
+
(live-verified 2026-09-18). Splitting a standalone export's records into one per element is
|
|
888
|
+
``hooks.preSavePage`` work, or the file definition's record boundary; never this field.
|
|
889
|
+
- |-
|
|
890
|
+
Set this ONLY when the record entering the step is an object whose children sit under a field.
|
|
891
|
+
On an array record (a ``groupByFields`` export, a CSV/file group, a script returning an array)
|
|
892
|
+
any path resolves to nothing: the step processes ZERO children, builds no request, and reports
|
|
893
|
+
success with no error. Live-verified 2026-09-10 — the failure is silent, so confirm the arriving
|
|
894
|
+
record's shape (test run stage data, or the flow builder's input panel: ``rows`` means array).
|
|
895
|
+
- |-
|
|
896
|
+
Blank with an object record is the ``oneToMany_error`` failure ("Record at index 0 was not an
|
|
897
|
+
array, and no PathToMany was provided"); blank with an array record is the correct row-based
|
|
898
|
+
configuration. An empty string behaves exactly like an absent field.
|
|
899
|
+
- |-
|
|
900
|
+
Use the bare field name or dotted path (``lineItems``, ``details.items``), not a JSONPath
|
|
901
|
+
expression. Each child in path mode carries ``_PARENT`` (the parent minus the array), so
|
|
902
|
+
parent-level fields are read as ``{{record._PARENT.<field>}}``.
|
|
857
903
|
examples:
|
|
858
904
|
- items
|
|
859
905
|
- line_items
|
|
@@ -874,7 +920,17 @@ components:
|
|
|
874
920
|
When grouping is used, the export's page size determines the maximum number of groups per page, not individual
|
|
875
921
|
records. Note that effective grouping typically requires that records with the same group field values appear
|
|
876
922
|
together in the export data.
|
|
923
|
+
|
|
924
|
+
Not a webhook listener feature: on a `webhook` export the platform applies it only within each page, after
|
|
925
|
+
the request has been paged, and only to adjacent rows — the field is not offered for listeners in the UI.
|
|
877
926
|
x-celigo-ai-guidance:
|
|
927
|
+
- |-
|
|
928
|
+
Never set this on a webhook listener to keep a request's rows together —
|
|
929
|
+
the listener pages the request's records at ``pageSize`` FIRST and then
|
|
930
|
+
merges only adjacent same-key rows inside each page, so rows that cross a
|
|
931
|
+
page boundary still arrive as separate records and unsorted rows are not
|
|
932
|
+
grouped at all. Keep a listener's request together by having the sender
|
|
933
|
+
post an object (one record) or by raising the listener's ``pageSize``.
|
|
878
934
|
- |-
|
|
879
935
|
A grouped record's wire shape is a BARE ARRAY of the grouped rows
|
|
880
936
|
(``[{row}, {row}]``) — there is no ``rows`` key on the record
|
|
@@ -883,10 +939,15 @@ components:
|
|
|
883
939
|
iterate ``{{#each rows}}``); hook code sees the array as the
|
|
884
940
|
record element and must not assume object shape.
|
|
885
941
|
- |-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
942
|
+
A grouped record is ONE record: Mapper 2.0 and Transform 2.0 root
|
|
943
|
+
JSONPath at the array (``$[0].<field>`` / ``$[*].<field>``;
|
|
944
|
+
``$.<field>`` resolves nothing), and a Transform 2.0 in ``mode:
|
|
945
|
+
"create"`` reshapes it in place — header fields from ``$[0]``, a
|
|
946
|
+
lines array from a ``buildArrayHelper`` over ``$[*]`` (``mode:
|
|
947
|
+
"modify"`` has no object to overlay and passes the array through
|
|
948
|
+
untouched). Changing how many records the page carries — each
|
|
949
|
+
row becoming its own record for every downstream step — is the
|
|
950
|
+
``preSavePage`` hook's job alone.
|
|
890
951
|
items:
|
|
891
952
|
type: string
|
|
892
953
|
examples:
|
|
@@ -1994,7 +2055,10 @@ components:
|
|
|
1994
2055
|
- csv
|
|
1995
2056
|
pathToRecords:
|
|
1996
2057
|
type: string
|
|
1997
|
-
description: JSON path into
|
|
2058
|
+
description: JSON path into an object payload to the array whose elements become the records. When omitted, a top-level JSON array is emitted as one record per element and an object payload is emitted as a single record.
|
|
2059
|
+
x-celigo-ai-guidance:
|
|
2060
|
+
- 'Set this only when the records sit inside an object (`{"data": {"items": [...]}}` → `data.items`). A sender that already posts a top-level array needs nothing here; a sender that posts an object with no path configured delivers exactly one record per request — the whole object — which is also the way to make one request one record on purpose.'
|
|
2061
|
+
- 'Records are paged per request at the export''s `pageSize` (default 20) before any hook, filter, or downstream step runs: a 25-element array is a page of 20 records followed by a page of 5, and a `preSavePage` hook receives one page (up to `pageSize` records) per call. A hook that groups rows by order therefore groups only the rows on the same page — an order whose rows span two pages comes out as two grouped records, the second after the first was already processed. To keep a request''s rows together, have the sender wrap them in an object (one record, rows under `record.<path>`) or raise `pageSize` above the largest request — never `groupByFields`, which the listener applies per page after paging.'
|
|
1998
2062
|
examples:
|
|
1999
2063
|
- events
|
|
2000
2064
|
- data.items
|
|
@@ -5562,18 +5626,33 @@ components:
|
|
|
5562
5626
|
- /mnt/nas/backups/clients/acme
|
|
5563
5627
|
- ./backups
|
|
5564
5628
|
- ~/integrations/backups
|
|
5629
|
+
includeSubdirectories:
|
|
5630
|
+
type: boolean
|
|
5631
|
+
default: false
|
|
5632
|
+
x-celigo-ui-override: 'Defaulted by the Azure Data Lake Storage Gen2 export form (fieldDefinitions/resources/exports/azuredatalakestoragegen2.js: ''file.includeSubdirectories'' defaultValue r?.file?.includeSubdirectories === true, visible only for that assistant). The API stores the flag on any file export; the form offers it for ADLS Gen2 only.'
|
|
5633
|
+
description: |-
|
|
5634
|
+
When true, an Azure Data Lake Storage Gen2 transfer (`assistant: azuredatalakestoragegen2`,
|
|
5635
|
+
`http.type: file`) also picks up files in the subdirectories below the directory path in
|
|
5636
|
+
`http.relativeURI`; when false or omitted only that directory's own files are transferred.
|
|
5637
|
+
examples:
|
|
5638
|
+
- true
|
|
5639
|
+
- false
|
|
5565
5640
|
directory:
|
|
5566
5641
|
type: object
|
|
5567
5642
|
required:
|
|
5568
5643
|
- pathMode
|
|
5569
5644
|
description: |-
|
|
5570
5645
|
Structured source location for cloud file-provider sources (Google Drive shared drives,
|
|
5571
|
-
Box, Dropbox
|
|
5572
|
-
by folder ID or by a path relative to
|
|
5573
|
-
|
|
5574
|
-
relative-path field is not consulted at
|
|
5646
|
+
Box, Dropbox, Google Cloud Storage, Azure Data Lake Storage Gen2), replacing the flat path
|
|
5647
|
+
used by classic FTP/S3 sources. Select the location by folder ID or by a path relative to
|
|
5648
|
+
a configured storage root via pathMode. For the drive-style providers, directoryId mode
|
|
5649
|
+
addresses the folder by id alone — the flat relative-path field is not consulted at
|
|
5650
|
+
runtime. Google Cloud Storage puts the bucket in `storageRootId` and the object prefix in
|
|
5651
|
+
`id` with `pathMode: directoryId`; Azure Data Lake Storage Gen2 puts the container in
|
|
5652
|
+
`name` and the directory path in `http.relativeURI`.
|
|
5575
5653
|
x-celigo-ai-guidance:
|
|
5576
5654
|
- Save-time validation accepts any string for id without checking it against the provider — set it only from a folder ID the user supplied or the UI folder browser stored; never fabricate one. To address a folder by path instead, set pathMode to relativePath and put the path in the adaptor's flat path field.
|
|
5655
|
+
- '`id` and `pathMode` are validated as a pair: `pathMode: directoryId` without `id` fails with 422 `missing_required_field` ("File exports require the file.directory.id to have a value."), and `id` with any other pathMode fails with 422 `missing_required_field` ("File exports require the file.directory.pathMode to have a value.").'
|
|
5577
5656
|
properties:
|
|
5578
5657
|
pathMode:
|
|
5579
5658
|
type: string
|
|
@@ -5592,22 +5671,29 @@ components:
|
|
|
5592
5671
|
description: |-
|
|
5593
5672
|
Provider-native folder ID of the source directory (e.g. a Google Drive folder ID); set
|
|
5594
5673
|
when pathMode is directoryId. This is the file provider's own ID, not a Celigo resource ID.
|
|
5674
|
+
For Google Cloud Storage it is the object prefix inside the bucket, ending with `/`.
|
|
5595
5675
|
examples:
|
|
5596
5676
|
- 1KppvTTr4jKhJqwPAhGWN6SRwk5m45DL2
|
|
5677
|
+
- inbound/orders/
|
|
5597
5678
|
name:
|
|
5598
5679
|
type: string
|
|
5599
5680
|
description: |-
|
|
5600
5681
|
Display name of the folder identified by id, kept for readability in the UI; the
|
|
5601
|
-
folder browser fills it when the location is picked visually.
|
|
5682
|
+
folder browser fills it when the location is picked visually. For Azure Data Lake
|
|
5683
|
+
Storage Gen2 it is the authoritative container name instead — the form saves the
|
|
5684
|
+
container here and no id.
|
|
5602
5685
|
examples:
|
|
5603
5686
|
- Invoices - Inbound
|
|
5687
|
+
- invoices-inbound
|
|
5604
5688
|
storageRootId:
|
|
5605
5689
|
type: string
|
|
5606
5690
|
description: |-
|
|
5607
5691
|
Provider-native ID of the storage root (e.g. a Google Drive shared-drive ID) the relative
|
|
5608
5692
|
path resolves against; set when pathMode is relativePath. The provider's own ID, not a Celigo ID.
|
|
5693
|
+
For Google Cloud Storage it is the bucket name.
|
|
5609
5694
|
examples:
|
|
5610
5695
|
- 1qU1hvFarBFMb4-twqKm1rR5o_6j9vs9g
|
|
5696
|
+
- erp-exports
|
|
5611
5697
|
storageRootName:
|
|
5612
5698
|
type: string
|
|
5613
5699
|
description: Display name of the storage root identified by storageRootId, retained for reference in the UI.
|
|
@@ -5858,6 +5944,73 @@ components:
|
|
|
5858
5944
|
examples:
|
|
5859
5945
|
- no_data
|
|
5860
5946
|
- schema.table.column1,schema.table.column2
|
|
5947
|
+
Topic:
|
|
5948
|
+
type: object
|
|
5949
|
+
description: |-
|
|
5950
|
+
Subscription settings for an Event Streams listener (`adaptorType: TopicExport`). The
|
|
5951
|
+
listener consumes messages published to the topic and hands them to the flow in batches;
|
|
5952
|
+
the platform delivers them internally, so the export carries no `_connectionId`. Present
|
|
5953
|
+
when `adaptorType` is `TopicExport`; the server fills `startPosition` and `maxWaitTimeMs`
|
|
5954
|
+
with their defaults when they are omitted.
|
|
5955
|
+
x-celigo-ai-guidance:
|
|
5956
|
+
- |-
|
|
5957
|
+
Send `type: "stream"` together with this object, as the listener form always does; the
|
|
5958
|
+
save also succeeds without `type`, so nothing catches the omission at save time. Sending
|
|
5959
|
+
this object without `adaptorType` is enough for the server to infer `TopicExport`.
|
|
5960
|
+
- |-
|
|
5961
|
+
Never add a `_connectionId`: the server then validates the document as that connection's
|
|
5962
|
+
adaptor instead (an http connection fails with 422 missing_required_field "http subschema
|
|
5963
|
+
not defined"). A TopicExport carries no `cdc` object either — sending `cdc.snapshotMode`
|
|
5964
|
+
fails with 422 `not_allowed` ("CDC snapshotMode can only be used with stream export type").
|
|
5965
|
+
properties:
|
|
5966
|
+
_topicId:
|
|
5967
|
+
type: string
|
|
5968
|
+
format: objectId
|
|
5969
|
+
x-celigo-refModel: topics
|
|
5970
|
+
x-celigo-ui-override: 'Required by the Event Streams listener form (fieldDefinitions/resources/exports/export.js: ''topic._topicId'' is required:true, validWhen isNot ''''). The API saves a TopicExport without it, so the requirement is encoded on the request schema to mirror the form and keep listeners bound to a topic.'
|
|
5971
|
+
description: |-
|
|
5972
|
+
Topic this listener subscribes to. Create or look it up with `GET /v1/topics`; the
|
|
5973
|
+
topic must belong to the same account. Pointing an existing listener at a different
|
|
5974
|
+
topic starts a new subscription, read from `startPosition`.
|
|
5975
|
+
x-celigo-ai-guidance:
|
|
5976
|
+
- |-
|
|
5977
|
+
An id that is not a topic in the account fails the save with 422 `invalid_ref`
|
|
5978
|
+
("<id> is not a valid topic._topicId"); a malformed id fails with 422 `invalid_field`.
|
|
5979
|
+
examples:
|
|
5980
|
+
- 6ab1f48d38d7733b4599875c
|
|
5981
|
+
startPosition:
|
|
5982
|
+
type: string
|
|
5983
|
+
enum:
|
|
5984
|
+
- latest
|
|
5985
|
+
- earliest
|
|
5986
|
+
default: latest
|
|
5987
|
+
x-enumDescriptions:
|
|
5988
|
+
latest: Deliver only messages published after the listener subscribes
|
|
5989
|
+
earliest: Replay every retained message on the topic before delivering new ones
|
|
5990
|
+
description: |-
|
|
5991
|
+
Where the listener starts reading when it first subscribes to `_topicId`. Use `earliest`
|
|
5992
|
+
to backfill retained history, `latest` (the default) to process only new messages. Read
|
|
5993
|
+
on create and whenever `_topicId` changes; on other updates the stored value is kept even
|
|
5994
|
+
if a different value is sent.
|
|
5995
|
+
examples:
|
|
5996
|
+
- latest
|
|
5997
|
+
- earliest
|
|
5998
|
+
maxWaitTimeMs:
|
|
5999
|
+
type: integer
|
|
6000
|
+
minimum: 1000
|
|
6001
|
+
default: 30000
|
|
6002
|
+
description: |-
|
|
6003
|
+
Longest time, in milliseconds, the listener waits to fill a batch before delivering
|
|
6004
|
+
whatever it has collected. Lower values reduce latency for sparse topics; the default
|
|
6005
|
+
of 30 seconds favors fuller batches. The batch record cap is the export's `pageSize`.
|
|
6006
|
+
x-celigo-ai-guidance:
|
|
6007
|
+
- |-
|
|
6008
|
+
Values below 1000 (including 0 and negatives) fail the save with 422 `min`
|
|
6009
|
+
("Path `topic.maxWaitTimeMs` (0) is less than minimum allowed value (1000)"). The form
|
|
6010
|
+
edits this as whole seconds and saves seconds × 1000.
|
|
6011
|
+
examples:
|
|
6012
|
+
- 30000
|
|
6013
|
+
- 5000
|
|
5861
6014
|
FileSystem:
|
|
5862
6015
|
type: object
|
|
5863
6016
|
description: |-
|
|
@@ -5885,7 +6038,10 @@ components:
|
|
|
5885
6038
|
- \\NAS\Accounting\AP
|
|
5886
6039
|
Http:
|
|
5887
6040
|
type: object
|
|
5888
|
-
description:
|
|
6041
|
+
description: |-
|
|
6042
|
+
Configuration for HTTP exports. Required when the export's `_connectionId` references a
|
|
6043
|
+
connection of type `http`, and on `NetSuiteHTTPExport` (NetSuite's REST APIs on a `netsuite`
|
|
6044
|
+
connection, where `nsDomainType` supplies the host).
|
|
5889
6045
|
x-celigo-ai-guidance:
|
|
5890
6046
|
- |-
|
|
5891
6047
|
IMPORTANT:
|
|
@@ -5893,6 +6049,12 @@ components:
|
|
|
5893
6049
|
this object MUST be populated for the export to function properly.
|
|
5894
6050
|
This is a required configuration for all HTTP based exports,
|
|
5895
6051
|
as determined by the connection associated with the export.
|
|
6052
|
+
- |-
|
|
6053
|
+
A `NetSuiteHTTPExport` uses this same object on a netsuite connection: `relativeURI`
|
|
6054
|
+
carries the full path from `/services/rest/...` (SuiteTalk) or
|
|
6055
|
+
`/app/site/hosting/restlet.nl?script=<id>&deploy=<n>` (custom RESTlet), the host and the
|
|
6056
|
+
token signature come from the connection, and `type` must stay unset (file, blob and
|
|
6057
|
+
csvstream are rejected with 422 unsupported_type).
|
|
5896
6058
|
properties:
|
|
5897
6059
|
type:
|
|
5898
6060
|
type: string
|
|
@@ -5901,10 +6063,10 @@ components:
|
|
|
5901
6063
|
- blob
|
|
5902
6064
|
- csvstream
|
|
5903
6065
|
x-enumDescriptions:
|
|
5904
|
-
file:
|
|
6066
|
+
file: Works with files instead of a record endpoint — a raw file download (PDFs, images, binary data), or a file-provider folder whose files the file object parses into records (csv, json, xml, xlsx, filedefinition incl. EDI)
|
|
5905
6067
|
blob: Transfers the raw response body downstream as a blob without parsing it into records.
|
|
5906
6068
|
csvstream: Streams a large CSV response, parsing it row-by-row instead of loading the whole body into memory.
|
|
5907
|
-
description: Set to `file`
|
|
6069
|
+
description: 'Set to `file` when the export works with files rather than a record-returning endpoint: raw file downloads (PDFs, images, binary data) and the folder mode of the cloud file providers (Google Drive, Box, Dropbox, Azure Blob, Google Cloud Storage, Celigo Storage), where each file in the folder is parsed by the `file` object''s `type` (csv, json, xml, xlsx, filedefinition — including EDI) into records; the `file` object must also be configured. Leave undefined for standard data exports that return structured records (JSON, XML, GraphQL, SOAP responses) — the response is then parsed into records for downstream steps. When set to `file` or `blob`, the export appears as a "Transfer" step in Flow Builder instead of a standard "Export" step.'
|
|
5908
6070
|
x-celigo-ai-guidance:
|
|
5909
6071
|
- |-
|
|
5910
6072
|
## IMPORTANT: This field should be LEFT UNDEFINED for the vast majority of HTTP exports.
|
|
@@ -5926,18 +6088,24 @@ components:
|
|
|
5926
6088
|
- "Export all Shopify Customers" → undefined (returns JSON customer records)
|
|
5927
6089
|
- "Retrieve orders from custom REST API" → undefined (returns JSON order records)
|
|
5928
6090
|
- |-
|
|
5929
|
-
## WHEN TO SET THIS FIELD TO 'file' (
|
|
6091
|
+
## WHEN TO SET THIS FIELD TO 'file' (the export works with FILES, not a record endpoint):
|
|
5930
6092
|
|
|
5931
|
-
Set this field to 'file'
|
|
5932
|
-
- The endpoint
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
-
|
|
6093
|
+
Set this field to 'file' in two situations:
|
|
6094
|
+
- The HTTP endpoint is specifically designed to download files — it returns raw binary
|
|
6095
|
+
file content (PDFs, images, ZIP files) or is a file download service (invoices,
|
|
6096
|
+
reports, attachments) whose body is saved as a file rather than parsed as records
|
|
6097
|
+
- The connection is a cloud file provider used in FOLDER mode (Google Drive, Box, Dropbox,
|
|
6098
|
+
Azure Blob Storage, Google Cloud Storage, Celigo Storage): the export reads the files
|
|
6099
|
+
in a folder and the 'file' object's `type` (csv, json, xml, xlsx, filedefinition)
|
|
6100
|
+
parses each one into records — the same file layer as an FTP or S3 export
|
|
5936
6101
|
|
|
5937
6102
|
Examples of when to set type: "file":
|
|
5938
6103
|
- "Download PDF invoices from the API" → type: "file"
|
|
5939
6104
|
- "Retrieve image files from a file server" → type: "file"
|
|
5940
|
-
- "
|
|
6105
|
+
- "Read the CSV files dropped in our Google Drive folder" → type: "file", with file.type "csv"
|
|
6106
|
+
- "Parse EDI X12 850 files from a Google Drive / Celigo Storage folder" → type: "file",
|
|
6107
|
+
with file.type "filedefinition" and a top-level _ediProfileId (EDI fields are
|
|
6108
|
+
accepted on HTTP exports only in file mode)
|
|
5941
6109
|
- |-
|
|
5942
6110
|
## IMPLEMENTATION DETAILS
|
|
5943
6111
|
|
|
@@ -5945,7 +6113,9 @@ components:
|
|
|
5945
6113
|
- The 'file' object property MUST also be configured
|
|
5946
6114
|
- The export appears as a "Transfer" step in the Flow Builder UI
|
|
5947
6115
|
- The system applies file-specific processing to the HTTP response
|
|
5948
|
-
- Downstream steps receive file
|
|
6116
|
+
- Downstream steps receive records when the 'file' object's `type` parses the files
|
|
6117
|
+
(csv, json, xml, xlsx, filedefinition with `file.output: "records"`), or the file
|
|
6118
|
+
content itself when `file.output` is "blobKeys"
|
|
5949
6119
|
|
|
5950
6120
|
When this field is undefined (default for most exports):
|
|
5951
6121
|
- The export appears as a standard "Export" step in the Flow Builder UI
|
|
@@ -5960,6 +6130,9 @@ components:
|
|
|
5960
6130
|
→ YES: Leave this field undefined
|
|
5961
6131
|
3. Does the API endpoint return raw file content (PDFs, images, binary data)?
|
|
5962
6132
|
→ YES: Set this field to "file" (and configure the 'file' property)
|
|
6133
|
+
4. Is the connection a cloud file provider and the export reads a FOLDER of files
|
|
6134
|
+
(CSV, JSON, XML, XLSX, or EDI via a file definition)?
|
|
6135
|
+
→ YES: Set this field to "file" (and configure the 'file' property with the parsing type)
|
|
5963
6136
|
|
|
5964
6137
|
Remember: When in doubt, leave this field undefined. Most HTTP exports are standard data exports.
|
|
5965
6138
|
examples:
|
|
@@ -5988,23 +6161,33 @@ components:
|
|
|
5988
6161
|
- graph_ql
|
|
5989
6162
|
method:
|
|
5990
6163
|
type: string
|
|
5991
|
-
description:
|
|
6164
|
+
description: |-
|
|
6165
|
+
HTTP method used to request data from the target API. Consult the target API's
|
|
6166
|
+
documentation to determine the appropriate method. `HEAD` exists for connector endpoints
|
|
6167
|
+
that return metadata in response headers only (Azure Data Lake Storage Gen2 path
|
|
6168
|
+
properties).
|
|
5992
6169
|
enum:
|
|
5993
6170
|
- GET
|
|
5994
6171
|
- POST
|
|
5995
6172
|
- PUT
|
|
5996
6173
|
- PATCH
|
|
5997
6174
|
- DELETE
|
|
6175
|
+
- HEAD
|
|
5998
6176
|
x-enumDescriptions:
|
|
5999
6177
|
GET: Retrieves data from the target API without modifying resources.
|
|
6000
6178
|
POST: Sends a request body to the target API when body criteria are needed, commonly used for RPC or SOAP/XML-based data retrieval
|
|
6001
6179
|
PUT: Sends a full replacement payload, available for APIs that support it for data retrieval.
|
|
6002
6180
|
PATCH: Sends a partial update payload, less common for exports but available for specialized APIs.
|
|
6003
6181
|
DELETE: Requests resource deletion, rarely used for exports but available for specialized use cases.
|
|
6182
|
+
HEAD: Requests only the response headers, for connector endpoints that expose metadata that way (e.g. ADLS Gen2 path properties); there is no body to parse
|
|
6183
|
+
x-celigo-ai-guidance:
|
|
6184
|
+
- |-
|
|
6185
|
+
Any other verb fails the save with 422 `enum` ("`OPTIONS` is not a valid enum value for
|
|
6186
|
+
path `http.method`"). Import `http.method` does not accept `HEAD`.
|
|
6004
6187
|
examples:
|
|
6005
6188
|
- GET
|
|
6006
6189
|
- POST
|
|
6007
|
-
-
|
|
6190
|
+
- HEAD
|
|
6008
6191
|
followRedirects:
|
|
6009
6192
|
type: boolean
|
|
6010
6193
|
default: true
|
|
@@ -6031,7 +6214,7 @@ components:
|
|
|
6031
6214
|
x-celigo-agent:
|
|
6032
6215
|
- handlebars
|
|
6033
6216
|
x-celigo-handlebars-context: pre-mapped
|
|
6034
|
-
description: 'Resource path appended to the connection''s `baseURI` to form the complete request URL. Path segments, query parameters, or the entire value can be built with handlebars expressions for endpoints determined at runtime. For lookup exports (`isLookup: true`) with mappings configured, handlebars always render against the original pre-mapped input record, so fields removed or renamed by mappings remain available for URI construction.'
|
|
6217
|
+
description: 'Resource path appended to the connection''s `baseURI` to form the complete request URL. Path segments, query parameters, or the entire value can be built with handlebars expressions for endpoints determined at runtime. For lookup exports (`isLookup: true`) with mappings configured, handlebars always render against the original pre-mapped input record, so fields removed or renamed by mappings remain available for URI construction. On `NetSuiteHTTPExport` the base URL is derived from the NetSuite connection and `nsDomainType`, so the path starts at `/services/rest/...` or `/app/site/hosting/restlet.nl`.'
|
|
6035
6218
|
x-celigo-ai-guidance:
|
|
6036
6219
|
- The resource path portion of the API endpoint used for this export.
|
|
6037
6220
|
- |-
|
|
@@ -7451,7 +7634,7 @@ components:
|
|
|
7451
7634
|
- recordId
|
|
7452
7635
|
successPath:
|
|
7453
7636
|
type: string
|
|
7454
|
-
description: Path to a response field that signals whether the call succeeded, for APIs that return HTTP 200 even on failure.
|
|
7637
|
+
description: 'Path to a response field that signals whether the call succeeded, for APIs that return HTTP 200 even on failure. With `successValues`, the value at this path must match one of them; without `successValues`, the path only has to resolve — a response in which it is absent fails with `response_failure` ("Unable to extract paths from response body using path: <path>, Response: …").'
|
|
7455
7638
|
x-celigo-ai-guidance:
|
|
7456
7639
|
- |-
|
|
7457
7640
|
Use this when the API returns HTTP 200 for all requests but signals success or
|
|
@@ -7459,6 +7642,25 @@ components:
|
|
|
7459
7642
|
- |-
|
|
7460
7643
|
Example: If the API returns `{"status": "ok", "data": [...]}`,
|
|
7461
7644
|
set `successPath` to `status` and `successValues` to `["ok"]`.
|
|
7645
|
+
- |-
|
|
7646
|
+
On a LOOKUP step this is also the way to make "no match" fail the record. A lookup
|
|
7647
|
+
whose `resourcePath` resolves to nothing returns zero records and the platform counts
|
|
7648
|
+
that as success: the record continues to the next step with nothing merged, and the
|
|
7649
|
+
flow's `pageProcessors[].proceedOnFailure` for that step has no bearing on it. Set
|
|
7650
|
+
`successPath` (no `successValues`) to a path that exists only when a match was found,
|
|
7651
|
+
e.g. `results[0].id`: an empty result then fails the record with `response_failure`
|
|
7652
|
+
(`Unable to extract paths from response body using path: results[0].id, Response:
|
|
7653
|
+
{…}`), and `proceedOnFailure: true` on that step lets the failed record continue.
|
|
7654
|
+
Live-verified 2026-09-24 in real flow runs (listener -> HTTP lookup -> import, one
|
|
7655
|
+
record each): empty result with no `successPath` -> lookup 1 success, import 1
|
|
7656
|
+
success, with or without `proceedOnFailure`; `successPath` on an absent path ->
|
|
7657
|
+
lookup 1 error with that message, import 0 (1 with `proceedOnFailure: true`);
|
|
7658
|
+
`successPath` on a present path -> success. The error text is generic; for a custom
|
|
7659
|
+
message a `preSavePage` hook on the lookup that returns one `newErrorsAndRetryData`
|
|
7660
|
+
entry (`{errors: [{code: 404, message: "Product not found"}]}`) when `options.data`
|
|
7661
|
+
and `options.errors` are both empty failed the record with "Product not found" in
|
|
7662
|
+
the same runs. Lookups on adaptors without HTTP response settings (NetSuite, for
|
|
7663
|
+
example) have no `successPath`.
|
|
7462
7664
|
examples:
|
|
7463
7665
|
- status
|
|
7464
7666
|
- success
|
|
@@ -7551,37 +7753,49 @@ components:
|
|
|
7551
7753
|
_httpConnectorVersionId:
|
|
7552
7754
|
type: string
|
|
7553
7755
|
format: objectId
|
|
7554
|
-
|
|
7555
|
-
|
|
7756
|
+
description: |-
|
|
7757
|
+
Pins the export to a version of the published HTTP connector its connection is bound to
|
|
7758
|
+
(`connection.http._httpConnectorId`), so the UI renders that connector's endpoint form instead
|
|
7759
|
+
of a hand-authored request. Linked on save together with `_httpConnectorResourceId` and
|
|
7760
|
+
`_httpConnectorEndpointId` — see that field for the rule.
|
|
7556
7761
|
_httpConnectorResourceId:
|
|
7557
7762
|
type: string
|
|
7558
7763
|
format: objectId
|
|
7559
|
-
|
|
7560
|
-
description:
|
|
7764
|
+
x-celigo-refModel: httpconnectorresources
|
|
7765
|
+
description: |-
|
|
7766
|
+
The connector resource (a group of related endpoints, such as Orders) that this export's
|
|
7767
|
+
endpoint belongs to. Linked on save together with `_httpConnectorEndpointId` — see that field
|
|
7768
|
+
for the rule.
|
|
7561
7769
|
sendAuthForFileDownloads:
|
|
7562
7770
|
type: boolean
|
|
7563
7771
|
description: When true, includes authentication headers when downloading files.
|
|
7564
7772
|
_httpConnectorEndpointId:
|
|
7565
7773
|
type: string
|
|
7566
7774
|
format: objectId
|
|
7567
|
-
readOnly: true
|
|
7568
7775
|
x-celigo-refModel: httpconnectorendpoints
|
|
7569
|
-
description:
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7776
|
+
description: |-
|
|
7777
|
+
The connector endpoint this export calls, shown in the UI as the selected endpoint. On save the
|
|
7778
|
+
platform derives it (with the version and resource ids) from `relativeURI` and `method` when
|
|
7779
|
+
they match an endpoint of the connector the connection is bound to — path parameters, literal
|
|
7780
|
+
ids and query strings still match — and replaces ids that belong to another connector. An id for
|
|
7781
|
+
the connection's own connector is kept as sent even when the URI names a different endpoint;
|
|
7782
|
+
when nothing matches, or the connection has no connector, whatever was sent is kept and nothing
|
|
7783
|
+
is derived.
|
|
7784
|
+
x-celigo-ai-guidance:
|
|
7785
|
+
- |-
|
|
7786
|
+
To build an export on a prebuilt connector instead of a hand-rolled HTTP request, bind the
|
|
7787
|
+
CONNECTION (`http._httpConnectorId` — find the connector in `GET /v1/httpconnectors` by `name`
|
|
7788
|
+
or `legacyId`) and write the endpoint's `relativeURI` and `method`; the platform links the
|
|
7789
|
+
export to that endpoint on save, so the three pointer fields may be omitted. Read the saved
|
|
7790
|
+
export back: no pointers means the URI matched no endpoint of the connection's connector. Set
|
|
7791
|
+
`_httpConnectorVersionId`, `_httpConnectorResourceId` and `_httpConnectorEndpointId` together
|
|
7792
|
+
only to pin a same-connector endpoint the URI would not match. Endpoint discovery through the
|
|
7793
|
+
published operations: `GET /v1/httpconnectors/{_id}` (`versions`, under `apis[]` for
|
|
7794
|
+
multi-API connectors), `GET /v1/httpconnectors/{_id}/httpconnectorresources`,
|
|
7795
|
+
`GET /v1/httpconnectors/{_id}/{_httpConnectorResourceId}/httpconnectorendpoints`, and
|
|
7796
|
+
`GET /v1/httpconnectors/{_id}/{_httpConnectorResourceId}/{_id}` for an endpoint's `method` and
|
|
7797
|
+
`relativeURI`. A top-level `_httpConnectorId` on the export itself is dropped. Verified against
|
|
7798
|
+
the live API 2026-09-21.
|
|
7585
7799
|
Salesforce:
|
|
7586
7800
|
type: object
|
|
7587
7801
|
description: 'Configuration for Salesforce exports. Required when the export''s `_connectionId` references a Salesforce connection; omit for other connection types. The `type` field selects the extraction mode: `soql` runs batch queries and requires the `soql` object, while `distributed` listens for real-time events and requires the `distributed` object. File retrieval (when the export''s `type` is `blob`) requires `sObjectType` and `id` instead.'
|
|
@@ -8273,60 +8487,33 @@ components:
|
|
|
8273
8487
|
type:
|
|
8274
8488
|
- string
|
|
8275
8489
|
- 'null'
|
|
8276
|
-
description:
|
|
8490
|
+
description: SOQL WHERE-clause condition that filters which record events the listener processes; when omitted (stored as `null`), every event for the object is processed. The Celigo Salesforce package evaluates it inside Salesforce as `SELECT Id FROM <sObjectType> WHERE (<qualifier>) AND Id IN :ids` before anything is sent, so only fields of the monitored object and SOQL comparison syntax apply — Salesforce formula functions are not part of this grammar. A deleted record is never returned by that query, so a listener with any qualifier receives no delete events; leave it unset when removals must trigger the flow.
|
|
8277
8491
|
x-celigo-ai-guidance:
|
|
8278
8492
|
- |-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
- OPTIONAL: If omitted, all events for the object are processed
|
|
8284
|
-
- Uses Salesforce formula syntax for filtering
|
|
8285
|
-
- Evaluated before events are sent to the integration platform
|
|
8286
|
-
- Can reference any field on the triggering record
|
|
8493
|
+
Write SOQL WHERE syntax only: `field = value`, `!=`, `<`, `>`, `<=`, `>=`, `LIKE`,
|
|
8494
|
+
`IN (...)`, `AND` / `OR`, parentheses for grouping, `NOT ( <comparison> )`, and
|
|
8495
|
+
lowercase `true` / `false` literals.
|
|
8287
8496
|
- |-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
"Status__c = 'Approved'"
|
|
8293
|
-
```
|
|
8294
|
-
- Processes events only when specific field values match
|
|
8295
|
-
- Most efficient filtering approach
|
|
8296
|
-
- Can use =, !=, >, <, >=, <= operators
|
|
8297
|
-
|
|
8298
|
-
### Logical Conditions
|
|
8299
|
-
```
|
|
8300
|
-
"Amount > 1000 AND Status__c = 'New'"
|
|
8301
|
-
```
|
|
8302
|
-
- Combines multiple conditions with AND, OR operators
|
|
8303
|
-
- Can use parentheses for complex grouping
|
|
8304
|
-
- Allows precise control over which events trigger the integration
|
|
8305
|
-
|
|
8306
|
-
### Formula Functions
|
|
8307
|
-
```
|
|
8308
|
-
"CONTAINS(Description, 'Priority') OR ISCHANGED(Status__c)"
|
|
8309
|
-
```
|
|
8310
|
-
- Uses Salesforce formula functions
|
|
8311
|
-
- ISCHANGED detects specific field modifications
|
|
8312
|
-
- ISNEW, ISDELETED detect record lifecycle events
|
|
8497
|
+
Formula syntax is rejected at save with HTTP 422 `Either whereClause expression ...
|
|
8498
|
+
is invalid ... unexpected token` — observed for `AND(a, b)` argument lists,
|
|
8499
|
+
`NOT(field)` on a bare boolean, `NOT(ISNEW())`, `ISDELETED()`, and `ISBLANK(field)`;
|
|
8500
|
+
uppercase `= FALSE` has been rewritten to `NOT(field)` and rejected the same way.
|
|
8313
8501
|
- |-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
Use valid Salesforce formula syntax and reference only fields that exist
|
|
8324
|
-
on the primary object being monitored.
|
|
8502
|
+
The rejection surfaces on a real save (a create, or the user's Accept of a staged
|
|
8503
|
+
update) — dry-run validation does not run the Salesforce-side check, so a staged
|
|
8504
|
+
card carrying an invalid qualifier passes dry-run and fails at Accept.
|
|
8505
|
+
- |-
|
|
8506
|
+
`IsDeleted = true` in a qualifier admits nothing — the query runs against the live
|
|
8507
|
+
record, which no longer exists after a delete, so any qualified listener stops
|
|
8508
|
+
receiving deletions. To keep deletes flowing, leave the qualifier unset and drop
|
|
8509
|
+
unwanted events with the export's output filter, accepting that those events still
|
|
8510
|
+
start a run.
|
|
8325
8511
|
examples:
|
|
8326
8512
|
- Amount > 1000
|
|
8327
8513
|
- Status__c = 'Approved'
|
|
8328
8514
|
- LeadSource = 'Web' AND Competitor__c = 'Oracle'
|
|
8329
|
-
-
|
|
8515
|
+
- IsDirect = false
|
|
8516
|
+
- StageName = 'Won' AND ( NOT ( Unresolved_Errors__c >= 1 ) )
|
|
8330
8517
|
batchSize:
|
|
8331
8518
|
type:
|
|
8332
8519
|
- integer
|
|
@@ -9498,9 +9685,12 @@ components:
|
|
|
9498
9685
|
MongoDB:
|
|
9499
9686
|
type: object
|
|
9500
9687
|
description: |-
|
|
9501
|
-
Defines how documents are retrieved from MongoDB collections. Required
|
|
9502
|
-
_connectionId field references a MongoDB connection
|
|
9503
|
-
|
|
9688
|
+
Defines how documents are retrieved from MongoDB collections. Required, with `method` and
|
|
9689
|
+
`collection`, when the _connectionId field references a MongoDB connection and the export
|
|
9690
|
+
fetches documents; must not be included for other connection types. A change-stream
|
|
9691
|
+
listener (`type: stream`) is configured through `cdc` instead and may omit this object, or
|
|
9692
|
+
set only `collection` to scope the listener. Supports find queries with optional filter
|
|
9693
|
+
criteria and field projections.
|
|
9504
9694
|
x-celigo-ai-guidance:
|
|
9505
9695
|
- Configuration object for MongoDB data integration exports.
|
|
9506
9696
|
- |-
|
|
@@ -9509,8 +9699,11 @@ components:
|
|
|
9509
9699
|
- Filters documents based on query criteria
|
|
9510
9700
|
- Selects specific fields with projections
|
|
9511
9701
|
- Provides NoSQL flexibility with JSON query syntax
|
|
9512
|
-
|
|
9513
|
-
|
|
9702
|
+
- |-
|
|
9703
|
+
On a find export both `method` and `collection` are validator-enforced: omitting either
|
|
9704
|
+
fails the save with 422 `missing_required_field` ("Expected field: collection to be
|
|
9705
|
+
present." / "Expected field: method to be present."). On a `type: stream` listener neither
|
|
9706
|
+
is required and the object is returned only when `collection` is set.
|
|
9514
9707
|
properties:
|
|
9515
9708
|
method:
|
|
9516
9709
|
type: string
|
|
@@ -9528,7 +9721,7 @@ components:
|
|
|
9528
9721
|
|
|
9529
9722
|
This field defines the query approach:
|
|
9530
9723
|
|
|
9531
|
-
- REQUIRED for
|
|
9724
|
+
- REQUIRED for find exports (not for `type: stream` listeners)
|
|
9532
9725
|
- Currently only supports "find" operations
|
|
9533
9726
|
- Determines how other parameters are interpreted
|
|
9534
9727
|
- Corresponds to MongoDB's db.collection.find() method
|
|
@@ -9562,10 +9755,11 @@ components:
|
|
|
9562
9755
|
- find
|
|
9563
9756
|
collection:
|
|
9564
9757
|
type: string
|
|
9565
|
-
x-celigo-ui-override: Required by the MongoDB export form (mongodb.collection is required:true). Encoded to mirror the form so builders produce connectable configurations.
|
|
9566
9758
|
description: |-
|
|
9567
9759
|
Name of the MongoDB collection to query. Case-sensitive and must reference an existing
|
|
9568
|
-
collection in the connected database.
|
|
9760
|
+
collection in the connected database. Required on find exports; on a change-stream
|
|
9761
|
+
listener (`type: stream`) it is optional and may list several collections separated by
|
|
9762
|
+
commas, matching the listener form's "Collections" field.
|
|
9569
9763
|
x-celigo-ai-guidance:
|
|
9570
9764
|
- Specifies the MongoDB collection to query for documents.
|
|
9571
9765
|
- |-
|
|
@@ -9573,7 +9767,7 @@ components:
|
|
|
9573
9767
|
|
|
9574
9768
|
This field identifies the data source:
|
|
9575
9769
|
|
|
9576
|
-
- REQUIRED for
|
|
9770
|
+
- REQUIRED for find exports; optional (single or comma-separated) on `type: stream` listeners
|
|
9577
9771
|
- Must reference a valid collection in the MongoDB database
|
|
9578
9772
|
- Case-sensitive according to MongoDB collection naming
|
|
9579
9773
|
- The primary container for documents to be retrieved
|
|
@@ -9581,7 +9775,7 @@ components:
|
|
|
9581
9775
|
- customers
|
|
9582
9776
|
- orders
|
|
9583
9777
|
- product_catalog
|
|
9584
|
-
-
|
|
9778
|
+
- users, orders, products
|
|
9585
9779
|
filter:
|
|
9586
9780
|
type: string
|
|
9587
9781
|
description: |-
|
|
@@ -9827,7 +10021,7 @@ components:
|
|
|
9827
10021
|
- distributed
|
|
9828
10022
|
- file
|
|
9829
10023
|
x-enumDescriptions:
|
|
9830
|
-
search: Retrieves records
|
|
10024
|
+
search: Retrieves records with a NetSuite saved search over SOAP web services; the export form marks this path deprecated in favour of the REST APIs for new exports
|
|
9831
10025
|
basicSearch: Retrieves records using a basic NetSuite search query.
|
|
9832
10026
|
metadata: Retrieves metadata about a NetSuite record type.
|
|
9833
10027
|
selectoption: Retrieves the available select options for a specific field.
|
|
@@ -10079,45 +10273,10 @@ components:
|
|
|
10079
10273
|
related rows. When false or omitted, related rows are grouped before processing.
|
|
10080
10274
|
x-celigo-ai-guidance:
|
|
10081
10275
|
- |-
|
|
10082
|
-
|
|
10083
|
-
|
|
10084
|
-
|
|
10085
|
-
-
|
|
10086
|
-
## FIELD BEHAVIOR:
|
|
10087
|
-
- When set to true, the system processes each record or transaction independently, without combining them into groups based on shared attributes.
|
|
10088
|
-
- When set to false or omitted, related records or transactions are aggregated according to predefined grouping criteria (e.g., by customer, date, or transaction type) before processing.
|
|
10089
|
-
- Influences how data is structured, summarized, and reported in outputs or passed to downstream systems.
|
|
10090
|
-
- Affects the level of detail and granularity available in the processed data.
|
|
10091
|
-
- |-
|
|
10092
|
-
## IMPLEMENTATION GUIDANCE:
|
|
10093
|
-
- Utilize this flag to control processing granularity, especially when detailed, record-level analysis or reporting is required.
|
|
10094
|
-
- Confirm that downstream systems, reports, or integrations can accommodate ungrouped data if skipGrouping is enabled.
|
|
10095
|
-
- Assess the potential impact on system performance and data volume, as disabling grouping may significantly increase the number of processed items.
|
|
10096
|
-
- Consider the use case carefully: grouping is generally preferred for summary reports, while skipping grouping suits detailed audits or troubleshooting.
|
|
10097
|
-
- For `exportSelect` / `refreshableSelect` dropdowns backed by a NetSuite RESTlet, set `skipGrouping: true`: the UI's option mapper expects flat per-row results, and the platform otherwise wraps each row in its own grouping list (every option's `label` then renders as `undefined`).
|
|
10098
|
-
- |-
|
|
10099
|
-
## EXAMPLES:
|
|
10100
|
-
- skipGrouping: true — Processes each transaction separately, providing detailed, unaggregated data.
|
|
10101
|
-
- skipGrouping: false — Groups transactions by customer or date, producing summarized results.
|
|
10102
|
-
- skipGrouping omitted — Defaults to grouping enabled, aggregating related records.
|
|
10103
|
-
- |-
|
|
10104
|
-
## IMPORTANT NOTES:
|
|
10105
|
-
- Enabling skipGrouping can lead to increased processing time, higher memory usage, and larger output datasets.
|
|
10106
|
-
- Some reports, dashboards, or integrations may require grouped data; verify compatibility before enabling this option.
|
|
10107
|
-
- The default behavior is typically grouping enabled (skipGrouping = false) unless explicitly overridden.
|
|
10108
|
-
- Changes to this setting may affect data consistency and comparability with previously generated reports.
|
|
10109
|
-
- |-
|
|
10110
|
-
## DEPENDENCY CHAIN:
|
|
10111
|
-
- Often depends on other properties that define grouping keys or criteria (e.g., groupBy fields).
|
|
10112
|
-
- May interact with filtering, sorting, or pagination settings within the processing pipeline.
|
|
10113
|
-
- Could influence or be influenced by aggregation functions or summary calculations applied downstream.
|
|
10114
|
-
- |-
|
|
10115
|
-
## TECHNICAL DETAILS:
|
|
10116
|
-
- Data type: Boolean.
|
|
10117
|
-
- Default value: false (grouping enabled).
|
|
10118
|
-
- Implemented as a conditional flag checked during the data aggregation phase.
|
|
10119
|
-
- When true, bypasses aggregation logic and processes each record individually.
|
|
10120
|
-
- Typically integrated into the processing workflow to toggle between grouped and ungrouped data handling.
|
|
10276
|
+
Set `true` for an ad-hoc RESTlet search (criteria and columns without a saved
|
|
10277
|
+
search): grouping needs the search sorted by the grouping key, and an unsorted ad-hoc
|
|
10278
|
+
search fails with `[search_not_sorted]`.
|
|
10279
|
+
- 'For `exportSelect` / `refreshableSelect` dropdowns backed by a NetSuite RESTlet, set `skipGrouping: true`: the UI''s option mapper expects flat per-row results, and the platform otherwise wraps each row in its own grouping list (every option''s `label` then renders as `undefined`).'
|
|
10121
10280
|
statsOnly:
|
|
10122
10281
|
type: boolean
|
|
10123
10282
|
description: |-
|
|
@@ -10325,50 +10484,18 @@ components:
|
|
|
10325
10484
|
- purchaseOrder
|
|
10326
10485
|
x-celigo-ai-guidance:
|
|
10327
10486
|
- |-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
- |-
|
|
10333
|
-
## FIELD BEHAVIOR:
|
|
10334
|
-
- Defines the specific NetSuite record type (e.g., customer, salesOrder, invoice) targeted by the RESTlet.
|
|
10335
|
-
- Influences the structure and format of data payloads sent to and received from the RESTlet.
|
|
10336
|
-
- Controls validation rules, mandatory fields, and available operations based on the selected record type.
|
|
10337
|
-
- Affects permissions and access controls enforced during RESTlet execution, ensuring compliance with NetSuite security settings.
|
|
10338
|
-
- Determines the applicable business logic and workflows triggered by the RESTlet for the specified record type.
|
|
10339
|
-
- |-
|
|
10340
|
-
## IMPLEMENTATION GUIDANCE:
|
|
10341
|
-
- Use the exact internal ID or script ID of the NetSuite record type as recognized by the NetSuite system to ensure accurate targeting.
|
|
10342
|
-
- Validate the recordType value against the list of supported NetSuite record types to prevent runtime errors and ensure compatibility.
|
|
10343
|
-
- Confirm that the RESTlet script has the necessary permissions and roles assigned to access and manipulate the specified record type.
|
|
10344
|
-
- When handling multiple record types dynamically, implement conditional logic to accommodate differences in data structure and processing requirements.
|
|
10345
|
-
- For custom record types, always use the script ID format (e.g., "customrecord_myCustomRecord") to avoid ambiguity.
|
|
10346
|
-
- Test RESTlet behavior thoroughly after changing the recordType to verify correct handling of data and operations.
|
|
10347
|
-
- |-
|
|
10348
|
-
## EXAMPLES:
|
|
10349
|
-
- "customer"
|
|
10350
|
-
- "salesOrder"
|
|
10351
|
-
- "invoice"
|
|
10352
|
-
- "employee"
|
|
10353
|
-
- "customrecord_myCustomRecord"
|
|
10354
|
-
- "vendor"
|
|
10355
|
-
- "purchaseOrder"
|
|
10356
|
-
- |-
|
|
10357
|
-
## IMPORTANT NOTES:
|
|
10358
|
-
- The recordType must correspond to a valid and supported NetSuite record type; invalid values will cause API calls to fail.
|
|
10359
|
-
- Custom record types require referencing by their script IDs, which typically start with "customrecord_".
|
|
10360
|
-
- Modifying the recordType may necessitate updates to the RESTlet's codebase to handle different data schemas and business logic.
|
|
10361
|
-
- Permissions and role restrictions in NetSuite can limit access to certain record types, impacting RESTlet functionality.
|
|
10362
|
-
- Consistency in recordType usage is critical for maintaining data integrity and predictable RESTlet behavior.
|
|
10363
|
-
- |-
|
|
10364
|
-
## DEPENDENCY CHAIN:
|
|
10365
|
-
- Depends on the NetSuite environment's available record types and their configurations.
|
|
10366
|
-
- Influences the RESTlet's data validation, processing logic, and response formatting.
|
|
10487
|
+
Saved searches over any transaction type (sales orders, purchase orders,
|
|
10488
|
+
invoices, ...) run with `recordType: "transaction"` and narrow the type through the
|
|
10489
|
+
search or a `criteria` row such as `{"field": "type", "operator": "anyof",
|
|
10490
|
+
"searchValue": ["PurchOrd"]}`.
|
|
10367
10491
|
batchSize:
|
|
10368
10492
|
type: number
|
|
10369
10493
|
description: |-
|
|
10370
|
-
Number of records the RESTlet returns per
|
|
10371
|
-
|
|
10494
|
+
Number of records the RESTlet returns per request (default 1000). This, not the
|
|
10495
|
+
export's `pageSize`, sizes each NetSuite call; the export keeps requesting until the
|
|
10496
|
+
search is exhausted. Larger batches reduce round-trips but raise NetSuite governance
|
|
10497
|
+
and memory use per call; tune to the record's size. In a test run or preview the
|
|
10498
|
+
request is capped at the export's `pageSize` (default 20) instead.
|
|
10372
10499
|
examples:
|
|
10373
10500
|
- 100
|
|
10374
10501
|
- 200
|
|
@@ -10382,49 +10509,16 @@ components:
|
|
|
10382
10509
|
saved search's current definition, so editing the search in NetSuite changes the
|
|
10383
10510
|
export output without changing this ID.
|
|
10384
10511
|
examples:
|
|
10385
|
-
- '
|
|
10386
|
-
-
|
|
10387
|
-
- '
|
|
10388
|
-
- '2002'
|
|
10512
|
+
- '9013'
|
|
10513
|
+
- customsearch_plan_velocity
|
|
10514
|
+
- '-1'
|
|
10389
10515
|
x-celigo-ai-guidance:
|
|
10390
10516
|
- |-
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
-
|
|
10395
|
-
|
|
10396
|
-
- |-
|
|
10397
|
-
## FIELD BEHAVIOR:
|
|
10398
|
-
- Specifies the exact saved search to be executed by the RESTlet.
|
|
10399
|
-
- Must correspond to a valid and existing saved search internal ID within the NetSuite account.
|
|
10400
|
-
- Determines the dataset and filters applied when retrieving search results.
|
|
10401
|
-
- Typically required when invoking the RESTlet to perform search operations.
|
|
10402
|
-
- Influences the structure and content of the response based on the saved search definition.
|
|
10403
|
-
- |-
|
|
10404
|
-
## IMPLEMENTATION GUIDANCE:
|
|
10405
|
-
- Verify that the searchId matches an existing saved search internal ID in the target NetSuite environment.
|
|
10406
|
-
- Validate the searchId format and existence before making the RESTlet call to prevent runtime errors.
|
|
10407
|
-
- Use the internal ID as a string or numeric value consistent with NetSuite's conventions.
|
|
10408
|
-
- Implement error handling for scenarios where the searchId is invalid, missing, or inaccessible due to permission restrictions.
|
|
10409
|
-
- Ensure the integration role or user has appropriate permissions to access and execute the saved search.
|
|
10410
|
-
- Consider caching or documenting frequently used searchIds to improve maintainability.
|
|
10411
|
-
- |-
|
|
10412
|
-
## EXAMPLES:
|
|
10413
|
-
- "1234" — a numeric internal ID representing a specific saved search.
|
|
10414
|
-
- "5678" — another valid saved search internal ID.
|
|
10415
|
-
- "1001" — an example of a saved search ID used to retrieve customer records.
|
|
10416
|
-
- "2002" — a saved search ID configured to return transaction data.
|
|
10417
|
-
- |-
|
|
10418
|
-
## IMPORTANT NOTES:
|
|
10419
|
-
- The searchId must be accessible by the user or integration role making the RESTlet call; otherwise, access will be denied.
|
|
10420
|
-
- Providing an incorrect or non-existent searchId will result in errors or empty search results.
|
|
10421
|
-
- Permissions and sharing settings on the saved search directly affect the data returned by the RESTlet.
|
|
10422
|
-
- The saved search must be properly configured with the desired filters, columns, and criteria to ensure meaningful results.
|
|
10423
|
-
- Changes to the saved search (e.g., modifying filters or columns) will impact the RESTlet output without changing the searchId.
|
|
10424
|
-
- |-
|
|
10425
|
-
## DEPENDENCY CHAIN:
|
|
10426
|
-
- Depends on the existence of a saved search configured in the NetSuite account.
|
|
10427
|
-
- Requires appropriate user or integration role permissions to access the saved search.
|
|
10517
|
+
Accepts the saved search's internal id (`"9013"`) or script id
|
|
10518
|
+
(`"customsearch_..."`). `"-1"` means no saved search: the RESTlet builds an ad-hoc
|
|
10519
|
+
search from `recordType` + `criteria` + `columns` (see `columns` — required in
|
|
10520
|
+
that mode, along with `netsuite.skipGrouping: true`). Omitting both `searchId`
|
|
10521
|
+
and `columns` fails with `[celigo_config_error] searchId or columns are required`.
|
|
10428
10522
|
useSS2Restlets:
|
|
10429
10523
|
type: boolean
|
|
10430
10524
|
description: |-
|
|
@@ -10434,40 +10528,13 @@ components:
|
|
|
10434
10528
|
creation-time-only constraint applies (see restletVersion).
|
|
10435
10529
|
x-celigo-ai-guidance:
|
|
10436
10530
|
- |-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
This setting controls the version of RESTlets invoked during API communication with NetSuite,
|
|
10441
|
-
impacting compatibility, performance, and available features.
|
|
10531
|
+
An authoring-time choice: set it when creating the step (true unless the user
|
|
10532
|
+
explicitly needs a legacy version). It cannot be toggled on a saved step — moving
|
|
10533
|
+
an existing step to a different version means recreating or cloning it.
|
|
10442
10534
|
- |-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
- When set to `false` or omitted, SuiteScript 1.0 RESTlets are used by default.
|
|
10447
|
-
- Influences the structure, capabilities, and response formats of API calls.
|
|
10448
|
-
- |-
|
|
10449
|
-
## IMPLEMENTATION GUIDANCE:
|
|
10450
|
-
- This is an authoring-time choice: set it when creating the step (true unless the user explicitly needs a legacy version). It cannot be toggled on a saved step — moving an existing step to a different version means recreating or cloning it.
|
|
10451
|
-
- Verify that the integrator.io SuiteApp is installed in the target NetSuite environment when authoring SuiteScript 2.0 steps.
|
|
10452
|
-
- When migrating by recreation, verify any SuiteScript hooks are written for the matching version before cutting over.
|
|
10453
|
-
- |-
|
|
10454
|
-
## EXAMPLES:
|
|
10455
|
-
- `true` — API calls will utilize SuiteScript 2.0 RESTlets, enabling modern scripting features.
|
|
10456
|
-
- `false` — API calls will continue using legacy SuiteScript 1.0 RESTlets for backward compatibility.
|
|
10457
|
-
- |-
|
|
10458
|
-
## IMPORTANT NOTES:
|
|
10459
|
-
- SuiteScript 2.0 RESTlets support modular script architecture and ES6+ JavaScript features, improving maintainability and performance.
|
|
10460
|
-
- Legacy RESTlets written in SuiteScript 1.0 may not be compatible with SuiteScript 2.0; migration or parallel support might be required.
|
|
10461
|
-
- This setting is fixed once the step is saved (same creation-time-only constraint as restletVersion) — moving a step between RESTlet versions means recreating or cloning it, which can change API response formats and behaviors for downstream systems.
|
|
10462
|
-
- Plan a version migration deliberately: recreate the step with the new version, verify any hooks are written for the matching SuiteScript version, and keep the old step until the new one is verified.
|
|
10463
|
-
- |-
|
|
10464
|
-
## DEPENDENCY CHAIN:
|
|
10465
|
-
- Depends on the deployment and availability of SuiteScript 2.0 RESTlets within the NetSuite account.
|
|
10466
|
-
- Requires that the API client and integration logic support the RESTlet version selected.
|
|
10467
|
-
- May depend on other configuration settings related to authentication and script permissions.
|
|
10468
|
-
- |-
|
|
10469
|
-
## TECHNICAL DETAILS:
|
|
10470
|
-
- SuiteScript 2.0 RESTlets use the AMD module format and support
|
|
10535
|
+
SuiteScript 2.0 steps need the integrator.io SuiteApp installed in the target
|
|
10536
|
+
NetSuite account, and any SuiteScript hooks must be written for the step's
|
|
10537
|
+
version — verify both before cutting a recreated step over.
|
|
10471
10538
|
restletVersion:
|
|
10472
10539
|
type: string
|
|
10473
10540
|
enum:
|
|
@@ -10506,43 +10573,36 @@ components:
|
|
|
10506
10573
|
criteria:
|
|
10507
10574
|
type: array
|
|
10508
10575
|
description: |-
|
|
10509
|
-
Filter conditions
|
|
10510
|
-
|
|
10511
|
-
|
|
10576
|
+
Filter conditions added on top of the saved search (the UI's "Additional search
|
|
10577
|
+
criteria"). Each condition pairs a search column with an operator and one or two
|
|
10578
|
+
comparison values, and the conditions are combined with AND — every one must match.
|
|
10512
10579
|
x-celigo-ai-guidance:
|
|
10513
10580
|
- |-
|
|
10514
|
-
|
|
10515
|
-
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
- When omitted or empty, the RESTlet may return all records or apply default filtering behavior as defined by the implementation.
|
|
10529
|
-
- |-
|
|
10530
|
-
## IMPLEMENTATION GUIDANCE:
|
|
10531
|
-
- Validate the criteria structure rigorously to ensure it conforms to the expected schema before processing.
|
|
10532
|
-
- Support nested criteria groups to allow complex and hierarchical filtering logic.
|
|
10533
|
-
- Map criteria fields and operators accurately to corresponding NetSuite record fields and search operators, considering data types and operator compatibility.
|
|
10534
|
-
- Handle empty or undefined criteria gracefully by returning all records or applying sensible default filters.
|
|
10535
|
-
- Sanitize all input values to prevent injection attacks, malformed queries, or unexpected behavior.
|
|
10536
|
-
- Provide clear error messages when criteria are invalid or unsupported.
|
|
10537
|
-
- Optimize query performance by translating criteria into efficient NetSuite search queries.
|
|
10581
|
+
A flat list: each entry becomes one `search.createFilter({ name, join, operator,
|
|
10582
|
+
values, formula })` call and NetSuite ANDs the resulting filters. There is no
|
|
10583
|
+
logical-combinator or grouping property (`join` is NetSuite's related-record
|
|
10584
|
+
join, e.g. `customer`, not an AND/OR operator) — a group object such as
|
|
10585
|
+
`{"operator": "OR", "criteria": [...]}` is rejected with a 422 (`OR` is not a
|
|
10586
|
+
valid enum value for path `operator`).
|
|
10587
|
+
- |-
|
|
10588
|
+
OR or grouped logic belongs in ONE formula condition: `{"field": "formulanumeric",
|
|
10589
|
+
"operator": "equalto", "searchValue": 1, "formula": "CASE WHEN {tranid} =
|
|
10590
|
+
'{{poNumber}}' OR ({shipzip} = '{{zip}}' AND {shipaddress1} = '{{address1}}')
|
|
10591
|
+
THEN 1 ELSE 0 END"}`. The formula is a NetSuite (Oracle SQL) expression over
|
|
10592
|
+
`{searchColumn}` references and can carry Handlebars values from the incoming
|
|
10593
|
+
record. The alternative is a second lookup step filtered to run only when this
|
|
10594
|
+
one returned no record. Do not describe OR between rows as configurable.
|
|
10538
10595
|
- |-
|
|
10539
|
-
##
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10596
|
+
## EXAMPLE
|
|
10597
|
+
```json
|
|
10598
|
+
[
|
|
10599
|
+
{"field": "type", "operator": "anyof", "searchValue": ["PurchOrd"]},
|
|
10600
|
+
{"field": "mainline", "operator": "is", "searchValue": "F"},
|
|
10601
|
+
{"field": "tranid", "operator": "is", "searchValue": "{{poNumber}}"}
|
|
10602
|
+
]
|
|
10603
|
+
```
|
|
10604
|
+
`field` must be a search-column id for the record type (the SEARCH COLUMNS
|
|
10605
|
+
metadata block), not a body-field name — e.g. `shipaddress1`, not `shipaddr1`.
|
|
10546
10606
|
items:
|
|
10547
10607
|
type: object
|
|
10548
10608
|
properties:
|
|
@@ -10558,241 +10618,178 @@ components:
|
|
|
10558
10618
|
of the base record. Must match a join name NetSuite defines for the record type.
|
|
10559
10619
|
operator:
|
|
10560
10620
|
type: string
|
|
10621
|
+
enum:
|
|
10622
|
+
- after
|
|
10623
|
+
- allof
|
|
10624
|
+
- any
|
|
10625
|
+
- anyof
|
|
10626
|
+
- before
|
|
10627
|
+
- between
|
|
10628
|
+
- contains
|
|
10629
|
+
- doesnotcontain
|
|
10630
|
+
- doesnotstartwith
|
|
10631
|
+
- equalto
|
|
10632
|
+
- greaterthan
|
|
10633
|
+
- greaterthanorequalto
|
|
10634
|
+
- haskeywords
|
|
10635
|
+
- is
|
|
10636
|
+
- isempty
|
|
10637
|
+
- isnot
|
|
10638
|
+
- isnotempty
|
|
10639
|
+
- lessthan
|
|
10640
|
+
- lessthanorequalto
|
|
10641
|
+
- noneof
|
|
10642
|
+
- notafter
|
|
10643
|
+
- notallof
|
|
10644
|
+
- notbefore
|
|
10645
|
+
- notbetween
|
|
10646
|
+
- notequalto
|
|
10647
|
+
- notgreaterthan
|
|
10648
|
+
- notlessthan
|
|
10649
|
+
- notlessthanorequalto
|
|
10650
|
+
- noton
|
|
10651
|
+
- notonorafter
|
|
10652
|
+
- notonorbefore
|
|
10653
|
+
- notwithin
|
|
10654
|
+
- 'on'
|
|
10655
|
+
- onorafter
|
|
10656
|
+
- onorbefore
|
|
10657
|
+
- startswith
|
|
10658
|
+
- within
|
|
10659
|
+
x-enumDescriptions:
|
|
10660
|
+
after: Date column is after the value
|
|
10661
|
+
allof: Multi-select column contains every value in the array
|
|
10662
|
+
any: NetSuite's any operator for list and multi-select columns
|
|
10663
|
+
anyof: List or select column equals any value in the array
|
|
10664
|
+
before: Date column is before the value
|
|
10665
|
+
between: Numeric column lies between searchValue and searchValue2
|
|
10666
|
+
contains: Text column contains the substring
|
|
10667
|
+
doesnotcontain: Text column does not contain the substring
|
|
10668
|
+
doesnotstartwith: Text column does not start with the value
|
|
10669
|
+
equalto: Numeric column equals the value
|
|
10670
|
+
greaterthan: Numeric column is greater than the value
|
|
10671
|
+
greaterthanorequalto: Numeric column is greater than or equal to the value
|
|
10672
|
+
haskeywords: Text column contains the keywords
|
|
10673
|
+
is: Text or checkbox column equals the value exactly (checkboxes use T or F)
|
|
10674
|
+
isempty: Column has no value
|
|
10675
|
+
isnot: Text or checkbox column does not equal the value
|
|
10676
|
+
isnotempty: Column has a value
|
|
10677
|
+
lessthan: Numeric column is less than the value
|
|
10678
|
+
lessthanorequalto: Numeric column is less than or equal to the value
|
|
10679
|
+
noneof: List or select column equals none of the values in the array
|
|
10680
|
+
notafter: Date column is not after the value
|
|
10681
|
+
notallof: Multi-select column does not contain every value in the array
|
|
10682
|
+
notbefore: Date column is not before the value
|
|
10683
|
+
notbetween: Numeric column lies outside searchValue and searchValue2
|
|
10684
|
+
notequalto: Numeric column does not equal the value
|
|
10685
|
+
notgreaterthan: Numeric column is not greater than the value
|
|
10686
|
+
notlessthan: Numeric column is not less than the value
|
|
10687
|
+
notlessthanorequalto: Numeric column is not less than or equal to the value
|
|
10688
|
+
noton: Date column is not on the value
|
|
10689
|
+
notonorafter: Date column is not on or after the value
|
|
10690
|
+
notonorbefore: Date column is not on or before the value
|
|
10691
|
+
notwithin: Date column is outside the range
|
|
10692
|
+
'on': Date column is on the value
|
|
10693
|
+
onorafter: Date column is on or after the value
|
|
10694
|
+
onorbefore: Date column is on or before the value
|
|
10695
|
+
startswith: Text column starts with the value
|
|
10696
|
+
within: Date column is within the range
|
|
10561
10697
|
description: |-
|
|
10562
|
-
Comparison operator applied between the
|
|
10563
|
-
NetSuite's search operator names
|
|
10698
|
+
Comparison operator applied between the column and the search value, using
|
|
10699
|
+
NetSuite's lowercase search operator names. Which operators a column accepts
|
|
10700
|
+
depends on its data type.
|
|
10564
10701
|
examples:
|
|
10565
|
-
-
|
|
10702
|
+
- is
|
|
10703
|
+
- anyof
|
|
10704
|
+
- equalto
|
|
10566
10705
|
x-celigo-ai-guidance:
|
|
10567
10706
|
- |-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
criteria value(s) to filter or query records.
|
|
10572
|
-
- |-
|
|
10573
|
-
## FIELD BEHAVIOR:
|
|
10574
|
-
- Defines the type of comparison between a field and a value (e.g., equality, inequality, greater than).
|
|
10575
|
-
- Influences the logic of the criteria evaluation in RESTlet queries.
|
|
10576
|
-
- Supports various operators such as equals, not equals, greater than, less than, contains, etc.
|
|
10577
|
-
- |-
|
|
10578
|
-
## IMPLEMENTATION GUIDANCE:
|
|
10579
|
-
- Use valid NetSuite-supported operators to ensure correct query behavior.
|
|
10580
|
-
- Match the operator type with the data type of the field being compared (e.g., use numeric operators for numeric fields).
|
|
10581
|
-
- Combine multiple criteria with appropriate logical operators if needed.
|
|
10582
|
-
- Validate operator values to prevent errors in RESTlet execution.
|
|
10707
|
+
The server validates the value against this list and rejects anything else
|
|
10708
|
+
with a 422 enum error — including logical words such as `OR`; conditions are
|
|
10709
|
+
never joined through this property.
|
|
10583
10710
|
- |-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
## IMPORTANT NOTES:
|
|
10591
|
-
- The operator must be compatible with the field type and the value provided.
|
|
10592
|
-
- Incorrect operator usage can lead to unexpected query results or errors.
|
|
10593
|
-
- Operators are case-sensitive and should match NetSuite's expected operator strings.
|
|
10594
|
-
- |-
|
|
10595
|
-
## DEPENDENCY CHAIN:
|
|
10596
|
-
- Depends on the field specified in the criteria to determine valid operators.
|
|
10597
|
-
- Works in conjunction with the criteria value(s) to form a complete condition.
|
|
10598
|
-
- May be combined with logical operators when multiple criteria are used.
|
|
10599
|
-
- |-
|
|
10600
|
-
## TECHNICAL DETAILS:
|
|
10601
|
-
- Typically represented as a string value in the RESTlet criteria JSON object.
|
|
10602
|
-
- Supported operators align with NetSuite's SuiteScript search operators.
|
|
10603
|
-
- Must conform to the list of operators recognized by the NetSuite RESTlet API.
|
|
10711
|
+
Numeric operators (`equalto`, `notequalto`, `greaterthan`, `lessthan`, the
|
|
10712
|
+
`...orequalto` / `not...` variants, `between`, `notbetween`) make the platform
|
|
10713
|
+
coerce a templated `searchValue` to a number, and NetSuite rejects them on text
|
|
10714
|
+
columns with `sss_invalid_srch_operator`. Compare text and checkbox columns
|
|
10715
|
+
with `is` / `isnot` and list or select columns with `anyof` / `noneof` (array
|
|
10716
|
+
`searchValue`).
|
|
10604
10717
|
searchValue:
|
|
10605
|
-
|
|
10606
|
-
|
|
10718
|
+
description: |-
|
|
10719
|
+
Value the column is compared against — a string, a number, or an array of
|
|
10720
|
+
values for `anyof`-style operators. On lookup steps it may be a Handlebars
|
|
10721
|
+
expression rendered from the incoming record (for example `{{poNumber}}`).
|
|
10607
10722
|
examples:
|
|
10608
|
-
-
|
|
10609
|
-
-
|
|
10610
|
-
-
|
|
10723
|
+
- '{{poNumber}}'
|
|
10724
|
+
- F
|
|
10725
|
+
- - PurchOrd
|
|
10611
10726
|
x-celigo-ai-guidance:
|
|
10612
10727
|
- |-
|
|
10613
|
-
|
|
10614
|
-
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
## FIELD BEHAVIOR:
|
|
10619
|
-
- Acts as the primary input for filtering search results.
|
|
10620
|
-
- Supports various data types depending on the search field (e.g., string, number, date).
|
|
10621
|
-
- Used in conjunction with other search criteria to refine query results.
|
|
10622
|
-
- Can be a partial or full match depending on the search configuration.
|
|
10728
|
+
A Handlebars path the incoming record does not carry fails the render with
|
|
10729
|
+
`handlebars_template_parse_error` ("Failed to generate criteria.N.searchValue
|
|
10730
|
+
from template"). A standalone preview of a lookup that uses `{{...}}` here
|
|
10731
|
+
fails the same way — outside a flow run there is no record to render from;
|
|
10732
|
+
preview with a literal value or through a flow test run instead.
|
|
10623
10733
|
- |-
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
- Validate the input to prevent injection attacks or malformed queries.
|
|
10627
|
-
- Use appropriate encoding if the value contains special characters.
|
|
10628
|
-
- Combine with logical operators or additional criteria for complex searches.
|
|
10629
|
-
- |-
|
|
10630
|
-
## EXAMPLES:
|
|
10631
|
-
- "Acme Corporation" for searching customer names.
|
|
10632
|
-
- 1001 for searching by internal record ID.
|
|
10633
|
-
- "2024-01-01" for searching records created on or after a specific date.
|
|
10634
|
-
- "Pending" for filtering records by status.
|
|
10635
|
-
- |-
|
|
10636
|
-
## IMPORTANT NOTES:
|
|
10637
|
-
- The effectiveness of the search depends on the accuracy and format of the searchValue.
|
|
10638
|
-
- Case sensitivity may vary based on the underlying NetSuite configuration.
|
|
10639
|
-
- Large or complex search values may impact performance.
|
|
10640
|
-
- Null or empty values may result in no filtering or return all records.
|
|
10641
|
-
- |-
|
|
10642
|
-
## DEPENDENCY CHAIN:
|
|
10643
|
-
- Depends on the searchField property to determine which field the searchValue applies to.
|
|
10644
|
-
- Works alongside searchOperator to define how the searchValue is compared.
|
|
10645
|
-
- Influences the results returned by the RESTlet endpoint.
|
|
10646
|
-
- |-
|
|
10647
|
-
## TECHNICAL DETAILS:
|
|
10648
|
-
- Typically passed as a string in the API request payload.
|
|
10649
|
-
- May require serialization or formatting based on the API specification.
|
|
10650
|
-
- Integrated into the NetSuite search query logic on the server side.
|
|
10651
|
-
- Subject to NetSuite's search limitations and indexing capabilities.
|
|
10734
|
+
With a numeric `operator` the rendered value is coerced to a number before the
|
|
10735
|
+
search runs, so a template must resolve to something numeric.
|
|
10652
10736
|
searchValue2:
|
|
10653
|
-
type: string
|
|
10654
10737
|
description: |-
|
|
10655
|
-
Second comparison value for
|
|
10656
|
-
|
|
10738
|
+
Second comparison value for the two-value operators `between` and `notbetween`
|
|
10739
|
+
(the upper bound). Omit for every other operator.
|
|
10657
10740
|
x-celigo-ai-guidance:
|
|
10658
10741
|
- |-
|
|
10659
|
-
|
|
10660
|
-
|
|
10661
|
-
It is typically used in conjunction with search operators that require two values,
|
|
10662
|
-
such as "between" or "not between," to define a range or a pair of comparison values.
|
|
10663
|
-
- |-
|
|
10664
|
-
## FIELD BEHAVIOR:
|
|
10665
|
-
- Represents the second operand or value in a search condition.
|
|
10666
|
-
- Used primarily with operators that require two values (e.g., "between", "not between").
|
|
10667
|
-
- Optional field; may be omitted if the operator only requires a single value.
|
|
10668
|
-
- Works alongside searchValue (the first value) to form a complete search criterion.
|
|
10669
|
-
- |-
|
|
10670
|
-
## IMPLEMENTATION GUIDANCE:
|
|
10671
|
-
- Ensure that searchValue2 is provided only when the selected operator requires two values.
|
|
10672
|
-
- Validate the data type of searchValue2 to match the expected type for the field being searched (e.g., date, number, string).
|
|
10673
|
-
- When using range-based operators, searchValue2 should represent the upper bound or second boundary of the range.
|
|
10674
|
-
- If the operator does not require a second value, omit this property to avoid errors.
|
|
10675
|
-
- |-
|
|
10676
|
-
## EXAMPLES:
|
|
10677
|
-
- For a date range search: searchValue = "2023-01-01", searchValue2 = "2023-12-31" with operator "between".
|
|
10678
|
-
- For a numeric range: searchValue = 100, searchValue2 = 200 with operator "between".
|
|
10679
|
-
- For a "not between" operator: searchValue = 50, searchValue2 = 100.
|
|
10680
|
-
- |-
|
|
10681
|
-
## IMPORTANT NOTES:
|
|
10682
|
-
- Providing searchValue2 without a compatible operator may result in an invalid search query.
|
|
10683
|
-
- The data type and format of searchValue2 must be consistent with searchValue and the field being queried.
|
|
10684
|
-
- This property is ignored if the operator only requires a single value.
|
|
10685
|
-
- Proper validation and error handling should be implemented when processing this field.
|
|
10686
|
-
- |-
|
|
10687
|
-
## DEPENDENCY CHAIN:
|
|
10688
|
-
- Dependent on the "operator" property within the same search criterion.
|
|
10689
|
-
- Works in conjunction with "searchValue" to define the search condition.
|
|
10690
|
-
- Part of the "criteria" array or object in the NetSuite RESTlet search request.
|
|
10691
|
-
- |-
|
|
10692
|
-
## TECHNICAL DETAILS:
|
|
10693
|
-
- Data type varies depending on the field being searched (string, number, date, etc.).
|
|
10694
|
-
- Typically serialized as a JSON property in the RESTlet request payload.
|
|
10695
|
-
- Must conform to the expected format for the field and operator to avoid API errors.
|
|
10696
|
-
- Used internally by NetSuite to construct the appropriate
|
|
10742
|
+
Same typing as `searchValue`: a literal or a Handlebars expression, coerced to
|
|
10743
|
+
a number for the numeric two-value operators.
|
|
10697
10744
|
formula:
|
|
10698
10745
|
type: string
|
|
10699
10746
|
description: |-
|
|
10700
10747
|
NetSuite formula expression used as the filter condition, for criteria that
|
|
10701
10748
|
standard field-operator-value comparisons can't express.
|
|
10702
10749
|
examples:
|
|
10703
|
-
- CASE WHEN {
|
|
10704
|
-
-
|
|
10705
|
-
-
|
|
10750
|
+
- CASE WHEN {quantity} > 0 THEN 1 ELSE 0 END
|
|
10751
|
+
- NVL({amount}, 0)
|
|
10752
|
+
- TO_DATE({trandate})
|
|
10706
10753
|
x-celigo-ai-guidance:
|
|
10707
10754
|
- |-
|
|
10708
|
-
formula:
|
|
10709
|
-
|
|
10710
|
-
|
|
10711
|
-
|
|
10712
|
-
|
|
10713
|
-
|
|
10714
|
-
## FIELD BEHAVIOR:
|
|
10715
|
-
- Accepts a formula expression as a string that defines custom filtering logic.
|
|
10716
|
-
- Used to create dynamic and complex criteria beyond standard field-value comparisons.
|
|
10717
|
-
- Evaluated by the NetSuite backend to filter records according to the specified logic.
|
|
10718
|
-
- Can incorporate NetSuite formula functions, operators, and field references.
|
|
10719
|
-
- |-
|
|
10720
|
-
## IMPLEMENTATION GUIDANCE:
|
|
10721
|
-
- Ensure the formula syntax complies with NetSuite's formula language and supported functions.
|
|
10722
|
-
- Validate the formula string before submission to avoid runtime errors.
|
|
10723
|
-
- Use this field when standard criteria fields are insufficient for the required filtering.
|
|
10724
|
-
- Combine with other criteria fields as needed to build comprehensive queries.
|
|
10755
|
+
Used with a formula column in `field` (`formulanumeric` or `formulatext`):
|
|
10756
|
+
NetSuite evaluates this expression per record and `operator` / `searchValue`
|
|
10757
|
+
compare its result. `formulanumeric` `equalto` `1` with `CASE WHEN <condition>
|
|
10758
|
+
THEN 1 ELSE 0 END` turns any boolean condition — including OR and grouping
|
|
10759
|
+
across columns — into one criterion, which is the only way to express OR in
|
|
10760
|
+
this array.
|
|
10725
10761
|
- |-
|
|
10726
|
-
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
10730
|
-
|
|
10731
|
-
## IMPORTANT NOTES:
|
|
10732
|
-
- Incorrect or invalid formulas may cause the API request to fail or return errors.
|
|
10733
|
-
- The formula must be compatible with the context of the query and the fields available.
|
|
10734
|
-
- Performance may be impacted if complex formulas are used extensively.
|
|
10735
|
-
- Formula evaluation is subject to NetSuite's formula engine capabilities and limitations.
|
|
10736
|
-
- |-
|
|
10737
|
-
## DEPENDENCY CHAIN:
|
|
10738
|
-
- Depends on the availability of fields referenced within the formula.
|
|
10739
|
-
- Works in conjunction with other criteria properties in the request.
|
|
10740
|
-
- Requires understanding of NetSuite's formula syntax and functions.
|
|
10741
|
-
- |-
|
|
10742
|
-
## TECHNICAL DETAILS:
|
|
10743
|
-
- Data type: string.
|
|
10744
|
-
- Supports NetSuite formula syntax including SQL-like expressions and functions.
|
|
10745
|
-
- Evaluated server-side during the processing of the RESTlet request.
|
|
10746
|
-
- Must be URL-encoded if included in query parameters of HTTP requests.
|
|
10762
|
+
Oracle SQL syntax: `{searchColumn}` references, single-quoted string literals,
|
|
10763
|
+
`CASE` / `NVL` / `TO_DATE`; a Handlebars value from the incoming record can be
|
|
10764
|
+
embedded (`{tranid} = '{{poNumber}}'`). A formula that evaluates false for
|
|
10765
|
+
every record returns no rows with no error, so verify the expression with a
|
|
10766
|
+
preview that is expected to return records.
|
|
10747
10767
|
columns:
|
|
10748
10768
|
type: array
|
|
10749
10769
|
description: |-
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
|
|
10770
|
+
Search columns the RESTlet returns for each matching record. With a saved search,
|
|
10771
|
+
omit this to return the search's own result columns; an ad-hoc search (no
|
|
10772
|
+
`searchId`) must list its columns here.
|
|
10753
10773
|
x-celigo-ai-guidance:
|
|
10754
10774
|
- |-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
enabling precise control over the data returned or affected.
|
|
10761
|
-
By selecting only relevant columns,
|
|
10762
|
-
it helps optimize performance and reduce payload size,
|
|
10763
|
-
ensuring efficient data handling tailored to the operation's requirements.
|
|
10775
|
+
Entries are objects keyed by `name` — `[{"name": "internalid"}, {"name":
|
|
10776
|
+
"tranid"}]`. Plain strings fail with a 422 `ObjectParameterError`; objects keyed by
|
|
10777
|
+
`_id` fail with a 422 `BSONError` (`_id` is the server's own subdocument id).
|
|
10778
|
+
Omitting both `columns` and `searchId` fails with `[celigo_config_error] searchId
|
|
10779
|
+
or columns are required`.
|
|
10764
10780
|
- |-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
- Limits the data payload by including only the specified columns, improving performance and reducing bandwidth.
|
|
10769
|
-
- Influences the structure, content, and size of the response from the RESTlet.
|
|
10770
|
-
- If omitted, defaults to retrieving all available columns for the target record type, which may impact performance.
|
|
10771
|
-
- Columns specified must be valid and accessible for the target record type to avoid errors.
|
|
10772
|
-
- |-
|
|
10773
|
-
## IMPLEMENTATION GUIDANCE:
|
|
10774
|
-
- Accepts an array or list of column identifiers, which can be simple strings or objects with detailed specifications (e.g., `{ name: "fieldname" }`).
|
|
10775
|
-
- Column identifiers should correspond exactly to valid NetSuite record field names or internal IDs.
|
|
10776
|
-
- Validate column names against the target record schema before execution to prevent runtime errors.
|
|
10777
|
-
- Use this property to optimize RESTlet calls by limiting data to only necessary fields, especially in large datasets.
|
|
10778
|
-
- When specifying complex columns (e.g., joined fields or formula fields), ensure the correct syntax and structure are used.
|
|
10779
|
-
- Consider the permissions and roles associated with the RESTlet user to ensure access to the specified columns.
|
|
10780
|
-
- |-
|
|
10781
|
-
## EXAMPLES:
|
|
10782
|
-
- `["internalid", "entityid", "email"]` — retrieves basic identifying and contact fields.
|
|
10783
|
-
- `[ { name: "internalid" }, { name: "entityid" }, { name: "email" } ]` — object notation for specifying columns.
|
|
10784
|
-
- `["tranid", "amount", "status"]` — retrieves transaction-specific fields.
|
|
10785
|
-
- `[ { name: "custbody_custom_field" }, { name: "createddate" } ]` — includes custom and system fields.
|
|
10786
|
-
- `["item", "quantity", "rate"]` — fields relevant to item records or line items.
|
|
10787
|
-
- |-
|
|
10788
|
-
## IMPORTANT NOTES:
|
|
10789
|
-
- Omitting the `columns` property typically
|
|
10781
|
+
Each `name` must be a search column id for the `recordType` (the SEARCH COLUMNS
|
|
10782
|
+
metadata block), not a body-field id — `shipaddress1`, not `shipaddr1`. Set
|
|
10783
|
+
`label` to control the property name in the exported record.
|
|
10790
10784
|
items:
|
|
10791
10785
|
type: object
|
|
10792
10786
|
properties:
|
|
10793
10787
|
_id:
|
|
10794
10788
|
type: string
|
|
10795
|
-
|
|
10789
|
+
readOnly: true
|
|
10790
|
+
description: |-
|
|
10791
|
+
Subdocument id the server assigns to the column entry on save. Not a NetSuite
|
|
10792
|
+
field id — never set it when authoring.
|
|
10796
10793
|
name:
|
|
10797
10794
|
type: string
|
|
10798
10795
|
description: Column field name as referenced in the search.
|
|
@@ -10842,105 +10839,47 @@ components:
|
|
|
10842
10839
|
- vendor
|
|
10843
10840
|
summary:
|
|
10844
10841
|
type: string
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
|
|
10842
|
+
enum:
|
|
10843
|
+
- group
|
|
10844
|
+
- sum
|
|
10845
|
+
- count
|
|
10846
|
+
- avg
|
|
10847
|
+
- min
|
|
10848
|
+
- max
|
|
10849
|
+
x-enumDescriptions:
|
|
10850
|
+
group: Group results by this column's value
|
|
10851
|
+
sum: Sum of the column across the grouped rows
|
|
10852
|
+
count: Count of grouped rows
|
|
10853
|
+
avg: Average of the column across the grouped rows
|
|
10854
|
+
min: Minimum value across the grouped rows
|
|
10855
|
+
max: Maximum value across the grouped rows
|
|
10856
|
+
x-lowercase: true
|
|
10857
|
+
description: Summary type applied to this column, turning the search into a summary search.
|
|
10848
10858
|
formula:
|
|
10849
10859
|
type: string
|
|
10850
10860
|
description: |-
|
|
10851
10861
|
NetSuite formula expression that computes this column's value at runtime, such
|
|
10852
10862
|
as a CASE statement or date formatting, instead of reading a stored field.
|
|
10853
10863
|
examples:
|
|
10854
|
-
- CASE WHEN {status} =
|
|
10864
|
+
- CASE WHEN {status} = 'Open' THEN 1 ELSE 0 END
|
|
10855
10865
|
- NVL({amount}, 0) * 0.1
|
|
10856
|
-
- TO_CHAR({trandate},
|
|
10866
|
+
- TO_CHAR({trandate}, 'YYYY-MM-DD')
|
|
10857
10867
|
x-celigo-ai-guidance:
|
|
10858
10868
|
- |-
|
|
10859
|
-
|
|
10860
|
-
|
|
10861
|
-
|
|
10862
|
-
|
|
10863
|
-
- Formula evaluation respects user permissions and data visibility.
|
|
10864
|
-
- |-
|
|
10865
|
-
## DEPENDENCY CHAIN:
|
|
10866
|
-
- Depends on the availability of referenced fields within the record or search context.
|
|
10867
|
-
- Relies on NetSuite's formula parsing and evaluation engine.
|
|
10868
|
-
- Interacts with the RESTlet execution environment to produce output.
|
|
10869
|
-
- |-
|
|
10870
|
-
## TECHNICAL DETAILS:
|
|
10871
|
-
- Data type: string containing a formula expression.
|
|
10872
|
-
- Supports NetSuite formula syntax including SQL-like CASE statements, arithmetic operations, and built-in functions.
|
|
10873
|
-
- Evaluated server-side during RESTlet execution or saved search processing.
|
|
10874
|
-
- |-
|
|
10875
|
-
formula:
|
|
10876
|
-
> A string representing a custom formula used to calculate or derive values
|
|
10877
|
-
dynamically within the context of the NetSuite RESTlet columns.
|
|
10878
|
-
This formula can include field references, operators,
|
|
10879
|
-
and functions supported by NetSuite's formula syntax to perform computations or
|
|
10880
|
-
conditional logic on record data.
|
|
10881
|
-
- |-
|
|
10882
|
-
## FIELD BEHAVIOR:
|
|
10883
|
-
- Accepts a formula expression as a string that defines how to compute the column's value.
|
|
10884
|
-
- Can reference other fields, constants, and use NetSuite-supported functions and operators.
|
|
10885
|
-
- Evaluated at runtime to produce dynamic results based on the current record data.
|
|
10886
|
-
- Used primarily in saved searches, reports, or RESTlet responses to customize output.
|
|
10887
|
-
- |-
|
|
10888
|
-
## IMPLEMENTATION GUIDANCE:
|
|
10889
|
-
- Ensure the formula syntax complies with NetSuite's formula language and supported functions.
|
|
10890
|
-
- Validate the formula string to prevent errors during execution.
|
|
10891
|
-
- Use field IDs or aliases correctly within the formula to reference data fields.
|
|
10892
|
-
- Test formulas thoroughly in NetSuite UI before deploying via RESTlet to ensure correctness.
|
|
10893
|
-
- Consider performance implications of complex formulas on large datasets.
|
|
10894
|
-
- |-
|
|
10895
|
-
## EXAMPLES:
|
|
10896
|
-
- "CASE WHEN {status} = 'Open' THEN 1 ELSE 0 END" — returns 1 if status is Open, else 0.
|
|
10897
|
-
- "NVL({amount}, 0) * 0.1" — calculates 10% of the amount, treating null as zero.
|
|
10898
|
-
- "TO_CHAR({trandate}, 'YYYY-MM-DD')" — formats the transaction date as a string.
|
|
10869
|
+
Use with a formula column in `name` (`formulatext`, `formulanumeric`,
|
|
10870
|
+
`formuladate`, ...) and give the entry a `label` — the label becomes the
|
|
10871
|
+
exported record's property name. Oracle SQL syntax over `{searchColumn}`
|
|
10872
|
+
references; string literals use single quotes.
|
|
10899
10873
|
label:
|
|
10900
10874
|
type: string
|
|
10901
10875
|
description: |-
|
|
10902
|
-
Display name for the column
|
|
10903
|
-
|
|
10876
|
+
Display name for the column; it becomes the property name of the column's value
|
|
10877
|
+
in each exported record.
|
|
10904
10878
|
examples:
|
|
10905
10879
|
- Customer Name
|
|
10906
10880
|
- Invoice Date
|
|
10907
10881
|
- Total Amount
|
|
10908
10882
|
- Status
|
|
10909
|
-
x-celigo-ai-guidance:
|
|
10910
|
-
- |-
|
|
10911
|
-
label:
|
|
10912
|
-
| The display name or title of the column as it appears in the user interface or reports.
|
|
10913
|
-
- |-
|
|
10914
|
-
## FIELD BEHAVIOR:
|
|
10915
|
-
- Represents the human-readable name for a column in a dataset or report.
|
|
10916
|
-
- Used to identify the column in UI elements such as tables, forms, or export files.
|
|
10917
|
-
- Should be concise yet descriptive enough to convey the column's content.
|
|
10918
|
-
- |-
|
|
10919
|
-
## IMPLEMENTATION GUIDANCE:
|
|
10920
|
-
- Ensure the label is localized if the application supports multiple languages.
|
|
10921
|
-
- Avoid using technical jargon; prefer user-friendly terminology.
|
|
10922
|
-
- Keep the label length reasonable to prevent UI truncation.
|
|
10923
|
-
- Update the label consistently when the underlying data or purpose changes.
|
|
10924
|
-
- |-
|
|
10925
|
-
## EXAMPLES:
|
|
10926
|
-
- "Customer Name"
|
|
10927
|
-
- "Invoice Date"
|
|
10928
|
-
- "Total Amount"
|
|
10929
|
-
- "Status"
|
|
10930
|
-
- |-
|
|
10931
|
-
## IMPORTANT NOTES:
|
|
10932
|
-
- The label does not affect the data or the column's functionality; it is purely for display.
|
|
10933
|
-
- Changing the label does not impact data processing or storage.
|
|
10934
|
-
- Labels should be unique within the same context to avoid confusion.
|
|
10935
|
-
- |-
|
|
10936
|
-
## DEPENDENCY CHAIN:
|
|
10937
|
-
- Depends on the column definition within the dataset or report configuration.
|
|
10938
|
-
- May be linked to localization resources if internationalization is supported.
|
|
10939
|
-
- |-
|
|
10940
|
-
## TECHNICAL DETAILS:
|
|
10941
|
-
- Typically a string data type.
|
|
10942
|
-
- May support Unicode characters for internationalization.
|
|
10943
|
-
- Stored as metadata associated with the column definition in the system.
|
|
10944
10883
|
sort:
|
|
10945
10884
|
type: boolean
|
|
10946
10885
|
description: When true, query results are sorted by this column's values.
|
|
@@ -10959,277 +10898,53 @@ components:
|
|
|
10959
10898
|
properties:
|
|
10960
10899
|
batchSize:
|
|
10961
10900
|
type: number
|
|
10962
|
-
description:
|
|
10963
|
-
|
|
10964
|
-
|
|
10965
|
-
batchSize specifies the number of records or items to be processed in a single
|
|
10966
|
-
batch during the execution of the NetSuite RESTlet hook.
|
|
10967
|
-
This parameter helps control the workload size for each batch operation,
|
|
10968
|
-
optimizing performance and resource utilization by balancing processing
|
|
10969
|
-
efficiency and system constraints.
|
|
10970
|
-
- |-
|
|
10971
|
-
## FIELD BEHAVIOR:
|
|
10972
|
-
- Determines the maximum number of records or items processed in one batch cycle.
|
|
10973
|
-
- Directly influences the frequency and duration of batch processing operations.
|
|
10974
|
-
- Helps manage memory consumption and processing time by limiting the batch workload.
|
|
10975
|
-
- Affects overall throughput and latency of batch operations, impacting system responsiveness.
|
|
10976
|
-
- Controls how data is segmented and processed in discrete units during RESTlet execution.
|
|
10977
|
-
- |-
|
|
10978
|
-
## IMPLEMENTATION GUIDANCE:
|
|
10979
|
-
- Configure batchSize based on the system's processing capacity, expected data volume, and performance goals.
|
|
10980
|
-
- Use smaller batch sizes in environments with limited resources or strict execution time limits to prevent timeouts.
|
|
10981
|
-
- Larger batch sizes can improve throughput by reducing the number of batch cycles but may increase individual batch processing time and risk of hitting governance limits.
|
|
10982
|
-
- Always validate that batchSize is a positive integer greater than zero to ensure proper operation.
|
|
10983
|
-
- Take into account NetSuite API governance limits, such as usage units and execution time, when determining batchSize.
|
|
10984
|
-
- Monitor system performance and adjust batchSize dynamically if possible to optimize processing efficiency.
|
|
10985
|
-
- Ensure batchSize aligns with other batch-related configurations to maintain consistency and predictable behavior.
|
|
10986
|
-
- |-
|
|
10987
|
-
## EXAMPLES:
|
|
10988
|
-
- batchSize: 100 — processes 100 records per batch, balancing throughput and resource use.
|
|
10989
|
-
- batchSize: 500 — processes 500 records per batch for higher throughput in robust environments.
|
|
10990
|
-
- batchSize: 10 — processes 10 records per batch for fine-grained control and minimal resource impact.
|
|
10991
|
-
- batchSize: 1 — processes records individually, useful for debugging or very resource-sensitive scenarios.
|
|
10992
|
-
- |-
|
|
10993
|
-
## IMPORTANT NOTES:
|
|
10994
|
-
- Excessively high batchSize values may cause processing timeouts, exceed NetSuite governance limits, or lead to memory exhaustion.
|
|
10995
|
-
- Very low batchSize values can result in inefficient processing due to increased overhead and more frequent batch invocations.
|
|
10996
|
-
- The optimal batchSize is context-dependent and should be determined through testing and monitoring.
|
|
10997
|
-
- batchSize should be consistent with other batch processing parameters to avoid conflicts or unexpected behavior.
|
|
10998
|
-
- Changes to batchSize may require adjustments in error handling and retry logic to accommodate different batch sizes.
|
|
10999
|
-
- |-
|
|
11000
|
-
## DEPENDENCY CHAIN:
|
|
11001
|
-
- Depends on the batch processing logic implemented within the RESTlet hook.
|
|
10901
|
+
description: |-
|
|
10902
|
+
Legacy location of the RESTlet page size; `restlet.batchSize` is the current
|
|
10903
|
+
field and takes precedence when both are set.
|
|
11002
10904
|
preSend:
|
|
11003
10905
|
type: object
|
|
11004
10906
|
properties:
|
|
11005
10907
|
fileInternalId:
|
|
11006
10908
|
type: string
|
|
11007
|
-
description:
|
|
10909
|
+
description: |-
|
|
10910
|
+
Internal ID of the JavaScript file in the NetSuite File Cabinet that defines
|
|
10911
|
+
the hook function. Must be readable by the role behind the export's connection.
|
|
11008
10912
|
examples:
|
|
11009
10913
|
- '12345'
|
|
11010
|
-
- '
|
|
11011
|
-
- file_98765
|
|
11012
|
-
x-celigo-ai-guidance:
|
|
11013
|
-
- |-
|
|
11014
|
-
fileInternalId:
|
|
11015
|
-
The unique internal identifier assigned to a file within the NetSuite system.
|
|
11016
|
-
This identifier is used to precisely reference and manipulate a specific file
|
|
11017
|
-
during API operations,
|
|
11018
|
-
particularly within pre-send processing hooks in RESTlets.
|
|
11019
|
-
It ensures accurate targeting of file resources by uniquely identifying files
|
|
11020
|
-
stored in the NetSuite file cabinet.
|
|
11021
|
-
- |-
|
|
11022
|
-
## FIELD BEHAVIOR:
|
|
11023
|
-
- Represents a unique numeric or alphanumeric identifier assigned by NetSuite to each file.
|
|
11024
|
-
- Used to retrieve, update, or reference a file during the preSend hook execution.
|
|
11025
|
-
- Must correspond to an existing file within the NetSuite file cabinet.
|
|
11026
|
-
- Immutable throughout the file's lifecycle; remains constant unless the file is deleted and recreated.
|
|
11027
|
-
- Serves as a key reference for file-related operations in automated workflows and integrations.
|
|
11028
|
-
- |-
|
|
11029
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11030
|
-
- Always validate that the fileInternalId exists and is accessible before performing operations.
|
|
11031
|
-
- Use this ID to fetch file metadata, content, or perform updates within the preSend hook.
|
|
11032
|
-
- Implement error handling to manage cases where the fileInternalId does not correspond to a valid or accessible file.
|
|
11033
|
-
- Ensure that the executing user or integration has the necessary permissions to access the file referenced by this ID.
|
|
11034
|
-
- Avoid hardcoding this ID; retrieve dynamically when possible to maintain flexibility and accuracy.
|
|
11035
|
-
- |-
|
|
11036
|
-
## EXAMPLES:
|
|
11037
|
-
- 12345
|
|
11038
|
-
- "67890"
|
|
11039
|
-
- "file_98765"
|
|
11040
|
-
- |-
|
|
11041
|
-
## IMPORTANT NOTES:
|
|
11042
|
-
- The fileInternalId is specific to each NetSuite account and environment; it is not globally unique across different accounts.
|
|
11043
|
-
- Do not expose this identifier publicly, as it may reveal sensitive internal system details.
|
|
11044
|
-
- Modifications to the file's name, location, or metadata do not affect the internal ID.
|
|
11045
|
-
- This ID is essential for linking files reliably in automated processes, integrations, and RESTlet hooks.
|
|
11046
|
-
- Deleting and recreating a file will result in a new fileInternalId.
|
|
11047
|
-
- |-
|
|
11048
|
-
## DEPENDENCY CHAIN:
|
|
11049
|
-
- Depends on the existence of the file within the NetSuite file cabinet.
|
|
11050
|
-
- Requires appropriate permissions to access or manipulate the file.
|
|
11051
|
-
- Utilized within preSend hooks to reference files accurately during API operations.
|
|
11052
|
-
- |-
|
|
11053
|
-
## TECHNICAL DETAILS:
|
|
11054
|
-
- Typically a numeric or alphanumeric string assigned by NetSuite upon file creation.
|
|
11055
|
-
- Stored internally within NetSuite's database as the primary key for file records.
|
|
11056
|
-
- Used as a parameter in RESTlet API calls to identify and operate on specific files.
|
|
11057
|
-
- Immutable identifier that does not change unless the file is deleted and recreated.
|
|
10914
|
+
- '6398'
|
|
11058
10915
|
function:
|
|
11059
10916
|
type: string
|
|
11060
10917
|
description: |-
|
|
11061
|
-
Name of the function
|
|
11062
|
-
|
|
10918
|
+
Name of the global function in that file that NetSuite invokes as the pre
|
|
10919
|
+
send hook.
|
|
11063
10920
|
examples:
|
|
11064
|
-
-
|
|
11065
|
-
-
|
|
11066
|
-
- transformRequestData
|
|
11067
|
-
- logRequestDetails
|
|
11068
|
-
x-celigo-ai-guidance:
|
|
11069
|
-
- |-
|
|
11070
|
-
function:
|
|
11071
|
-
> Specifies the name of the custom function to be invoked during the preSend
|
|
11072
|
-
hook phase in the NetSuite RESTlet integration.
|
|
11073
|
-
This function enables developers to implement custom logic for processing or
|
|
11074
|
-
modifying the request payload immediately before it is dispatched to the
|
|
11075
|
-
NetSuite RESTlet endpoint.
|
|
11076
|
-
It serves as a critical extension point for tailoring request data,
|
|
11077
|
-
adding headers, sanitizing inputs,
|
|
11078
|
-
or performing any preparatory steps necessary to meet integration requirements.
|
|
11079
|
-
- |-
|
|
11080
|
-
## FIELD BEHAVIOR:
|
|
11081
|
-
- Identifies the exact function to execute during the preSend hook phase.
|
|
11082
|
-
- Allows customization and transformation of the outgoing request payload or context.
|
|
11083
|
-
- The specified function is called synchronously or asynchronously depending on implementation support.
|
|
11084
|
-
- Modifications made by this function directly affect the data sent to the NetSuite RESTlet.
|
|
11085
|
-
- Must reference a valid, accessible function within the integration's runtime environment.
|
|
11086
|
-
- |-
|
|
11087
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11088
|
-
- Confirm that the function name matches a defined and exported function within the integration codebase.
|
|
11089
|
-
- The function should accept the current request payload or context as input and return the modified payload or context.
|
|
11090
|
-
- Implement robust error handling within the function to avoid unhandled exceptions that could disrupt the request flow.
|
|
11091
|
-
- Optimize the function for performance to minimize latency in request processing.
|
|
11092
|
-
- If asynchronous operations are supported, ensure proper handling of promises or callbacks.
|
|
11093
|
-
- Document the function's behavior clearly to facilitate maintenance and future updates.
|
|
11094
|
-
- |-
|
|
11095
|
-
## EXAMPLES:
|
|
11096
|
-
- "sanitizePayload" — cleans and validates request data before sending.
|
|
11097
|
-
- "addAuthenticationHeaders" — injects necessary authentication tokens or headers.
|
|
11098
|
-
- "transformRequestData" — restructures or enriches the payload to match API expectations.
|
|
11099
|
-
- "logRequestDetails" — captures request metadata for auditing or debugging purposes.
|
|
11100
|
-
- |-
|
|
11101
|
-
## IMPORTANT NOTES:
|
|
11102
|
-
- The function must be correctly implemented and accessible; otherwise, runtime errors will occur.
|
|
11103
|
-
- This hook executes immediately before the request is sent, so any changes here directly impact the outgoing data.
|
|
11104
|
-
- Ensure that the function's side effects do not unintentionally alter unrelated parts of the request or integration state.
|
|
11105
|
-
- If asynchronous processing is used, verify that the integration framework supports it to avoid unexpected behavior.
|
|
11106
|
-
- Testing the function thoroughly is critical to ensure reliable integration behavior.
|
|
11107
|
-
- |-
|
|
11108
|
-
## DEPENDENCY CHAIN:
|
|
11109
|
-
- Requires the preSend hook to be enabled and properly configured in the integration settings.
|
|
11110
|
-
- Depends on the presence of the named
|
|
10921
|
+
- preSendHookScheduledExport
|
|
10922
|
+
- appendCustomerEmail
|
|
11111
10923
|
configuration:
|
|
11112
10924
|
type: object
|
|
11113
|
-
description:
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
configuration:
|
|
11118
|
-
> An object containing configuration settings that influence the behavior of the
|
|
11119
|
-
preSend hook in the NetSuite RESTlet integration.
|
|
11120
|
-
This object serves as a centralized control point for customizing how requests
|
|
11121
|
-
are processed and modified before being sent to the NetSuite RESTlet endpoint.
|
|
11122
|
-
It can include a variety of parameters such as authentication credentials,
|
|
11123
|
-
logging preferences, request modification flags, timeout settings,
|
|
11124
|
-
retry policies,
|
|
11125
|
-
and feature toggles that tailor the preSend hook's operation to specific integration needs.
|
|
11126
|
-
- |-
|
|
11127
|
-
## FIELD BEHAVIOR:
|
|
11128
|
-
- Holds key-value pairs that define how the preSend hook processes and modifies outgoing requests.
|
|
11129
|
-
- Can include settings such as authentication parameters (e.g., tokens, API keys), request modification flags (e.g., header adjustments), logging options (e.g., enable/disable logging), timeout durations, retry counts, and feature toggles.
|
|
11130
|
-
- Is accessed and potentially updated dynamically during the execution of the preSend hook to adapt request handling based on current context or conditions.
|
|
11131
|
-
- Influences the flow and outcome of the preSend hook, potentially altering request payloads, headers, or other metadata before transmission.
|
|
11132
|
-
- |-
|
|
11133
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11134
|
-
- Define clear, descriptive, and consistent keys within the configuration object to avoid ambiguity and ensure maintainability.
|
|
11135
|
-
- Validate all configuration values rigorously before applying them to prevent runtime errors or unexpected behavior.
|
|
11136
|
-
- Use this object to centralize control over preSend hook behavior, enabling easier updates, debugging, and feature management.
|
|
11137
|
-
- Document all possible configuration options, their expected data types, default values, and their specific effects on the preSend hook's operation.
|
|
11138
|
-
- Ensure sensitive information within the configuration (e.g., authentication tokens) is handled securely, following best practices for encryption and access control.
|
|
11139
|
-
- Consider versioning the configuration schema if multiple versions of the preSend hook or integration exist.
|
|
11140
|
-
- |-
|
|
11141
|
-
## EXAMPLES:
|
|
11142
|
-
- `{ "enableLogging": true, "authToken": "abc123", "modifyHeaders": false }`
|
|
11143
|
-
- `{ "retryCount": 3, "timeout": 5000 }`
|
|
11144
|
-
- `{ "useSandbox": true, "customHeader": "X-Custom-Value" }`
|
|
11145
|
-
- `{ "authenticationType": "OAuth2", "refreshToken": "xyz789", "logLevel": "verbose" }`
|
|
11146
|
-
- `{ "enableCaching": false, "maxRetries": 5, "requestPriority": "high" }`
|
|
10925
|
+
description: |-
|
|
10926
|
+
Free-form JSON stored with the hook reference for the script's own use. Custom
|
|
10927
|
+
settings in scope for the export are passed to the function separately as
|
|
10928
|
+
`options.settings`.
|
|
11147
10929
|
description: |-
|
|
11148
|
-
|
|
11149
|
-
|
|
10930
|
+
SuiteScript hook that runs inside NetSuite after a page of records is collected
|
|
10931
|
+
and before it is sent to the Celigo platform.
|
|
11150
10932
|
x-celigo-ai-guidance:
|
|
11151
10933
|
- |-
|
|
11152
|
-
|
|
11153
|
-
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
11157
|
-
This hook provides a critical interception point to ensure the response adheres
|
|
11158
|
-
to business rules,
|
|
11159
|
-
compliance requirements,
|
|
11160
|
-
or client-specific formatting before it leaves the server.
|
|
11161
|
-
- |-
|
|
11162
|
-
## FIELD BEHAVIOR:
|
|
11163
|
-
- Invoked right before the RESTlet response is sent to the client.
|
|
11164
|
-
- Receives the response data as input and can modify it.
|
|
11165
|
-
- Can be used to log, audit, or transform the response payload.
|
|
11166
|
-
- Should return the final response object to be sent.
|
|
11167
|
-
- Supports both synchronous and asynchronous execution depending on the implementation.
|
|
11168
|
-
- Any changes made here directly impact the final output received by the client.
|
|
11169
|
-
- |-
|
|
11170
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11171
|
-
- Implement as a synchronous or asynchronous function depending on the environment and use case.
|
|
11172
|
-
- Ensure any modifications maintain the expected response format and data integrity.
|
|
11173
|
-
- Avoid long-running or blocking operations to prevent delaying the response delivery.
|
|
11174
|
-
- Handle errors gracefully within the hook to prevent disrupting the overall RESTlet response flow.
|
|
11175
|
-
- Validate the modified response to ensure it complies with API schema and client expectations.
|
|
11176
|
-
- Use this hook to enforce security measures such as masking sensitive data or adding audit trails.
|
|
11177
|
-
- |-
|
|
11178
|
-
## EXAMPLES:
|
|
11179
|
-
- Adding a timestamp or metadata (e.g., request ID, processing duration) to the response object.
|
|
11180
|
-
- Masking or removing sensitive information (e.g., personal identifiers, confidential fields) from the response.
|
|
11181
|
-
- Logging response details for auditing or debugging purposes.
|
|
11182
|
-
- Transforming response data structure or formatting to match client-specific requirements.
|
|
11183
|
-
- Injecting additional headers or status information into the response payload.
|
|
10934
|
+
The function receives one `options` argument — `data` (the page of records),
|
|
10935
|
+
`recordType`, `searchId`, `skipGrouping`, `delta`, `once`, `_exportId`,
|
|
10936
|
+
`_connectionId`, `_flowId`, `_integrationId`, `settings`, `testMode` — and must
|
|
10937
|
+
return `{ data, errors, errorsAndRetryData }` (`errorsAndRetryData` items are
|
|
10938
|
+
`{retryData: <record>, errors: [<error>]}`). Throwing stops the flow.
|
|
11184
10939
|
- |-
|
|
11185
|
-
|
|
11186
|
-
|
|
11187
|
-
|
|
11188
|
-
|
|
11189
|
-
|
|
11190
|
-
|
|
11191
|
-
|
|
11192
|
-
|
|
11193
|
-
## DEPENDENCY CHAIN:
|
|
11194
|
-
- Triggered after the main RESTlet processing logic completes and the response object is prepared.
|
|
11195
|
-
- Precedes the actual sending of the HTTP response to the client.
|
|
11196
|
-
description: Custom hook functions executed at defined points in the RESTlet export lifecycle.
|
|
11197
|
-
x-celigo-ai-guidance:
|
|
11198
|
-
- |-
|
|
11199
|
-
hooks:
|
|
11200
|
-
> An array of hook definitions that specify custom functions to be executed at
|
|
11201
|
-
various points during the lifecycle of the RESTlet script in NetSuite.
|
|
11202
|
-
These hooks enable developers to inject additional logic before or after
|
|
11203
|
-
standard processing events,
|
|
11204
|
-
allowing for extensive customization and extension of the RESTlet's behavior to
|
|
11205
|
-
meet specific business requirements.
|
|
11206
|
-
- |-
|
|
11207
|
-
## FIELD BEHAVIOR:
|
|
11208
|
-
- Defines one or more hooks that trigger custom code execution at designated lifecycle events.
|
|
11209
|
-
- Hooks can be configured to run at standard lifecycle events such as beforeLoad, beforeSubmit, afterSubmit, or at custom-defined events tailored to specific needs.
|
|
11210
|
-
- Each hook entry typically includes the event name, the callback function to execute, and optional parameters or context information.
|
|
11211
|
-
- Supports both synchronous and asynchronous execution modes depending on the hook type and implementation context.
|
|
11212
|
-
- Hooks execute in the order they are defined, allowing for controlled sequencing of custom logic.
|
|
11213
|
-
- Hooks can modify input data, perform validations, log information, or alter output responses as needed.
|
|
11214
|
-
- |-
|
|
11215
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11216
|
-
- Ensure that each hook function is properly defined, accessible, and tested within the RESTlet script context to avoid runtime failures.
|
|
11217
|
-
- Validate hook event names against the list of supported lifecycle events to prevent misconfiguration and errors.
|
|
11218
|
-
- Use hooks to encapsulate reusable business logic, enforce data integrity, or integrate with external systems and services.
|
|
11219
|
-
- Implement robust error handling within hook functions to prevent exceptions from disrupting the main RESTlet processing flow.
|
|
11220
|
-
- Document each hook's purpose, expected inputs, outputs, and side effects clearly to facilitate maintainability and future enhancements.
|
|
11221
|
-
- Consider performance implications of hooks, especially those performing asynchronous operations or external calls, to maintain RESTlet responsiveness.
|
|
11222
|
-
- When multiple hooks are defined for the same event, design them to avoid conflicts and ensure predictable outcomes.
|
|
11223
|
-
- |-
|
|
11224
|
-
## EXAMPLES:
|
|
11225
|
-
- Defining a hook to validate and sanitize input data before processing a RESTlet request.
|
|
11226
|
-
- Adding a hook to log detailed request and response information after the RESTlet completes execution for auditing purposes.
|
|
11227
|
-
- Using a hook to modify or enrich the response payload dynamically before it is returned to the client application.
|
|
11228
|
-
- Implementing a hook to trigger notifications or update related records asynchronously after data submission.
|
|
11229
|
-
- Creating a custom hook event to perform additional security checks beyond standard validation.
|
|
11230
|
-
- |-
|
|
11231
|
-
## IMPORTANT NOTES:
|
|
11232
|
-
- Improper use or misconfiguration of hooks can lead to unexpected behavior, performance degradation, or runtime errors.
|
|
10940
|
+
Use it to enrich or filter records with SuiteScript searches and record loads
|
|
10941
|
+
before they leave NetSuite (no extra API round-trips). The script must be
|
|
10942
|
+
written for the step's SuiteScript version (1.0 vs 2.x are not interchangeable);
|
|
10943
|
+
the SuiteScript 1.0 real-time variant receives a single record object rather
|
|
10944
|
+
than an array.
|
|
10945
|
+
description: |-
|
|
10946
|
+
SuiteScript hooks for the export. Only `preSend` exists on exports; imports carry
|
|
10947
|
+
the pre map, post map, and post submit hooks.
|
|
11233
10948
|
cLocked:
|
|
11234
10949
|
type: object
|
|
11235
10950
|
description: Lock state that prevents modification of the configuration when set.
|
|
@@ -11238,38 +10953,10 @@ components:
|
|
|
11238
10953
|
from NetSuite, along with the saved search, criteria, and columns it executes with.
|
|
11239
10954
|
x-celigo-ai-guidance:
|
|
11240
10955
|
- |-
|
|
11241
|
-
|
|
11242
|
-
|
|
11243
|
-
|
|
11244
|
-
|
|
11245
|
-
This property specifies which Restlet endpoint the integration or application
|
|
11246
|
-
should call to execute specific business logic,
|
|
11247
|
-
automate workflows, or retrieve and manipulate data dynamically.
|
|
11248
|
-
It can be represented as an internal script ID, a relative URL path,
|
|
11249
|
-
or a full external URL depending on the integration scenario and access method.
|
|
11250
|
-
- |-
|
|
11251
|
-
## FIELD BEHAVIOR:
|
|
11252
|
-
- Defines the specific target Restlet script or endpoint for API calls within the NetSuite environment.
|
|
11253
|
-
- Routes requests to custom server-side scripts developed using NetSuite's SuiteScript framework.
|
|
11254
|
-
- Enables execution of tailored business processes, data validations, transformations, or integrations.
|
|
11255
|
-
- Supports various HTTP methods such as GET, POST, PUT, and DELETE depending on the Restlet's implementation.
|
|
11256
|
-
- Can be specified as a script ID, a relative URL path, or a fully qualified URL based on deployment and access context.
|
|
11257
|
-
- Acts as the primary entry point for invoking custom logic that extends or complements standard NetSuite functionality.
|
|
11258
|
-
- |-
|
|
11259
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11260
|
-
- Confirm that the Restlet script is properly deployed, enabled, and accessible within the target NetSuite account.
|
|
11261
|
-
- Use the internal script ID format (e.g., "customscript_my_restlet") when calling via SuiteScript or internal APIs.
|
|
11262
|
-
- Use the relative URL path (e.g., "/app/site/hosting/restlet.nl?script=123&deploy=1") or full URL for external integrations or REST clients.
|
|
11263
|
-
- Verify that the Restlet supports the required HTTP methods and handles input/output data formats correctly (JSON, XML, etc.).
|
|
11264
|
-
- Secure the Restlet endpoint by implementing authentication mechanisms such as OAuth 2.0, token-based authentication, or NetSuite session credentials.
|
|
11265
|
-
- Implement robust error handling and retry logic to manage scenarios where the Restlet is unavailable or returns errors.
|
|
11266
|
-
- Test the Restlet thoroughly in a sandbox environment before deploying to production to ensure expected behavior and security compliance.
|
|
11267
|
-
- |-
|
|
11268
|
-
## EXAMPLES:
|
|
11269
|
-
- "customscript_my_restlet" (internal script ID used in SuiteScript calls)
|
|
11270
|
-
- "/app/site/hosting/restlet.nl?script=123&deploy=1" (relative URL for REST calls within NetSuite)
|
|
11271
|
-
- "https://rest.netsuite.com/app/site/hosting/restlet.nl?script=456&deploy=2" (full external URL for third-party integrations)
|
|
11272
|
-
- "customscript_sales_order_processor" (a Rest
|
|
10956
|
+
Two shapes: a saved-search export (`searchId` set; `criteria` optionally narrows it;
|
|
10957
|
+
`columns` omitted to return the search's own columns) or an ad-hoc search
|
|
10958
|
+
(`searchId: "-1"` or omitted, `recordType` + `criteria` + `columns` supplied, and
|
|
10959
|
+
`netsuite.skipGrouping: true` — without it the run fails with `[search_not_sorted]`).
|
|
11273
10960
|
distributed:
|
|
11274
10961
|
type: object
|
|
11275
10962
|
properties:
|
|
@@ -13001,6 +12688,13 @@ components:
|
|
|
13001
12688
|
There are two main parsing strategies available:
|
|
13002
12689
|
- **Automatic parsing**: Simple but produces more complex output
|
|
13003
12690
|
- **Custom parsing**: More control over the resulting JSON structure
|
|
12691
|
+
x-celigo-ai-guidance:
|
|
12692
|
+
- |-
|
|
12693
|
+
With V0_json false, an empty element (`<FirstName></FirstName>`, `<FirstName/>`) parses to
|
|
12694
|
+
an empty object `{}` under every setting here, not an empty string. A Handlebars template
|
|
12695
|
+
that outputs the field renders `[object Object]`; guard it with
|
|
12696
|
+
`{{#if (eq (typeOf FirstName) "string")}}{{FirstName}}{{/if}}` — a bare `{{#if FirstName}}`
|
|
12697
|
+
does not skip it because `{}` is truthy.
|
|
13004
12698
|
properties:
|
|
13005
12699
|
V0_json:
|
|
13006
12700
|
type: boolean
|
|
@@ -13022,22 +12716,29 @@ components:
|
|
|
13022
12716
|
listNodes:
|
|
13023
12717
|
type: array
|
|
13024
12718
|
description: |
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
|
|
13031
|
-
Each entry should be a simplified XPath expression pointing to the node that should be
|
|
13032
|
-
treated as an array.
|
|
13033
|
-
|
|
13034
|
-
Only relevant when V0_json is set to false (Custom parsing).
|
|
12719
|
+
Paths of elements that always parse as arrays. An element that can repeat parses as an
|
|
12720
|
+
object when it occurs once and as an array when it occurs more than once, so list every
|
|
12721
|
+
repeating element here to give each record the same shape regardless of item count.
|
|
12722
|
+
Each entry is the element's full path from the record element selected by the resource
|
|
12723
|
+
path (from the document root when there is no resource path), with an optional leading
|
|
12724
|
+
slash. Only relevant when V0_json is set to false (Custom parsing).
|
|
13035
12725
|
items:
|
|
13036
12726
|
type: string
|
|
13037
12727
|
examples:
|
|
13038
12728
|
- - /product-lineitems/product-lineitem
|
|
13039
12729
|
- /shipping-lineitems/shipping-lineitem
|
|
13040
12730
|
- /shipments/shipment
|
|
12731
|
+
x-celigo-ai-guidance:
|
|
12732
|
+
- |-
|
|
12733
|
+
Add every element that can repeat. Left out, a one-item record parses it as an object:
|
|
12734
|
+
a Handlebars `{{#each}}` over it iterates the object's fields (each field reference
|
|
12735
|
+
renders empty) and mappings or filters written against an array find nothing.
|
|
12736
|
+
- |-
|
|
12737
|
+
Write the full path from the record element: `Items/LineItemInfo` for records at
|
|
12738
|
+
resource path `/Orders/Order`. A bare descendant name (`LineItemInfo`) or a
|
|
12739
|
+
document-rooted path (`/Orders/Order/Items/LineItemInfo`) matches nothing while a
|
|
12740
|
+
resource path is set; without a resource path the path must start at the document
|
|
12741
|
+
root. `//Element` descendant paths never match.
|
|
13041
12742
|
includeNodes:
|
|
13042
12743
|
type: array
|
|
13043
12744
|
description: |
|
|
@@ -13276,9 +12977,11 @@ components:
|
|
|
13276
12977
|
This field supports THREE DISTINCT PATTERNS that are easily distinguished:
|
|
13277
12978
|
|
|
13278
12979
|
**1. json Path Syntax**
|
|
13279
|
-
- MUST start with '
|
|
12980
|
+
- MUST start with '$' — the record root. An object record is addressed as
|
|
12981
|
+
'$.field'; a grouped (array) record as '$[0].field' / '$[*].field'
|
|
13280
12982
|
- Used for precisely targeting data in structured JSON objects
|
|
13281
|
-
- Examples: '$.customer.firstName', '$.items[0].price', '$.addresses[*].street'
|
|
12983
|
+
- Examples: '$.customer.firstName', '$.items[0].price', '$.addresses[*].street',
|
|
12984
|
+
'$[*].Tax' (every row of a grouped record)
|
|
13282
12985
|
- Wildcards like [*] extract multiple values/objects
|
|
13283
12986
|
|
|
13284
12987
|
```json
|
|
@@ -13289,7 +12992,8 @@ components:
|
|
|
13289
12992
|
- Contains '{{' and '}}' pattern
|
|
13290
12993
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
13291
12994
|
- Can include logic, formatting, and computation
|
|
13292
|
-
- Access input record fields with {{record.fieldName}} notation
|
|
12995
|
+
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
12996
|
+
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
13293
12997
|
- Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
13294
12998
|
- Valid on `object`, `objectarray`, and primitive-array dataTypes as
|
|
13295
12999
|
well as scalars — the rendered template output must parse into the
|
|
@@ -13300,7 +13004,7 @@ components:
|
|
|
13300
13004
|
```
|
|
13301
13005
|
|
|
13302
13006
|
**3. Hard-Coded Value (literal string)**
|
|
13303
|
-
- Does NOT start with '
|
|
13007
|
+
- Does NOT start with '$'
|
|
13304
13008
|
- Does NOT contain handlebars '{{' syntax
|
|
13305
13009
|
- System treats it as a literal string value
|
|
13306
13010
|
- VERY COMMON for setting static/constant values
|
|
@@ -13322,10 +13026,38 @@ components:
|
|
|
13322
13026
|
- The system maintains this context even in deeply nested mappings
|
|
13323
13027
|
- For object mappings without child mappings, extract should return a complete object
|
|
13324
13028
|
- When both extract and mappings are defined for objects, extract is applied first
|
|
13029
|
+
- The root is the record as it arrives: an object record roots at `$.field`; a
|
|
13030
|
+
grouped record (an array of rows — grouped exports, file key columns, NetSuite
|
|
13031
|
+
grouped saved searches) roots at the array, so its rows are addressed as
|
|
13032
|
+
`$[0].field` (one row) or `$[*].field` (every row). A root that contradicts the
|
|
13033
|
+
record's shape resolves to nothing without an error.
|
|
13325
13034
|
|
|
13326
13035
|
For most simple field-to-field mappings, prefer JSON path syntax for its clarity and performance.
|
|
13327
13036
|
For hard-coded values, simply use the literal string as the extract value.
|
|
13328
13037
|
x-celigo-ai-guidance:
|
|
13038
|
+
- |-
|
|
13039
|
+
## GROUPED (ARRAY) RECORDS
|
|
13040
|
+
Decide the JSONPath root from the record's shape before writing
|
|
13041
|
+
any extract. When the record is an array of rows, `$.field`,
|
|
13042
|
+
`$.properties.field` and `$.rows[*].field` all resolve to
|
|
13043
|
+
nothing — the processor still reports success and the request
|
|
13044
|
+
body ships as `{}`. Address rows as `$[0].field` (that row's
|
|
13045
|
+
value, typed) or `$[*].field` (every row: joined with commas
|
|
13046
|
+
into a `string` destination; rejected with
|
|
13047
|
+
`incompatible_destination_conversion` into a `number`
|
|
13048
|
+
destination). Column labels with spaces work as
|
|
13049
|
+
`$[*][Order Number]`, `$[*].[Order Number]`, or
|
|
13050
|
+
`$[*]['Order Number']`. For one destination element per row
|
|
13051
|
+
the two array kinds take different helper forms: a primitive
|
|
13052
|
+
array (`stringarray` / `numberarray`) uses `buildArrayHelper:
|
|
13053
|
+
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
13054
|
+
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
13055
|
+
with the children addressing the row relatively (`$.field`,
|
|
13056
|
+
`{{rows.field}}`). An `extract` placed directly on the
|
|
13057
|
+
array-typed field yields nothing. Handlebars
|
|
13058
|
+
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
13059
|
+
an object record as `record`. The reverse holds too: `$[*]` on
|
|
13060
|
+
an object record iterates the object's values, not rows.
|
|
13329
13061
|
- |-
|
|
13330
13062
|
## SIZE LIMIT
|
|
13331
13063
|
The platform's import save validator caps this field at **1024
|
|
@@ -13583,7 +13315,11 @@ components:
|
|
|
13583
13315
|
(`$.items[*]`), `"$"` (the record root), or omission — a
|
|
13584
13316
|
constructed entry (child `mappings` with the extract omitted or
|
|
13585
13317
|
`"$"`; the two spellings are equivalent) contributes exactly one
|
|
13586
|
-
element, and entries append in order.
|
|
13318
|
+
element, and entries append in order. On a grouped (array)
|
|
13319
|
+
record the record itself is the array to iterate: `"$[*]"`
|
|
13320
|
+
yields one `objectarray` element per row (children address the
|
|
13321
|
+
row as `$.field`), and `"$[*].field"` yields one primitive-array
|
|
13322
|
+
value per row. Indexed or comma-joined
|
|
13587
13323
|
entry extracts (`"$[0]"`, `"$[0],$[0]"`) are not valid: the
|
|
13588
13324
|
processor renders the entire destination array as null with no
|
|
13589
13325
|
validation error. To emit a fixed number of static elements, add
|
|
@@ -13604,7 +13340,9 @@ components:
|
|
|
13604
13340
|
|
|
13605
13341
|
**For Simple Arrays (stringarray, numberarray, booleanarray)**
|
|
13606
13342
|
- Only the 'extract' field is used to pull values
|
|
13607
|
-
- JSON path with wildcards (e.g., $.items[*].name) returns multiple values
|
|
13343
|
+
- JSON path with wildcards (e.g., $.items[*].name) returns multiple values;
|
|
13344
|
+
on a grouped (array) record the record itself is the array, so the
|
|
13345
|
+
path roots at it ($[*].name — one value per row)
|
|
13608
13346
|
- Each result is converted to the appropriate primitive type
|
|
13609
13347
|
```json
|
|
13610
13348
|
{
|
|
@@ -13706,11 +13444,13 @@ components:
|
|
|
13706
13444
|
- When both extract and mappings are provided, the system creates special composite objects
|
|
13707
13445
|
that maintain hierarchical context during processing
|
|
13708
13446
|
- This enables accessing both the current array element AND its parent context
|
|
13709
|
-
- An ITERATING entry's extract MUST
|
|
13710
|
-
|
|
13711
|
-
|
|
13712
|
-
|
|
13713
|
-
|
|
13447
|
+
- An ITERATING entry's extract MUST be a JSON path that iterates an array:
|
|
13448
|
+
'$.items[*]' when the array is a field of an object record, or '$[*]'
|
|
13449
|
+
(objectarray) / '$[*].field' (primitive arrays) when the record itself is a
|
|
13450
|
+
grouped array of rows. A CONSTRUCTED entry (child mappings building one
|
|
13451
|
+
element) instead omits extract or sets it to exactly "$" — never rewrite "$"
|
|
13452
|
+
into an indexed or comma-joined form ('$[0]', '$[0],$[0]'): those render the
|
|
13453
|
+
entire destination array as null without raising a validation error
|
|
13714
13454
|
- Each array helper entry acts independently, potentially adding multiple elements
|
|
13715
13455
|
|
|
13716
13456
|
The buildArrayHelper is the most complex part of the mappings system - always analyze the
|
|
@@ -14124,9 +13864,11 @@ components:
|
|
|
14124
13864
|
This field supports THREE DISTINCT PATTERNS that are easily distinguished:
|
|
14125
13865
|
|
|
14126
13866
|
**1. json Path Syntax**
|
|
14127
|
-
- MUST start with '
|
|
13867
|
+
- MUST start with '$' — the record root. An object record is addressed as
|
|
13868
|
+
'$.field'; a grouped (array) record as '$[0].field' / '$[*].field'
|
|
14128
13869
|
- Used for precisely targeting data in structured JSON objects
|
|
14129
|
-
- Examples: '$.customer.firstName', '$.items[0].price', '$.addresses[*].street'
|
|
13870
|
+
- Examples: '$.customer.firstName', '$.items[0].price', '$.addresses[*].street',
|
|
13871
|
+
'$[*].Tax' (every row of a grouped record)
|
|
14130
13872
|
- Wildcards like [*] extract multiple values/objects
|
|
14131
13873
|
|
|
14132
13874
|
```json
|
|
@@ -14137,7 +13879,8 @@ components:
|
|
|
14137
13879
|
- Contains '{{' and '}}' pattern
|
|
14138
13880
|
- Evaluated by the AFE 2.0 handlebars template engine
|
|
14139
13881
|
- Can include logic, formatting, and computation
|
|
14140
|
-
- Access input record fields with {{record.fieldName}} notation
|
|
13882
|
+
- Access input record fields with {{record.fieldName}} notation; a grouped
|
|
13883
|
+
(array) record binds as `rows` instead — {{rows.0.fieldName}} / {{#each rows}}
|
|
14141
13884
|
- Examples: "{{record.firstName}} {{record.lastName}}", "{{#if record.isActive}}Active{{else}}Inactive{{/if}}"
|
|
14142
13885
|
- Valid on `object`, `objectarray`, and primitive-array dataTypes as
|
|
14143
13886
|
well as scalars — the rendered template output must parse into the
|
|
@@ -14148,7 +13891,7 @@ components:
|
|
|
14148
13891
|
```
|
|
14149
13892
|
|
|
14150
13893
|
**3. Hard-Coded Value (literal string)**
|
|
14151
|
-
- Does NOT start with '
|
|
13894
|
+
- Does NOT start with '$'
|
|
14152
13895
|
- Does NOT contain handlebars '{{' syntax
|
|
14153
13896
|
- System treats it as a literal string value
|
|
14154
13897
|
- VERY COMMON for setting static/constant values
|
|
@@ -14170,10 +13913,38 @@ components:
|
|
|
14170
13913
|
- The system maintains this context even in deeply nested mappings
|
|
14171
13914
|
- For object mappings without child mappings, extract should return a complete object
|
|
14172
13915
|
- When both extract and mappings are defined for objects, extract is applied first
|
|
13916
|
+
- The root is the record as it arrives: an object record roots at `$.field`; a
|
|
13917
|
+
grouped record (an array of rows — grouped exports, file key columns, NetSuite
|
|
13918
|
+
grouped saved searches) roots at the array, so its rows are addressed as
|
|
13919
|
+
`$[0].field` (one row) or `$[*].field` (every row). A root that contradicts the
|
|
13920
|
+
record's shape resolves to nothing without an error.
|
|
14173
13921
|
|
|
14174
13922
|
For most simple field-to-field mappings, prefer JSON path syntax for its clarity and performance.
|
|
14175
13923
|
For hard-coded values, simply use the literal string as the extract value.
|
|
14176
13924
|
x-celigo-ai-guidance:
|
|
13925
|
+
- |-
|
|
13926
|
+
## GROUPED (ARRAY) RECORDS
|
|
13927
|
+
Decide the JSONPath root from the record's shape before writing
|
|
13928
|
+
any extract. When the record is an array of rows, `$.field`,
|
|
13929
|
+
`$.properties.field` and `$.rows[*].field` all resolve to
|
|
13930
|
+
nothing — the processor still reports success and the request
|
|
13931
|
+
body ships as `{}`. Address rows as `$[0].field` (that row's
|
|
13932
|
+
value, typed) or `$[*].field` (every row: joined with commas
|
|
13933
|
+
into a `string` destination; rejected with
|
|
13934
|
+
`incompatible_destination_conversion` into a `number`
|
|
13935
|
+
destination). Column labels with spaces work as
|
|
13936
|
+
`$[*][Order Number]`, `$[*].[Order Number]`, or
|
|
13937
|
+
`$[*]['Order Number']`. For one destination element per row
|
|
13938
|
+
the two array kinds take different helper forms: a primitive
|
|
13939
|
+
array (`stringarray` / `numberarray`) uses `buildArrayHelper:
|
|
13940
|
+
[{"extract": "$[*].field"}]`; an `objectarray` uses
|
|
13941
|
+
`buildArrayHelper: [{"extract": "$[*]", "mappings": [...]}]`
|
|
13942
|
+
with the children addressing the row relatively (`$.field`,
|
|
13943
|
+
`{{rows.field}}`). An `extract` placed directly on the
|
|
13944
|
+
array-typed field yields nothing. Handlebars
|
|
13945
|
+
extracts bind the array record as `rows` (`{{rows.0.field}}`),
|
|
13946
|
+
an object record as `record`. The reverse holds too: `$[*]` on
|
|
13947
|
+
an object record iterates the object's values, not rows.
|
|
14177
13948
|
- |-
|
|
14178
13949
|
## SIZE LIMIT
|
|
14179
13950
|
The platform's import save validator caps this field at **1024
|
|
@@ -14431,7 +14202,11 @@ components:
|
|
|
14431
14202
|
(`$.items[*]`), `"$"` (the record root), or omission — a
|
|
14432
14203
|
constructed entry (child `mappings` with the extract omitted or
|
|
14433
14204
|
`"$"`; the two spellings are equivalent) contributes exactly one
|
|
14434
|
-
element, and entries append in order.
|
|
14205
|
+
element, and entries append in order. On a grouped (array)
|
|
14206
|
+
record the record itself is the array to iterate: `"$[*]"`
|
|
14207
|
+
yields one `objectarray` element per row (children address the
|
|
14208
|
+
row as `$.field`), and `"$[*].field"` yields one primitive-array
|
|
14209
|
+
value per row. Indexed or comma-joined
|
|
14435
14210
|
entry extracts (`"$[0]"`, `"$[0],$[0]"`) are not valid: the
|
|
14436
14211
|
processor renders the entire destination array as null with no
|
|
14437
14212
|
validation error. To emit a fixed number of static elements, add
|
|
@@ -14452,7 +14227,9 @@ components:
|
|
|
14452
14227
|
|
|
14453
14228
|
**For Simple Arrays (stringarray, numberarray, booleanarray)**
|
|
14454
14229
|
- Only the 'extract' field is used to pull values
|
|
14455
|
-
- JSON path with wildcards (e.g., $.items[*].name) returns multiple values
|
|
14230
|
+
- JSON path with wildcards (e.g., $.items[*].name) returns multiple values;
|
|
14231
|
+
on a grouped (array) record the record itself is the array, so the
|
|
14232
|
+
path roots at it ($[*].name — one value per row)
|
|
14456
14233
|
- Each result is converted to the appropriate primitive type
|
|
14457
14234
|
```json
|
|
14458
14235
|
{
|
|
@@ -14554,11 +14331,13 @@ components:
|
|
|
14554
14331
|
- When both extract and mappings are provided, the system creates special composite objects
|
|
14555
14332
|
that maintain hierarchical context during processing
|
|
14556
14333
|
- This enables accessing both the current array element AND its parent context
|
|
14557
|
-
- An ITERATING entry's extract MUST
|
|
14558
|
-
|
|
14559
|
-
|
|
14560
|
-
|
|
14561
|
-
|
|
14334
|
+
- An ITERATING entry's extract MUST be a JSON path that iterates an array:
|
|
14335
|
+
'$.items[*]' when the array is a field of an object record, or '$[*]'
|
|
14336
|
+
(objectarray) / '$[*].field' (primitive arrays) when the record itself is a
|
|
14337
|
+
grouped array of rows. A CONSTRUCTED entry (child mappings building one
|
|
14338
|
+
element) instead omits extract or sets it to exactly "$" — never rewrite "$"
|
|
14339
|
+
into an indexed or comma-joined form ('$[0]', '$[0],$[0]'): those render the
|
|
14340
|
+
entire destination array as null without raising a validation error
|
|
14562
14341
|
- Each array helper entry acts independently, potentially adding multiple elements
|
|
14563
14342
|
|
|
14564
14343
|
The buildArrayHelper is the most complex part of the mappings system - always analyze the
|
|
@@ -15284,6 +15063,16 @@ components:
|
|
|
15284
15063
|
x-enumDescriptions:
|
|
15285
15064
|
create: Builds entirely new output records from inputs, ignoring unmapped fields.
|
|
15286
15065
|
modify: Makes targeted edits to existing records, preserving unmapped fields.
|
|
15066
|
+
x-celigo-ai-guidance:
|
|
15067
|
+
- |-
|
|
15068
|
+
On a grouped record (the export groups rows, so the record is an
|
|
15069
|
+
array) only `create` can author output — build it from the rows with
|
|
15070
|
+
`$[0].field`, `$[*].field`, or a `buildArrayHelper` over `$[*]`.
|
|
15071
|
+
`modify` has no object to overlay onto an array: the record passes
|
|
15072
|
+
through untouched and the processor reports success. Either mode
|
|
15073
|
+
reshapes the inside of one record; neither changes how many records
|
|
15074
|
+
the page carries (that is the export's `preSavePage` hook) or whether
|
|
15075
|
+
the export groups at all (that is its grouping setting).
|
|
15287
15076
|
examples:
|
|
15288
15077
|
- create
|
|
15289
15078
|
- modify
|
|
@@ -16004,6 +15793,8 @@ components:
|
|
|
16004
15793
|
- prepareFormData
|
|
16005
15794
|
_scriptId:
|
|
16006
15795
|
type: string
|
|
15796
|
+
format: objectId
|
|
15797
|
+
x-celigo-refModel: scripts
|
|
16007
15798
|
description: |
|
|
16008
15799
|
Reference to a predefined script resource containing the initialization function.
|
|
16009
15800
|
|
|
@@ -16216,6 +16007,8 @@ components:
|
|
|
16216
16007
|
- prepareResourceForSave
|
|
16217
16008
|
_scriptId:
|
|
16218
16009
|
type: string
|
|
16010
|
+
format: objectId
|
|
16011
|
+
x-celigo-refModel: scripts
|
|
16219
16012
|
description: |
|
|
16220
16013
|
Reference to a predefined script resource containing the preSave function.
|
|
16221
16014
|
|
|
@@ -16258,8 +16051,11 @@ components:
|
|
|
16258
16051
|
- 'null'
|
|
16259
16052
|
description: |-
|
|
16260
16053
|
Connection this export uses to reach the source system. The connection's type must be
|
|
16261
|
-
compatible with the export's `adaptorType` (e.g. an `HTTPExport` needs an `http` connection
|
|
16262
|
-
|
|
16054
|
+
compatible with the export's `adaptorType` (e.g. an `HTTPExport` needs an `http` connection;
|
|
16055
|
+
`NetSuiteExport` and `NetSuiteHTTPExport` both need a `netsuite` connection).
|
|
16056
|
+
Server-required unless `type` is `webhook` or `simple` (those receive data instead of
|
|
16057
|
+
fetching it) or `adaptorType` is `TopicExport` (Event Streams listeners are delivered
|
|
16058
|
+
by the platform itself and must omit it).
|
|
16263
16059
|
examples:
|
|
16264
16060
|
- 60a2c4e6f321d800129a1a3c
|
|
16265
16061
|
adaptorType:
|
|
@@ -16274,6 +16070,7 @@ components:
|
|
|
16274
16070
|
- AS2Export
|
|
16275
16071
|
- S3Export
|
|
16276
16072
|
- NetSuiteExport
|
|
16073
|
+
- NetSuiteHTTPExport
|
|
16277
16074
|
- SalesforceExport
|
|
16278
16075
|
- JDBCExport
|
|
16279
16076
|
- RDBMSExport
|
|
@@ -16283,13 +16080,15 @@ components:
|
|
|
16283
16080
|
- SimpleExport
|
|
16284
16081
|
- WebhookExport
|
|
16285
16082
|
- FileSystemExport
|
|
16083
|
+
- TopicExport
|
|
16286
16084
|
- RESTExport
|
|
16287
16085
|
x-enumDescriptions:
|
|
16288
16086
|
HTTPExport: Exports data from generic REST or SOAP APIs over HTTP.
|
|
16289
16087
|
FTPExport: Exports files from FTP or SFTP servers.
|
|
16290
16088
|
AS2Export: Exports data using the AS2 (Applicability Statement 2) secure file transfer protocol.
|
|
16291
16089
|
S3Export: Exports files from Amazon S3 cloud storage buckets.
|
|
16292
|
-
NetSuiteExport: Exports data from Oracle NetSuite
|
|
16090
|
+
NetSuiteExport: Exports data from Oracle NetSuite through the Celigo SuiteApp/bundle RESTlets (saved searches or search criteria), SOAP web services, real-time listeners, or the file cabinet.
|
|
16091
|
+
NetSuiteHTTPExport: Exports records from Oracle NetSuite over its REST APIs — SuiteTalk REST record endpoints and SuiteQL, or a custom RESTlet — on a netsuite connection, with no saved search and no Celigo SuiteApp involved.
|
|
16293
16092
|
SalesforceExport: Exports data from Salesforce using SOQL queries or real-time events.
|
|
16294
16093
|
JDBCExport: Exports data from databases using JDBC connections.
|
|
16295
16094
|
RDBMSExport: Exports data from relational databases using SQL queries.
|
|
@@ -16299,11 +16098,77 @@ components:
|
|
|
16299
16098
|
SimpleExport: Exports data via manual file uploads through the data loader UI.
|
|
16300
16099
|
WebhookExport: Listens for incoming HTTP requests as a real-time event endpoint.
|
|
16301
16100
|
FileSystemExport: Exports files from a local or mounted file system.
|
|
16101
|
+
TopicExport: Listens to an Event Streams topic and delivers its messages in batches, configured through `topic`; needs no connection.
|
|
16302
16102
|
RESTExport: Legacy REST adaptor, superseded by HTTPExport — still accepted and present on older exports.
|
|
16303
16103
|
examples:
|
|
16304
16104
|
- HTTPExport
|
|
16305
16105
|
- NetSuiteExport
|
|
16106
|
+
- NetSuiteHTTPExport
|
|
16306
16107
|
- SalesforceExport
|
|
16108
|
+
- TopicExport
|
|
16109
|
+
x-celigo-ai-guidance:
|
|
16110
|
+
- |-
|
|
16111
|
+
On a netsuite connection, default to `NetSuiteHTTPExport` (with `nsDomainType` and an
|
|
16112
|
+
`http` object) for exports and lookups: it reads records over NetSuite's REST APIs with
|
|
16113
|
+
nothing to create in NetSuite first — SuiteQL for filtered or multi-table extracts, the
|
|
16114
|
+
record endpoint `GET /services/rest/record/v1/<type>/{id}` for one record. Choose
|
|
16115
|
+
`NetSuiteExport` when the user names an existing saved search or asks for one, for
|
|
16116
|
+
real-time listeners (`type: distributed`), and for file-cabinet exports; never convert an
|
|
16117
|
+
existing `NetSuiteExport` to `NetSuiteHTTPExport` unless asked.
|
|
16118
|
+
- |-
|
|
16119
|
+
When authoring a NetSuite REST export, send `adaptorType: "NetSuiteHTTPExport"` explicitly:
|
|
16120
|
+
on a netsuite connection the server otherwise infers `NetSuiteExport` and rejects the
|
|
16121
|
+
document with 422 "netsuite subschema not defined", even though `nsDomainType` and `http`
|
|
16122
|
+
are present.
|
|
16123
|
+
nsDomainType:
|
|
16124
|
+
type: string
|
|
16125
|
+
enum:
|
|
16126
|
+
- suitetalk
|
|
16127
|
+
- restlet
|
|
16128
|
+
x-lowercase: true
|
|
16129
|
+
x-enumDescriptions:
|
|
16130
|
+
suitetalk: NetSuite SuiteTalk REST web services — record endpoints under /services/rest/record/v1 and SuiteQL under /services/rest/query/v1
|
|
16131
|
+
restlet: A custom RESTlet script deployed in the NetSuite account, called at /app/site/hosting/restlet.nl?script=<id>&deploy=<n>
|
|
16132
|
+
description: |-
|
|
16133
|
+
Selects which NetSuite REST host a `NetSuiteHTTPExport` calls. The server derives the
|
|
16134
|
+
full base URL from the connection's NetSuite account
|
|
16135
|
+
(`https://<account>.suitetalk.api.netsuite.com` or `https://<account>.restlets.api.netsuite.com`)
|
|
16136
|
+
and signs each request with the connection's token-based credentials, so `http.relativeURI`
|
|
16137
|
+
carries the complete path starting at `/services/rest/...` or `/app/site/hosting/restlet.nl`.
|
|
16138
|
+
Ignored on other adaptor types.
|
|
16139
|
+
x-celigo-ai-guidance:
|
|
16140
|
+
- |-
|
|
16141
|
+
Required on `NetSuiteHTTPExport`: omitting it fails the save with 422 "Path `nsDomainType`
|
|
16142
|
+
is required." and any other value fails with 422 "is not a valid enum value for path
|
|
16143
|
+
`nsDomainType`". The export's `_connectionId` must be a netsuite connection — an http
|
|
16144
|
+
connection fails with 422 invalid_connection_type.
|
|
16145
|
+
- |-
|
|
16146
|
+
With `suitetalk`, saving links `http._httpConnectorVersionId`, `_httpConnectorResourceId`
|
|
16147
|
+
and `_httpConnectorEndpointId` to the platform's SuiteTalk connector from `http.method` +
|
|
16148
|
+
`http.relativeURI`, so the UI's Simple view renders an API-authored step; `restlet` steps
|
|
16149
|
+
are not linked.
|
|
16150
|
+
- |-
|
|
16151
|
+
The record list endpoint (`GET /services/rest/record/v1/<type>?limit=<n>&offset={{{export.http.paging.skip}}}`)
|
|
16152
|
+
returns only `{id, links}` per item, so it yields no business fields on its own. For
|
|
16153
|
+
records with fields use SuiteQL: `POST /services/rest/query/v1/suiteql?limit=<n>&offset={{{export.http.paging.skip}}}`,
|
|
16154
|
+
header `Prefer: transient`, `http.body` `{"q": "<SuiteQL>"}`, `http.paging.method: skip`,
|
|
16155
|
+
`http.response.resourcePath: items`; the response envelope carries `hasMore` and
|
|
16156
|
+
`totalResults`. SuiteQL column names are the Records Catalog names (lowercase, e.g.
|
|
16157
|
+
`entityid`, `lastmodifieddate`), not the REST record field names.
|
|
16158
|
+
- |-
|
|
16159
|
+
For incremental runs set `type: delta`, embed `{{lastExportDateTime}}` in the SuiteQL
|
|
16160
|
+
`WHERE` clause (or the record endpoint's `q` parameter) and set `delta.dateFormat` to the
|
|
16161
|
+
format the query compares against, e.g. `to_char(lastmodifieddate,'YYYY-MM-DD HH24:MI:SS') >= '{{lastExportDateTime}}'`
|
|
16162
|
+
with `delta.dateFormat: "YYYY-MM-DD HH:mm:ss"`. In a preview the placeholder renders
|
|
16163
|
+
empty, so preview results do not reflect the delta window.
|
|
16164
|
+
- |-
|
|
16165
|
+
NetSuite must have the REST Web Services feature enabled (Setup > Company > Enable
|
|
16166
|
+
Features > SuiteCloud); otherwise every SuiteTalk call fails with NetSuite 403
|
|
16167
|
+
FEATURE_DISABLED "The 'REST Web Services' feature is not enabled". Custom RESTlets do
|
|
16168
|
+
not need it.
|
|
16169
|
+
- |-
|
|
16170
|
+
`http.type` file, blob, and csvstream are each rejected with 422 unsupported_type
|
|
16171
|
+
("NetSuiteHTTPExport does not support type: <value>") — REST steps are record-based only.
|
|
16307
16172
|
type:
|
|
16308
16173
|
type:
|
|
16309
16174
|
- string
|
|
@@ -16340,6 +16205,10 @@ components:
|
|
|
16340
16205
|
(change data capture from MongoDB, SQL Server, or
|
|
16341
16206
|
PostgreSQL — "when a row changes", "listen to my table")
|
|
16342
16207
|
-> `stream`, configured via the `cdc` object
|
|
16208
|
+
- **Subscribe to an Event Streams topic** ("listen to topic X",
|
|
16209
|
+
"consume messages published to …") -> `stream` with
|
|
16210
|
+
`adaptorType: TopicExport`, configured via the `topic` object
|
|
16211
|
+
(no `cdc`, no `_connectionId`)
|
|
16343
16212
|
- **Transfer raw files WITHOUT parsing their contents into
|
|
16344
16213
|
records** (images, PDFs, binaries) -> `blob`
|
|
16345
16214
|
- **Manual data uploads via the data loader UI** -> `simple`
|
|
@@ -16359,8 +16228,11 @@ components:
|
|
|
16359
16228
|
the chosen config, not whether to use it.
|
|
16360
16229
|
- |-
|
|
16361
16230
|
`stream` is accepted only on MongoDB and RDBMS exports (SQL Server
|
|
16362
|
-
or PostgreSQL connections)
|
|
16363
|
-
|
|
16231
|
+
or PostgreSQL connections) and on Event Streams listeners
|
|
16232
|
+
(`adaptorType: TopicExport`); every other adaptor rejects the save
|
|
16233
|
+
with `unsupported_export_type`. A MongoDB or RDBMS stream export
|
|
16234
|
+
must carry `cdc.snapshotMode` (and `cdc.captureMode` on MongoDB) —
|
|
16235
|
+
omitting them fails with 422 `missing_required_field` on those paths.
|
|
16364
16236
|
enum:
|
|
16365
16237
|
- webhook
|
|
16366
16238
|
- test
|
|
@@ -16381,7 +16253,7 @@ components:
|
|
|
16381
16253
|
simple: Allows manual file uploads through the data loader UI.
|
|
16382
16254
|
blob: Retrieves raw files without parsing them into structured data records.
|
|
16383
16255
|
distributed: Listens for real-time events from NetSuite or Salesforce.
|
|
16384
|
-
stream: Streams
|
|
16256
|
+
stream: Streams events in real time — database change data capture (MongoDB change streams, SQL Server CDC, PostgreSQL logical replication) configured through the `cdc` object, or an Event Streams topic subscription (`TopicExport`) configured through `topic`.
|
|
16385
16257
|
all: Explicitly retrieves all available records — equivalent to omitting `type`.
|
|
16386
16258
|
examples:
|
|
16387
16259
|
- webhook
|
|
@@ -16395,9 +16267,15 @@ components:
|
|
|
16395
16267
|
- integer
|
|
16396
16268
|
- 'null'
|
|
16397
16269
|
description: |-
|
|
16398
|
-
Number of records per page streamed to downstream flow steps
|
|
16399
|
-
capped at 5 MB regardless of record count, so
|
|
16400
|
-
pages. The server does not validate the value.
|
|
16270
|
+
Number of records per page streamed to downstream flow steps when the export is the
|
|
16271
|
+
flow's source step. Pages are additionally capped at 5 MB regardless of record count, so
|
|
16272
|
+
very large records may produce smaller pages. The server does not validate the value.
|
|
16273
|
+
A lookup (`isLookup: true`) runs to completion and hands every result to the incoming
|
|
16274
|
+
record as one response, capped at 5 MB in total, so the value does not change how many
|
|
16275
|
+
results a lookup returns; a result set larger than that belongs in a standalone export
|
|
16276
|
+
step. In a test run or preview the value also caps the records fetched (default 20).
|
|
16277
|
+
On a webhook listener the records of each incoming request are paged separately, before
|
|
16278
|
+
any hook or downstream step runs.
|
|
16401
16279
|
default: 20
|
|
16402
16280
|
examples:
|
|
16403
16281
|
- 100
|
|
@@ -16452,7 +16330,11 @@ components:
|
|
|
16452
16330
|
description: |-
|
|
16453
16331
|
When true, the export runs as a mid-flow lookup: it executes once per incoming record,
|
|
16454
16332
|
using the input record's fields to parameterize the request, and passes the results to
|
|
16455
|
-
subsequent steps. When false, the export runs as a standalone data source.
|
|
16333
|
+
subsequent steps. When false, the export runs as a standalone data source. A lookup's
|
|
16334
|
+
results are not paged through the flow: every page the adaptor fetches is merged into one
|
|
16335
|
+
response for the record, up to 5 MB, so `pageSize` does not limit or extend what a lookup
|
|
16336
|
+
returns. A lookup that must return more than that is better modeled as a standalone
|
|
16337
|
+
export step.
|
|
16456
16338
|
examples:
|
|
16457
16339
|
- true
|
|
16458
16340
|
- false
|
|
@@ -16476,6 +16358,8 @@ components:
|
|
|
16476
16358
|
$ref: '#/components/schemas/Distributed'
|
|
16477
16359
|
cdc:
|
|
16478
16360
|
$ref: '#/components/schemas/Cdc'
|
|
16361
|
+
topic:
|
|
16362
|
+
$ref: '#/components/schemas/Topic'
|
|
16479
16363
|
filesystem:
|
|
16480
16364
|
$ref: '#/components/schemas/FileSystem'
|
|
16481
16365
|
http:
|
|
@@ -16567,8 +16451,8 @@ components:
|
|
|
16567
16451
|
description: |-
|
|
16568
16452
|
Field mappings applied to each incoming record before a lookup HTTP request is made,
|
|
16569
16453
|
reshaping the upstream record into the structure the lookup target API expects. Only
|
|
16570
|
-
supported when `isLookup` is true and `adaptorType` is `HTTPExport
|
|
16571
|
-
source exports or
|
|
16454
|
+
supported when `isLookup` is true and `adaptorType` is `HTTPExport` or
|
|
16455
|
+
`NetSuiteHTTPExport`; do not set it on source exports or other lookup adaptors.
|
|
16572
16456
|
allOf:
|
|
16573
16457
|
- $ref: '#/components/schemas/Mappings'
|
|
16574
16458
|
x-celigo-ai-guidance:
|
|
@@ -16581,8 +16465,9 @@ components:
|
|
|
16581
16465
|
1. ``isLookup`` is ``true`` (the export is being used as a
|
|
16582
16466
|
lookup step, not a source export), AND
|
|
16583
16467
|
2. ``adaptorType`` is ``"HTTPExport"`` (generic REST/SOAP
|
|
16584
|
-
HTTP lookup
|
|
16585
|
-
|
|
16468
|
+
HTTP lookup) or ``"NetSuiteHTTPExport"`` (NetSuite REST
|
|
16469
|
+
APIs) — not the saved-search NetSuite adaptor, Salesforce,
|
|
16470
|
+
RDBMS, file-based, or any other adaptor.
|
|
16586
16471
|
|
|
16587
16472
|
For any other combination (source exports, non-HTTP lookup
|
|
16588
16473
|
exports), do **not** emit this field. Explain the constraint
|
|
@@ -16670,6 +16555,45 @@ components:
|
|
|
16670
16555
|
example:
|
|
16671
16556
|
threshold: 100
|
|
16672
16557
|
prefix: EXP-
|
|
16558
|
+
preParse:
|
|
16559
|
+
type: object
|
|
16560
|
+
x-celigo-agent:
|
|
16561
|
+
- script
|
|
16562
|
+
description: |-
|
|
16563
|
+
Hook that runs on file-based exports after the file is downloaded and before it is
|
|
16564
|
+
parsed: it receives the raw file text as `preParseData` together with `fileMeta` and
|
|
16565
|
+
returns both, modified or not, for the configured parser to read. Used to normalize a
|
|
16566
|
+
non-standard file — fix a header row, strip a preamble, convert a format — before
|
|
16567
|
+
parsing; an exception thrown here fails the run.
|
|
16568
|
+
properties:
|
|
16569
|
+
function:
|
|
16570
|
+
type: string
|
|
16571
|
+
description: Function to invoke within the referenced script.
|
|
16572
|
+
examples:
|
|
16573
|
+
- fixHeader
|
|
16574
|
+
- normalizeFile
|
|
16575
|
+
- convertToCsv
|
|
16576
|
+
_scriptId:
|
|
16577
|
+
type: string
|
|
16578
|
+
format: objectId
|
|
16579
|
+
x-celigo-refModel: scripts
|
|
16580
|
+
description: Script containing the hook function named in `function`.
|
|
16581
|
+
examples:
|
|
16582
|
+
- 60a2c4e6f321d800129a1a3c
|
|
16583
|
+
- 5f8e7d2c1b54e6003a9c7e12
|
|
16584
|
+
_stackId:
|
|
16585
|
+
type: string
|
|
16586
|
+
x-celigo-refModel: stacks
|
|
16587
|
+
format: objectId
|
|
16588
|
+
description: Stack that hosts the hook logic, used instead of a script for stack-based deployments.
|
|
16589
|
+
configuration:
|
|
16590
|
+
type: object
|
|
16591
|
+
description: |-
|
|
16592
|
+
Static parameters passed to the hook function at runtime, letting one script be
|
|
16593
|
+
reused across exports with different settings.
|
|
16594
|
+
example:
|
|
16595
|
+
headerRow: 1
|
|
16596
|
+
encoding: utf8
|
|
16673
16597
|
settingsForm:
|
|
16674
16598
|
x-celigo-agent:
|
|
16675
16599
|
- settings_form
|
|
@@ -16683,9 +16607,12 @@ components:
|
|
|
16683
16607
|
format: objectId
|
|
16684
16608
|
x-celigo-refModel: ediprofiles
|
|
16685
16609
|
description: |-
|
|
16686
|
-
EDI profile this export uses to parse incoming X12
|
|
16687
|
-
it supplies the envelope qualifiers, delimiters, version, and validation rules.
|
|
16688
|
-
when the export parses or validates EDI files; omit it otherwise.
|
|
16610
|
+
EDI profile this export uses to parse incoming X12 or EDIFACT documents into structured
|
|
16611
|
+
JSON — it supplies the envelope qualifiers, delimiters, version, and validation rules.
|
|
16612
|
+
Set it when the export parses or validates EDI files; omit it otherwise. Accepted on the
|
|
16613
|
+
file-reading exports — FTP, AS2, S3 and HTTP file mode (`http.type: "file"`).
|
|
16614
|
+
x-celigo-ai-guidance:
|
|
16615
|
+
- 'An HTTP export accepts this field only in file mode (`http.type: "file"`, the folder mode of file-provider connectors such as Google Drive, Box, Dropbox, Azure Blob, Google Cloud Storage and Celigo Storage). On a REST/records HTTP export the save is rejected with `not_supported`: "EDIProfile can only be associated with the export of type FTP, AS2, S3 or HTTP file."'
|
|
16689
16616
|
examples:
|
|
16690
16617
|
- 60a2c4e6f321d800129a1a3c
|
|
16691
16618
|
_postParseListenerId:
|
|
@@ -16695,8 +16622,10 @@ components:
|
|
|
16695
16622
|
description: |-
|
|
16696
16623
|
Webhook export invoked once per file after EDI parsing, on both success and failure
|
|
16697
16624
|
(errors are included in the payload when parsing fails). Primarily used to send
|
|
16698
|
-
functional acknowledgements (997/999) to trading partners.
|
|
16699
|
-
|
|
16625
|
+
functional acknowledgements (997/999) to trading partners. Accepted on the file-reading
|
|
16626
|
+
exports that parse EDI — FTP, AS2, S3 and HTTP file mode (`http.type: "file"`).
|
|
16627
|
+
x-celigo-ai-guidance:
|
|
16628
|
+
- 'The listener must be an export with `type: "webhook"` and `webhook.provider: "integrator-extension"`; any other export id is rejected with `invalid_post_parse_listener`. On an HTTP export outside file mode the save is rejected with `post_parse_listener_not_supported`: "Listener for functional acknowledgment is only supported for AS2, FTP, S3 and HTTP file export."'
|
|
16700
16629
|
examples:
|
|
16701
16630
|
- 60a2c4e6f321d800129a1a3c
|
|
16702
16631
|
externalId:
|
|
@@ -16731,7 +16660,16 @@ components:
|
|
|
16731
16660
|
$ref: '#/components/schemas/PreSave'
|
|
16732
16661
|
assistant:
|
|
16733
16662
|
type: string
|
|
16734
|
-
description:
|
|
16663
|
+
description: |-
|
|
16664
|
+
Identifier for the connector assistant used to configure this export. For the cloud
|
|
16665
|
+
file providers it also selects the provider-specific location rules —
|
|
16666
|
+
`azuredatalakestoragegen2` (container in `file.directory.name`, path in
|
|
16667
|
+
`http.relativeURI`) and `googlecloudstorage` (bucket in `file.directory.storageRootId`,
|
|
16668
|
+
prefix in `file.directory.id`).
|
|
16669
|
+
examples:
|
|
16670
|
+
- shopify
|
|
16671
|
+
- azuredatalakestoragegen2
|
|
16672
|
+
- googlecloudstorage
|
|
16735
16673
|
assistantMetadata:
|
|
16736
16674
|
type:
|
|
16737
16675
|
- object
|
|
@@ -17035,7 +16973,8 @@ components:
|
|
|
17035
16973
|
description: |-
|
|
17036
16974
|
Fields that can be sent when creating or updating an export. Set the adaptor-specific
|
|
17037
16975
|
configuration object matching `adaptorType`, and the mode-specific object matching `type`.
|
|
17038
|
-
`SimpleExport` (data-loader) is the exception — it needs no adaptor config object.
|
|
16976
|
+
`SimpleExport` (data-loader) is the exception — it needs no adaptor config object. An Event
|
|
16977
|
+
Streams listener (`TopicExport`) carries `topic` and `type: stream` and no `_connectionId`.
|
|
17039
16978
|
required:
|
|
17040
16979
|
- name
|
|
17041
16980
|
allOf:
|
|
@@ -17049,6 +16988,64 @@ components:
|
|
|
17049
16988
|
then:
|
|
17050
16989
|
required:
|
|
17051
16990
|
- http
|
|
16991
|
+
if:
|
|
16992
|
+
properties:
|
|
16993
|
+
assistant:
|
|
16994
|
+
const: azuredatalakestoragegen2
|
|
16995
|
+
required:
|
|
16996
|
+
- assistant
|
|
16997
|
+
then:
|
|
16998
|
+
x-celigo-ui-override: 'Required by the Azure Data Lake Storage Gen2 export form (fieldDefinitions/resources/exports/azuredatalakestoragegen2.js: ''file.directory.storageRootId_adls'' is required:true and preSave persists it as file.directory.name; the directory path in http.relativeURI is required:false). Encoded to mirror the form so builders produce connectable configurations.'
|
|
16999
|
+
required:
|
|
17000
|
+
- file
|
|
17001
|
+
properties:
|
|
17002
|
+
file:
|
|
17003
|
+
required:
|
|
17004
|
+
- directory
|
|
17005
|
+
properties:
|
|
17006
|
+
directory:
|
|
17007
|
+
required:
|
|
17008
|
+
- name
|
|
17009
|
+
else:
|
|
17010
|
+
if:
|
|
17011
|
+
properties:
|
|
17012
|
+
assistant:
|
|
17013
|
+
const: googlecloudstorage
|
|
17014
|
+
required:
|
|
17015
|
+
- assistant
|
|
17016
|
+
then:
|
|
17017
|
+
x-celigo-ui-override: 'Required by the Google Cloud Storage export form (fieldDefinitions/resources/exports/googlecloudstorage.js: bucket ''file.directory.storageRootId_gcs'' is required:true and prefix ''file.directory.id'' is required:true; preSave forces file.directory.pathMode to directoryId). Encoded to mirror the form so builders produce connectable configurations.'
|
|
17018
|
+
required:
|
|
17019
|
+
- file
|
|
17020
|
+
properties:
|
|
17021
|
+
file:
|
|
17022
|
+
required:
|
|
17023
|
+
- directory
|
|
17024
|
+
properties:
|
|
17025
|
+
directory:
|
|
17026
|
+
required:
|
|
17027
|
+
- storageRootId
|
|
17028
|
+
- id
|
|
17029
|
+
else:
|
|
17030
|
+
if:
|
|
17031
|
+
required:
|
|
17032
|
+
- http
|
|
17033
|
+
properties:
|
|
17034
|
+
http:
|
|
17035
|
+
required:
|
|
17036
|
+
- type
|
|
17037
|
+
properties:
|
|
17038
|
+
type:
|
|
17039
|
+
const: file
|
|
17040
|
+
not:
|
|
17041
|
+
required:
|
|
17042
|
+
- formType
|
|
17043
|
+
properties:
|
|
17044
|
+
formType:
|
|
17045
|
+
const: assistant
|
|
17046
|
+
then:
|
|
17047
|
+
required:
|
|
17048
|
+
- file
|
|
17052
17049
|
else:
|
|
17053
17050
|
if:
|
|
17054
17051
|
properties:
|
|
@@ -17101,92 +17098,133 @@ components:
|
|
|
17101
17098
|
if:
|
|
17102
17099
|
properties:
|
|
17103
17100
|
adaptorType:
|
|
17104
|
-
const:
|
|
17101
|
+
const: NetSuiteHTTPExport
|
|
17105
17102
|
required:
|
|
17106
17103
|
- adaptorType
|
|
17107
17104
|
then:
|
|
17108
17105
|
required:
|
|
17109
|
-
-
|
|
17106
|
+
- http
|
|
17107
|
+
- nsDomainType
|
|
17110
17108
|
else:
|
|
17111
17109
|
if:
|
|
17112
17110
|
properties:
|
|
17113
17111
|
adaptorType:
|
|
17114
|
-
const:
|
|
17112
|
+
const: SalesforceExport
|
|
17115
17113
|
required:
|
|
17116
17114
|
- adaptorType
|
|
17117
17115
|
then:
|
|
17118
17116
|
required:
|
|
17119
|
-
-
|
|
17117
|
+
- salesforce
|
|
17120
17118
|
else:
|
|
17121
17119
|
if:
|
|
17122
17120
|
properties:
|
|
17123
17121
|
adaptorType:
|
|
17124
|
-
const:
|
|
17122
|
+
const: JDBCExport
|
|
17125
17123
|
required:
|
|
17126
17124
|
- adaptorType
|
|
17127
17125
|
then:
|
|
17128
17126
|
required:
|
|
17129
|
-
-
|
|
17127
|
+
- jdbc
|
|
17130
17128
|
else:
|
|
17131
17129
|
if:
|
|
17132
17130
|
properties:
|
|
17133
17131
|
adaptorType:
|
|
17134
|
-
const:
|
|
17132
|
+
const: RDBMSExport
|
|
17135
17133
|
required:
|
|
17136
17134
|
- adaptorType
|
|
17137
17135
|
then:
|
|
17138
17136
|
required:
|
|
17139
|
-
-
|
|
17137
|
+
- rdbms
|
|
17140
17138
|
else:
|
|
17141
17139
|
if:
|
|
17142
17140
|
properties:
|
|
17143
17141
|
adaptorType:
|
|
17144
|
-
const:
|
|
17142
|
+
const: MongodbExport
|
|
17145
17143
|
required:
|
|
17146
17144
|
- adaptorType
|
|
17147
17145
|
then:
|
|
17148
|
-
|
|
17149
|
-
|
|
17146
|
+
if:
|
|
17147
|
+
properties:
|
|
17148
|
+
type:
|
|
17149
|
+
const: stream
|
|
17150
|
+
required:
|
|
17151
|
+
- type
|
|
17152
|
+
then:
|
|
17153
|
+
required:
|
|
17154
|
+
- cdc
|
|
17155
|
+
else:
|
|
17156
|
+
required:
|
|
17157
|
+
- mongodb
|
|
17158
|
+
properties:
|
|
17159
|
+
mongodb:
|
|
17160
|
+
required:
|
|
17161
|
+
- method
|
|
17162
|
+
- collection
|
|
17150
17163
|
else:
|
|
17151
17164
|
if:
|
|
17152
17165
|
properties:
|
|
17153
17166
|
adaptorType:
|
|
17154
|
-
const:
|
|
17167
|
+
const: DynamodbExport
|
|
17155
17168
|
required:
|
|
17156
17169
|
- adaptorType
|
|
17157
17170
|
then:
|
|
17158
17171
|
required:
|
|
17159
|
-
-
|
|
17172
|
+
- dynamodb
|
|
17160
17173
|
else:
|
|
17161
17174
|
if:
|
|
17162
17175
|
properties:
|
|
17163
17176
|
adaptorType:
|
|
17164
|
-
const:
|
|
17177
|
+
const: WrapperExport
|
|
17165
17178
|
required:
|
|
17166
17179
|
- adaptorType
|
|
17167
17180
|
then:
|
|
17168
17181
|
required:
|
|
17169
|
-
-
|
|
17182
|
+
- wrapper
|
|
17170
17183
|
else:
|
|
17171
17184
|
if:
|
|
17172
17185
|
properties:
|
|
17173
17186
|
adaptorType:
|
|
17174
|
-
const:
|
|
17187
|
+
const: WebhookExport
|
|
17175
17188
|
required:
|
|
17176
17189
|
- adaptorType
|
|
17177
17190
|
then:
|
|
17178
17191
|
required:
|
|
17179
|
-
-
|
|
17192
|
+
- webhook
|
|
17180
17193
|
else:
|
|
17181
17194
|
if:
|
|
17182
17195
|
properties:
|
|
17183
17196
|
adaptorType:
|
|
17184
|
-
const:
|
|
17197
|
+
const: FileSystemExport
|
|
17185
17198
|
required:
|
|
17186
17199
|
- adaptorType
|
|
17187
17200
|
then:
|
|
17188
17201
|
required:
|
|
17189
|
-
-
|
|
17202
|
+
- filesystem
|
|
17203
|
+
else:
|
|
17204
|
+
if:
|
|
17205
|
+
properties:
|
|
17206
|
+
adaptorType:
|
|
17207
|
+
const: RESTExport
|
|
17208
|
+
required:
|
|
17209
|
+
- adaptorType
|
|
17210
|
+
then:
|
|
17211
|
+
required:
|
|
17212
|
+
- http
|
|
17213
|
+
else:
|
|
17214
|
+
if:
|
|
17215
|
+
properties:
|
|
17216
|
+
adaptorType:
|
|
17217
|
+
const: TopicExport
|
|
17218
|
+
required:
|
|
17219
|
+
- adaptorType
|
|
17220
|
+
then:
|
|
17221
|
+
x-celigo-ui-override: 'Required by the Event Streams listener form (fieldDefinitions/resources/exports/export.js: ''topic._topicId'' is required:true). Encoded to mirror the form so builders produce listeners that are bound to a topic.'
|
|
17222
|
+
required:
|
|
17223
|
+
- topic
|
|
17224
|
+
properties:
|
|
17225
|
+
topic:
|
|
17226
|
+
required:
|
|
17227
|
+
- _topicId
|
|
17190
17228
|
Error:
|
|
17191
17229
|
type: object
|
|
17192
17230
|
description: Standard error response envelope returned by integrator.io APIs.
|
|
@@ -17456,6 +17494,13 @@ components:
|
|
|
17456
17494
|
description: Display name of the dependent resource.
|
|
17457
17495
|
examples:
|
|
17458
17496
|
- Import Orders to NetSuite
|
|
17497
|
+
type:
|
|
17498
|
+
type: string
|
|
17499
|
+
description: |-
|
|
17500
|
+
Sub-type of the dependent resource when its collection distinguishes one, such as
|
|
17501
|
+
`stream` for a listener export. Only present for resource types that carry a `type`.
|
|
17502
|
+
examples:
|
|
17503
|
+
- stream
|
|
17459
17504
|
paths:
|
|
17460
17505
|
type: array
|
|
17461
17506
|
description: |-
|