@celigo/api-specs 0.2.80 → 0.2.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-agent.yml +55 -20
- package/dist/export.yml +147 -743
- package/dist/flow.yml +55 -20
- package/dist/tool.yml +169 -750
- package/package.json +1 -1
- package/schemas.json +2 -2
package/dist/export.yml
CHANGED
|
@@ -10998,13 +10998,20 @@ components:
|
|
|
10998
10998
|
`netsuite.skipGrouping: true` — without it the run fails with `[search_not_sorted]`).
|
|
10999
10999
|
distributed:
|
|
11000
11000
|
type: object
|
|
11001
|
+
x-celigo-ai-guidance:
|
|
11002
|
+
- |-
|
|
11003
|
+
A real-time listener is an export with top-level `type: distributed` and
|
|
11004
|
+
`netsuite.type: distributed`. Saving it creates a user event script deployment on the
|
|
11005
|
+
record type that runs after submit, so records arrive only when NetSuite saves one and
|
|
11006
|
+
`POST /v1/exports/preview` cannot sample it.
|
|
11001
11007
|
properties:
|
|
11002
11008
|
recordType:
|
|
11003
11009
|
type: string
|
|
11004
11010
|
description: |-
|
|
11005
|
-
NetSuite record type the
|
|
11006
|
-
|
|
11007
|
-
|
|
11011
|
+
NetSuite record type the listener is deployed on, as its lowercase script ID
|
|
11012
|
+
(`customer`, `salesorder`, `customrecord_<scriptid>`) — never the display name or a
|
|
11013
|
+
custom record's numeric internal ID. Types the platform's record-type catalog marks
|
|
11014
|
+
`doesNotSupportRTExport` cannot host a listener and are not offered in the UI.
|
|
11008
11015
|
examples:
|
|
11009
11016
|
- customer
|
|
11010
11017
|
- invoice
|
|
@@ -11016,23 +11023,9 @@ components:
|
|
|
11016
11023
|
- creditmemo
|
|
11017
11024
|
x-celigo-ai-guidance:
|
|
11018
11025
|
- |-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
- |-
|
|
11023
|
-
## EXAMPLES:
|
|
11024
|
-
- "customer"
|
|
11025
|
-
- "invoice"
|
|
11026
|
-
- "salesorder"
|
|
11027
|
-
- "itemfulfillment"
|
|
11028
|
-
- "vendorbill"
|
|
11029
|
-
- "employee"
|
|
11030
|
-
- "purchaseorder"
|
|
11031
|
-
- "creditmemo"
|
|
11032
|
-
- |-
|
|
11033
|
-
## IMPORTANT NOTES:
|
|
11034
|
-
- Must be lowercase script ID, not the display name
|
|
11035
|
-
- Custom record types use format "customrecord_scriptid"
|
|
11026
|
+
Take the value from the `recordTypes` metadata catalog row's `scriptId`, lower-cased:
|
|
11027
|
+
custom records and lists carry NetSuite's numeric internal ID in `id` and the script
|
|
11028
|
+
ID in `scriptId`, so `id` is wrong for them. Skip rows with `doesNotSupportRTExport: true`.
|
|
11036
11029
|
executionContext:
|
|
11037
11030
|
type: array
|
|
11038
11031
|
description: |-
|
|
@@ -11040,34 +11033,10 @@ components:
|
|
|
11040
11033
|
fires the export only when it occurs in one of the listed contexts.
|
|
11041
11034
|
x-celigo-ai-guidance:
|
|
11042
11035
|
- |-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
## DEFAULT VALUE
|
|
11048
|
-
If not specified, defaults to: ["userinterface", "webstore"]
|
|
11049
|
-
- |-
|
|
11050
|
-
## VALID VALUES
|
|
11051
|
-
- "userinterface" - User interactions in the NetSuite UI
|
|
11052
|
-
- "webservices" - SOAP web services calls
|
|
11053
|
-
- "csvimport" - CSV import operations
|
|
11054
|
-
- "offlineclient" - Offline client synchronization
|
|
11055
|
-
- "portlet" - Portlet interactions
|
|
11056
|
-
- "scheduled" - Scheduled script executions
|
|
11057
|
-
- "suitelet" - Suitelet executions
|
|
11058
|
-
- "custommassupdate" - Custom mass update operations
|
|
11059
|
-
- "workflow" - Workflow actions
|
|
11060
|
-
- "webstore" - Web store transactions
|
|
11061
|
-
- "userevent" - User event script triggers
|
|
11062
|
-
- "mapreduce" - Map/Reduce script operations
|
|
11063
|
-
- "restlet" - RESTlet API calls
|
|
11064
|
-
- "webapplication" - Web application interactions
|
|
11065
|
-
- "restwebservices" - REST web services calls
|
|
11066
|
-
- |-
|
|
11067
|
-
## EXAMPLE
|
|
11068
|
-
```json
|
|
11069
|
-
["userinterface", "webstore"]
|
|
11070
|
-
```
|
|
11036
|
+
Defaults to `userinterface` and `webstore` — the manual, time-sensitive saves a
|
|
11037
|
+
real-time export exists for. Bulk contexts such as `csvimport`, `custommassupdate`
|
|
11038
|
+
and `mapreduce` turn every record of a mass update into an outbound call and flood
|
|
11039
|
+
the flow with records a scheduled export would batch; add them only when asked.
|
|
11071
11040
|
default:
|
|
11072
11041
|
- userinterface
|
|
11073
11042
|
- webstore
|
|
@@ -11108,50 +11077,13 @@ components:
|
|
|
11108
11077
|
disabled:
|
|
11109
11078
|
type: boolean
|
|
11110
11079
|
description: |-
|
|
11111
|
-
When true,
|
|
11112
|
-
|
|
11080
|
+
When true, the listener's NetSuite deployment is inactive and record saves no longer
|
|
11081
|
+
trigger the export. Maintained by the platform as the flow is disabled and re-enabled;
|
|
11082
|
+
re-enabling the flow re-registers the deployment.
|
|
11113
11083
|
x-celigo-ai-guidance:
|
|
11114
11084
|
- |-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
This boolean flag controls the availability and operational status of the
|
|
11118
|
-
distributed functionalities within the NetSuite integration,
|
|
11119
|
-
allowing administrators or systems to enable or disable these features as needed.
|
|
11120
|
-
- |-
|
|
11121
|
-
## FIELD BEHAVIOR:
|
|
11122
|
-
- When set to true, the distributed feature is fully disabled, preventing any distributed operations or workflows from executing.
|
|
11123
|
-
- When set to false or omitted, the distributed feature remains enabled and fully operational.
|
|
11124
|
-
- Acts as a toggle switch to control the accessibility of distributed capabilities within the NetSuite environment.
|
|
11125
|
-
- Changes to this flag directly influence the behavior of distributed-related processes and integrations.
|
|
11126
|
-
- |-
|
|
11127
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11128
|
-
- Use a boolean value: `true` to disable the distributed feature, `false` to enable it.
|
|
11129
|
-
- Before disabling, verify that no critical processes depend on distributed functionality to avoid disruptions.
|
|
11130
|
-
- Implement validation checks to confirm the current state before initiating distributed operations.
|
|
11131
|
-
- Provide clear user notifications or system logs when the feature is disabled to aid in troubleshooting and auditing.
|
|
11132
|
-
- Consider the impact on dependent modules and ensure coordinated updates if disabling this feature.
|
|
11133
|
-
- |-
|
|
11134
|
-
## EXAMPLES:
|
|
11135
|
-
- `disabled: true` # The distributed feature is turned off, disabling all related operations.
|
|
11136
|
-
- `disabled: false` # The distributed feature is active and available for use.
|
|
11137
|
-
- Omitted `disabled` property defaults to `false`, enabling the feature by default.
|
|
11138
|
-
- |-
|
|
11139
|
-
## IMPORTANT NOTES:
|
|
11140
|
-
- Disabling this feature may interrupt workflows or processes that rely on distributed capabilities, potentially causing failures or delays.
|
|
11141
|
-
- Some systems may require a restart or reinitialization after changing this setting for the change to take full effect.
|
|
11142
|
-
- Modifying this property should be restricted to users with appropriate permissions to prevent unauthorized disruptions.
|
|
11143
|
-
- Always assess the broader impact on the NetSuite integration before toggling this flag.
|
|
11144
|
-
- |-
|
|
11145
|
-
## DEPENDENCY CHAIN:
|
|
11146
|
-
- Directly affects modules and properties that rely on distributed functionality within the NetSuite integration.
|
|
11147
|
-
- Should be checked and respected by any API calls, workflows, or processes that involve distributed features.
|
|
11148
|
-
- May influence error handling and fallback mechanisms in distributed-related operations.
|
|
11149
|
-
- |-
|
|
11150
|
-
## TECHNICAL DETAILS:
|
|
11151
|
-
- Data type: Boolean
|
|
11152
|
-
- Default value: `false` (distributed feature enabled)
|
|
11153
|
-
- Located under the `netsuite.distributed` namespace in the API schema
|
|
11154
|
-
- Changing this property triggers state changes in distributed feature availability within the system
|
|
11085
|
+
Pause a listener by disabling its flow, not by setting this field. A listener that has
|
|
11086
|
+
stopped firing is re-registered by disabling and re-enabling the flow.
|
|
11155
11087
|
executionType:
|
|
11156
11088
|
type: array
|
|
11157
11089
|
description: |-
|
|
@@ -11159,39 +11091,13 @@ components:
|
|
|
11159
11091
|
export only when its operation matches one of the listed types.
|
|
11160
11092
|
x-celigo-ai-guidance:
|
|
11161
11093
|
- |-
|
|
11162
|
-
|
|
11163
|
-
|
|
11164
|
-
|
|
11165
|
-
- |-
|
|
11166
|
-
## DEFAULT VALUE
|
|
11167
|
-
If not specified, defaults to: ["create", "edit", "xedit"]
|
|
11168
|
-
- |-
|
|
11169
|
-
## VALID VALUES
|
|
11170
|
-
- "create" - New record creation
|
|
11171
|
-
- "edit" - Record editing via UI
|
|
11172
|
-
- "delete" - Record deletion
|
|
11173
|
-
- "xedit" - Inline editing (edit without opening the record)
|
|
11174
|
-
- "copy" - Record copy operation
|
|
11175
|
-
- "view" - Record view
|
|
11176
|
-
- "cancel" - Transaction cancellation
|
|
11177
|
-
- "approve" - Approval action
|
|
11178
|
-
- "reject" - Rejection action
|
|
11179
|
-
- "pack" - Pack operation (fulfillment)
|
|
11180
|
-
- "ship" - Ship operation (fulfillment)
|
|
11181
|
-
- "markcomplete" - Mark as complete
|
|
11182
|
-
- "reassign" - Reassignment action
|
|
11183
|
-
- "editforecast" - Forecast editing
|
|
11184
|
-
- "dropship" - Drop ship operation
|
|
11185
|
-
- "specialorder" - Special order operation
|
|
11186
|
-
- "orderitems" - Order items action
|
|
11187
|
-
- "paybills" - Pay bills action
|
|
11188
|
-
- "print" - Print action
|
|
11189
|
-
- "email" - Email action
|
|
11094
|
+
Defaults to `create`, `edit` and `xedit` (inline edit) — new records plus every way
|
|
11095
|
+
an existing record changes. Narrow it for event-driven work: Celigo's own example
|
|
11096
|
+
exports a sales order only on `approve` to notify a chat channel.
|
|
11190
11097
|
- |-
|
|
11191
|
-
|
|
11192
|
-
|
|
11193
|
-
|
|
11194
|
-
```
|
|
11098
|
+
The UI offers thirteen of these values (`create`, `edit`, `delete`, `xedit`,
|
|
11099
|
+
`approve`, `cancel`, `reject`, `pack`, `ship`, `dropship`, `specialorder`,
|
|
11100
|
+
`orderitems`, `paybills`); the API accepts all twenty.
|
|
11195
11101
|
default:
|
|
11196
11102
|
- create
|
|
11197
11103
|
- edit
|
|
@@ -11246,692 +11152,171 @@ components:
|
|
|
11246
11152
|
- string
|
|
11247
11153
|
- 'null'
|
|
11248
11154
|
description: |-
|
|
11249
|
-
|
|
11250
|
-
|
|
11251
|
-
|
|
11155
|
+
Field-specific qualification criteria the SuiteApp evaluates against the record before
|
|
11156
|
+
exporting it; saves that do not match are discarded. Stored as a filter-expression array
|
|
11157
|
+
of `[field, operator, value]` rules joined by lowercase `"and"` / `"or"`, as a legacy
|
|
11158
|
+
expression string, or null when no criteria are set.
|
|
11159
|
+
examples:
|
|
11160
|
+
- - custrecord_ai_entitlements_status_code
|
|
11161
|
+
- '!='
|
|
11162
|
+
- '200'
|
|
11163
|
+
- - - val:entity
|
|
11164
|
+
- '='
|
|
11165
|
+
- '1397'
|
|
11166
|
+
- and
|
|
11167
|
+
- - shipstatus
|
|
11168
|
+
- '='
|
|
11169
|
+
- C
|
|
11252
11170
|
x-celigo-ai-guidance:
|
|
11253
11171
|
- |-
|
|
11254
|
-
|
|
11255
|
-
A
|
|
11256
|
-
categorizes,
|
|
11257
|
-
or scopes the associated data within the NetSuite distributed context.
|
|
11258
|
-
This property enables more granular identification, filtering,
|
|
11259
|
-
and processing of data by applying specific criteria or attributes relevant to business logic,
|
|
11260
|
-
integration workflows, or operational requirements.
|
|
11261
|
-
It serves as an optional but powerful tool to distinguish data subsets,
|
|
11262
|
-
enhance data semantics,
|
|
11263
|
-
and support conditional handling in distributed NetSuite environments.
|
|
11172
|
+
Rules combine strictly pairwise: three conditions are stored as
|
|
11173
|
+
`[A, "and", [B, "and", C]]`, never as a flat `[A, "and", B, "and", C]`.
|
|
11264
11174
|
- |-
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
11268
|
-
|
|
11269
|
-
- Accepts string values that correspond to predefined, standardized, or custom qualifiers recognized by the system or integration layer.
|
|
11270
|
-
- Supports multiple use cases including regional segmentation, priority tagging, type classification, and channel identification.
|
|
11175
|
+
The left operand is a body field ID; sublist (line) fields cannot be used. A select
|
|
11176
|
+
field takes a prefix: `text:<field>` compares the option's label (the UI's "(Name)"
|
|
11177
|
+
row) and `val:<field>` the internal ID (the "(InternalId)" row — `entity.internalid`
|
|
11178
|
+
is stored as `val:entity`); multiselects use `texts:` / `vals:`.
|
|
11271
11179
|
- |-
|
|
11272
|
-
|
|
11273
|
-
|
|
11274
|
-
-
|
|
11275
|
-
|
|
11276
|
-
- Maintain comprehensive documentation of all custom and standard qualifiers used, including their intended meaning and usage scenarios, to facilitate maintenance, troubleshooting, and future integrations.
|
|
11277
|
-
- Consider the impact of qualifiers on downstream processing, reporting, and analytics to ensure they are leveraged effectively and do not introduce ambiguity.
|
|
11278
|
-
- |-
|
|
11279
|
-
## EXAMPLES:
|
|
11280
|
-
- "region-us" to specify data related to the United States region.
|
|
11281
|
-
- "priority-high" to indicate transactions or records with high priority status.
|
|
11282
|
-
- "type-inventory" to qualify records associated with inventory management.
|
|
11283
|
-
- "channel-online" to denote sales or operations conducted through online channels.
|
|
11284
|
-
- "segment-enterprise" to classify data pertaining to enterprise-level customers.
|
|
11285
|
-
- "status-active" to filter or identify active records within a dataset.
|
|
11180
|
+
Operator tokens are `=`, `!=`, `?` (like), `contains`, `doesNotContain`, `>` and
|
|
11181
|
+
`<` (the HTML entities, literally); emptiness is the rule `[field, "empty", true]`
|
|
11182
|
+
and non-emptiness `[field, "empty", false]`. Checkbox values are `"T"` / `"F"` on
|
|
11183
|
+
SuiteBundle and SuiteApp 1.0 steps and boolean `true` / `false` on `suiteapp2.0` steps.
|
|
11286
11184
|
- |-
|
|
11287
|
-
|
|
11288
|
-
|
|
11289
|
-
|
|
11290
|
-
-
|
|
11185
|
+
The UI's value dropdown for a select field is NetSuite's own option list for that
|
|
11186
|
+
field on that record type, capped at the first 1,000 options alphabetically — a value
|
|
11187
|
+
missing from the dropdown can still exist in NetSuite. Read the list through the
|
|
11188
|
+
record-type metadata endpoint with `includeSelectOptions=true` before judging it.
|
|
11291
11189
|
skipExportFieldId:
|
|
11292
11190
|
type: string
|
|
11293
11191
|
description: |-
|
|
11294
|
-
ID of
|
|
11295
|
-
|
|
11192
|
+
Script ID of a checkbox body field on the record type. A save with that box checked is
|
|
11193
|
+
skipped by the listener, which then clears the box itself — used to keep a mass update
|
|
11194
|
+
from fanning out and to stop a write-back import from re-triggering the listener.
|
|
11296
11195
|
x-celigo-ai-guidance:
|
|
11297
11196
|
- |-
|
|
11298
|
-
|
|
11299
|
-
|
|
11300
|
-
excluded from export processes.
|
|
11301
|
-
It serves as a control mechanism to selectively omit data associated with
|
|
11302
|
-
particular fields during export operations,
|
|
11303
|
-
enabling tailored and efficient data handling.
|
|
11304
|
-
- |-
|
|
11305
|
-
## FIELD BEHAVIOR:
|
|
11306
|
-
- Acts as a flag or marker to skip exporting data associated with the specified field ID.
|
|
11307
|
-
- When set, the export routines will omit the data linked to this field from being included in the export payload.
|
|
11308
|
-
- Helps control and customize the export behavior on a per-field basis within distributed NetSuite configurations.
|
|
11309
|
-
- Does not affect data visibility or storage within NetSuite; it only influences export output.
|
|
11310
|
-
- Supports multiple uses in scenarios where sensitive, redundant, or irrelevant data should be excluded from exports.
|
|
11311
|
-
- |-
|
|
11312
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11313
|
-
- Ensure the field ID provided corresponds to a valid and existing field within the NetSuite schema to prevent export errors.
|
|
11314
|
-
- Use this property to optimize export operations by excluding unnecessary or sensitive data fields, improving performance and compliance.
|
|
11315
|
-
- Validate the field ID format and existence before applying it to avoid runtime issues during export.
|
|
11316
|
-
- Integrate with export logic to check this property before including fields in the export output, ensuring consistent behavior.
|
|
11317
|
-
- Consider maintaining a centralized list or configuration of skipExportFieldIds for easier management and auditing.
|
|
11318
|
-
- |-
|
|
11319
|
-
## EXAMPLES:
|
|
11320
|
-
- skipExportFieldId: "custbody_internal_notes" (skips exporting the internal notes custom field)
|
|
11321
|
-
- skipExportFieldId: "item_custom_field_123" (excludes a specific item custom field from export)
|
|
11322
|
-
- skipExportFieldId: "custentity_sensitive_data" (prevents export of sensitive customer entity data)
|
|
11323
|
-
- |-
|
|
11324
|
-
## IMPORTANT NOTES:
|
|
11325
|
-
- This property only affects export operations and does not alter data storage or visibility within NetSuite.
|
|
11326
|
-
- Misconfiguration may lead to incomplete data exports if critical fields are skipped unintentionally, potentially impacting downstream processes.
|
|
11327
|
-
- Should be used judiciously to maintain data integrity and compliance with business rules and regulatory requirements.
|
|
11328
|
-
- Changes to this property should be documented and reviewed to avoid unintended data omissions.
|
|
11329
|
-
- |-
|
|
11330
|
-
## DEPENDENCY CHAIN
|
|
11331
|
-
- Depends on the existence and validity of the specified field ID within the NetSuite schema.
|
|
11332
|
-
- Relies on export routines to check and respect this property during data export processes.
|
|
11333
|
-
- May interact with other export configuration settings that control data inclusion/exclusion.
|
|
11197
|
+
For a bidirectional sync, have the write-back import set this checkbox to true in the
|
|
11198
|
+
same save: the listener skips that save and unchecks the box, breaking the loop.
|
|
11334
11199
|
hooks:
|
|
11335
11200
|
type: object
|
|
11201
|
+
description: SuiteScript hook that runs inside NetSuite before the record leaves it.
|
|
11336
11202
|
properties:
|
|
11337
11203
|
preSend:
|
|
11338
11204
|
type: object
|
|
11205
|
+
description: |-
|
|
11206
|
+
Pre-send hook: a SuiteScript function in the NetSuite file cabinet invoked before
|
|
11207
|
+
records leave NetSuite, with the full SuiteScript API available — for example to run
|
|
11208
|
+
dynamic searches against the record being exported.
|
|
11209
|
+
x-celigo-ai-guidance:
|
|
11210
|
+
- |-
|
|
11211
|
+
The hook's SuiteScript version must match the step's `frameworkVersion` (1.0 and
|
|
11212
|
+
2.x are not interchangeable); migrating a step to another version means rewriting
|
|
11213
|
+
the hook as a separate task.
|
|
11339
11214
|
properties:
|
|
11340
11215
|
fileInternalId:
|
|
11341
11216
|
type: string
|
|
11342
|
-
description: Internal ID of the file
|
|
11217
|
+
description: Internal ID of the file cabinet file that holds the hook's SuiteScript.
|
|
11343
11218
|
examples:
|
|
11344
11219
|
- '12345'
|
|
11345
11220
|
- '987654'
|
|
11346
|
-
- '1001'
|
|
11347
|
-
x-celigo-ai-guidance:
|
|
11348
|
-
- |-
|
|
11349
|
-
fileInternalId:
|
|
11350
|
-
The unique internal identifier assigned to a file within the NetSuite system.
|
|
11351
|
-
This identifier is essential for accurately referencing and manipulating a
|
|
11352
|
-
specific file during various operations such as retrieval,
|
|
11353
|
-
update, or deletion within NetSuite's environment.
|
|
11354
|
-
It acts as a primary key that ensures precise targeting of files in automated workflows,
|
|
11355
|
-
scripts, and API calls.
|
|
11356
|
-
- |-
|
|
11357
|
-
## FIELD BEHAVIOR:
|
|
11358
|
-
- Serves as a unique and immutable key to identify a file in the NetSuite file cabinet.
|
|
11359
|
-
- Utilized in pre-send hooks and other automation points to specify the exact file being processed or referenced.
|
|
11360
|
-
- Must correspond to an existing file's internal ID within the NetSuite account to ensure valid operations.
|
|
11361
|
-
- Enables consistent and reliable file operations by linking actions directly to the file's system-assigned identifier.
|
|
11362
|
-
- |-
|
|
11363
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11364
|
-
- Always ensure the value is a valid integer that corresponds to an existing file's internal ID in NetSuite.
|
|
11365
|
-
- Validate the internal ID before performing any file operations to avoid runtime errors or failed transactions.
|
|
11366
|
-
- Use this ID when invoking NetSuite APIs, SuiteScript, or other integration points to fetch, update, or delete files.
|
|
11367
|
-
- Avoid hardcoding the internal ID; instead, dynamically retrieve it through queries or API calls to maintain adaptability and reduce maintenance overhead.
|
|
11368
|
-
- Handle exceptions gracefully when the ID does not correspond to any file, providing meaningful error messages or fallback logic.
|
|
11369
|
-
- |-
|
|
11370
|
-
## EXAMPLES:
|
|
11371
|
-
- 12345
|
|
11372
|
-
- 987654
|
|
11373
|
-
- 1001
|
|
11374
|
-
- |-
|
|
11375
|
-
## IMPORTANT NOTES:
|
|
11376
|
-
- The internal ID is system-generated by NetSuite and guaranteed to be unique within the account.
|
|
11377
|
-
- This ID is distinct from file names, external URLs, or folder identifiers and should not be confused with them.
|
|
11378
|
-
- Using an incorrect or non-existent internal ID will cause operations to fail, potentially interrupting workflows.
|
|
11379
|
-
- The internal ID remains constant for the lifetime of the file and does not change even if the file is moved or renamed.
|
|
11380
|
-
- |-
|
|
11381
|
-
## DEPENDENCY CHAIN:
|
|
11382
|
-
- Depends on the file existing in the NetSuite file cabinet prior to referencing.
|
|
11383
|
-
- Often used alongside related properties such as file name, folder ID, file type, or metadata to provide context or additional filtering.
|
|
11384
|
-
- May be required input for downstream processes that manipulate or validate file contents.
|
|
11385
|
-
- |-
|
|
11386
|
-
## TECHNICAL DETAILS:
|
|
11387
|
-
- Represented as an integer value assigned by NetSuite upon file creation.
|
|
11388
|
-
- Immutable once assigned; cannot be altered or reassigned to a different file.
|
|
11389
|
-
- Used internally by NetSuite APIs, SuiteScript, and integration
|
|
11390
11221
|
function:
|
|
11391
11222
|
type: string
|
|
11392
|
-
description:
|
|
11393
|
-
Name of the function invoked as the preSend hook. The function can validate
|
|
11394
|
-
or modify the payload before it is sent.
|
|
11223
|
+
description: Name of the function in that file to invoke for each export.
|
|
11395
11224
|
examples:
|
|
11396
|
-
-
|
|
11397
|
-
- sanitizePayloadBeforeSend
|
|
11398
|
-
- logPreSendActivity
|
|
11399
|
-
- customAuthorizationCheck
|
|
11225
|
+
- preSendCustomer
|
|
11400
11226
|
- enrichOrderDetails
|
|
11401
|
-
- checkInventoryAvailability
|
|
11402
|
-
x-celigo-ai-guidance:
|
|
11403
|
-
- '## DEPENDENCY'
|
|
11404
|
-
- |-
|
|
11405
|
-
function:
|
|
11406
|
-
> Specifies the name of the custom function to be executed as a pre-send hook
|
|
11407
|
-
within the NetSuite distributed system.
|
|
11408
|
-
This function is invoked immediately before sending data or requests,
|
|
11409
|
-
allowing for custom processing, validation,
|
|
11410
|
-
or modification of the payload to ensure data integrity and compliance with business rules.
|
|
11411
|
-
- |-
|
|
11412
|
-
## FIELD BEHAVIOR:
|
|
11413
|
-
- Defines the exact function to be called prior to sending data or requests.
|
|
11414
|
-
- Enables interception, inspection, and manipulation of data before transmission.
|
|
11415
|
-
- Supports integration of custom business logic, validation, enrichment, or logging steps.
|
|
11416
|
-
- Must reference a valid, accessible function within the current execution context or environment.
|
|
11417
|
-
- The function's execution outcome can influence whether the sending process proceeds, is modified, or is aborted.
|
|
11418
|
-
- |-
|
|
11419
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11420
|
-
- Ensure the function name corresponds exactly to a defined function in the codebase, script environment, or registered hooks.
|
|
11421
|
-
- The function should accept the expected input parameters (such as the payload or context) and return appropriate results or modifications.
|
|
11422
|
-
- Implement robust error handling within the function to prevent unhandled exceptions that could disrupt the sending workflow.
|
|
11423
|
-
- Document the function's purpose, input/output contract, and side effects clearly for maintainability and future reference.
|
|
11424
|
-
- Validate that the function executes efficiently and completes promptly to avoid introducing latency or blocking the sending process.
|
|
11425
|
-
- If asynchronous operations are necessary, ensure they are properly awaited or handled to guarantee completion before sending.
|
|
11426
|
-
- Follow consistent naming conventions aligned with the overall codebase or organizational standards.
|
|
11427
|
-
- |-
|
|
11428
|
-
## EXAMPLES:
|
|
11429
|
-
- "validateCustomerData"
|
|
11430
|
-
- "sanitizePayloadBeforeSend"
|
|
11431
|
-
- "logPreSendActivity"
|
|
11432
|
-
- "customAuthorizationCheck"
|
|
11433
|
-
- "enrichOrderDetails"
|
|
11434
|
-
- "checkInventoryAvailability"
|
|
11435
|
-
- |-
|
|
11436
|
-
## IMPORTANT NOTES:
|
|
11437
|
-
- The function must be synchronous or correctly handle asynchronous behavior to ensure it completes before the send operation proceeds.
|
|
11438
|
-
- If the function throws an error or returns a failure state, it may block, modify, or abort the sending process depending on the implementation.
|
|
11439
|
-
- Avoid performing long-running or blocking operations within the function to maintain system responsiveness.
|
|
11440
|
-
- The function should not perform irreversible side effects unless explicitly intended, as it runs prior to data transmission.
|
|
11441
|
-
- Ensure the function does not introduce security vulnerabilities, such as exposing sensitive data or allowing injection attacks.
|
|
11442
|
-
- Consistent and clear error reporting within the function aids in troubleshooting and operational monitoring.
|
|
11443
11227
|
configuration:
|
|
11444
11228
|
type: object
|
|
11445
|
-
description: Settings
|
|
11446
|
-
x-celigo-ai-guidance:
|
|
11447
|
-
- |-
|
|
11448
|
-
configuration:
|
|
11449
|
-
> Configuration settings for the preSend hook in the NetSuite distributed system.
|
|
11450
|
-
This property defines the parameters and options that control the behavior and
|
|
11451
|
-
execution of the preSend hook,
|
|
11452
|
-
allowing customization of how data is processed before being sent.
|
|
11453
|
-
It enables fine-tuning of operational aspects such as retries, timeouts,
|
|
11454
|
-
validation rules, logging,
|
|
11455
|
-
and payload constraints to ensure reliable and efficient data transmission.
|
|
11456
|
-
- |-
|
|
11457
|
-
## FIELD BEHAVIOR:
|
|
11458
|
-
- Specifies the customizable settings that dictate how the preSend hook operates.
|
|
11459
|
-
- Controls data manipulation, validation, and preparation steps prior to sending.
|
|
11460
|
-
- Can include flags, thresholds, retry policies, timeout durations, logging options, and other operational parameters.
|
|
11461
|
-
- May be optional or mandatory depending on the specific implementation and requirements of the preSend hook.
|
|
11462
|
-
- Supports nested configuration objects to allow detailed and structured settings.
|
|
11463
|
-
- |-
|
|
11464
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11465
|
-
- Define clear, well-documented configuration options that directly impact the preSend process.
|
|
11466
|
-
- Validate all configuration values rigorously to ensure they conform to expected data types, ranges, and formats.
|
|
11467
|
-
- Provide sensible default values for optional parameters to enhance usability and reduce configuration errors.
|
|
11468
|
-
- Ensure backward compatibility when extending or modifying configuration options.
|
|
11469
|
-
- Include comprehensive documentation for each configuration parameter, including its purpose, accepted values, and effect on hook behavior.
|
|
11470
|
-
- Consider security implications when allowing configuration of headers or other sensitive parameters.
|
|
11471
|
-
- |-
|
|
11472
|
-
## EXAMPLES:
|
|
11473
|
-
- `{ "retryCount": 3, "timeout": 5000, "enableLogging": true }`
|
|
11474
|
-
- `{ "validateSchema": true, "maxPayloadSize": 1048576 }`
|
|
11475
|
-
- `{ "customHeaders": { "X-Custom-Header": "value" } }`
|
|
11476
|
-
- `{ "retryPolicy": { "maxAttempts": 5, "backoffStrategy": "exponential" }, "enableLogging": false }`
|
|
11477
|
-
- `{ "payloadCompression": "gzip", "timeout": 10000 }`
|
|
11478
|
-
- |-
|
|
11479
|
-
## IMPORTANT NOTES:
|
|
11480
|
-
- Incorrect or invalid configuration values can cause the preSend hook to fail or behave unpredictably.
|
|
11481
|
-
- Thorough testing of configuration changes in development or staging environments is critical before deploying to production.
|
|
11482
|
-
- Some configuration changes may require restarting or reinitializing the hook or related services to take effect.
|
|
11483
|
-
- Sensitive configuration parameters should be handled securely to prevent exposure of confidential information.
|
|
11484
|
-
- Configuration should be version-controlled and documented to facilitate maintenance
|
|
11485
|
-
description: |-
|
|
11486
|
-
Hook invoked immediately before the payload is sent, allowing custom
|
|
11487
|
-
processing, modification, or validation.
|
|
11488
|
-
x-celigo-ai-guidance:
|
|
11489
|
-
- |-
|
|
11490
|
-
preSend is a hook function that is invoked immediately before a request is sent
|
|
11491
|
-
to the NetSuite API.
|
|
11492
|
-
It allows for custom processing, modification,
|
|
11493
|
-
or validation of the request payload and headers,
|
|
11494
|
-
enabling dynamic adjustments or logging prior to transmission.
|
|
11495
|
-
- |-
|
|
11496
|
-
## FIELD BEHAVIOR:
|
|
11497
|
-
- Executed synchronously or asynchronously just before the API request is dispatched to the NetSuite endpoint.
|
|
11498
|
-
- Receives the full request object, including headers, body, query parameters, and other relevant metadata.
|
|
11499
|
-
- Permits modification of any part of the request, such as altering headers, adjusting the payload, or changing query parameters.
|
|
11500
|
-
- Supports validation logic to ensure the request meets required criteria; throwing an error will abort the request.
|
|
11501
|
-
- Enables injection of dynamic data like authentication tokens, custom headers, or correlation IDs.
|
|
11502
|
-
- Can be used for logging or auditing outgoing request details for debugging or monitoring purposes.
|
|
11503
|
-
- |-
|
|
11504
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11505
|
-
- Implement as a function or asynchronous callback that accepts the request context object.
|
|
11506
|
-
- Ensure that any asynchronous operations within the hook are properly awaited to maintain request integrity.
|
|
11507
|
-
- Keep processing lightweight to avoid introducing latency or blocking the request pipeline.
|
|
11508
|
-
- Handle exceptions carefully; unhandled errors will prevent the request from being sent.
|
|
11509
|
-
- Centralize request customization logic here to improve maintainability and reduce duplication.
|
|
11510
|
-
- Avoid side effects that could impact other parts of the system or subsequent requests.
|
|
11511
|
-
- Validate inputs thoroughly to prevent malformed requests from being sent to the API.
|
|
11512
|
-
- |-
|
|
11513
|
-
## EXAMPLES:
|
|
11514
|
-
- Adding a Bearer token or API key to the Authorization header dynamically before sending.
|
|
11515
|
-
- Logging the complete request payload and headers for troubleshooting network issues.
|
|
11516
|
-
- Modifying request parameters based on user roles or feature flags at runtime.
|
|
11517
|
-
- Validating that required fields are present and correctly formatted, throwing an error if validation fails.
|
|
11518
|
-
- Adding a unique request ID header for tracing requests across distributed systems.
|
|
11519
|
-
- |-
|
|
11520
|
-
## IMPORTANT NOTES:
|
|
11521
|
-
- This hook executes on every outgoing request, so its performance impact should be minimized.
|
|
11522
|
-
- Any modifications made within preSend directly affect the final request sent to NetSuite.
|
|
11523
|
-
- Throwing an error inside this hook will abort the request and propagate the error upstream.
|
|
11524
|
-
- This hook is strictly for pre-request processing and should not be used for handling responses.
|
|
11525
|
-
- Avoid making network calls or heavy computations inside this hook to prevent delays.
|
|
11526
|
-
- Ensure thread safety if the hook accesses shared resources or global state.
|
|
11527
|
-
- |-
|
|
11528
|
-
## DEPENDENCY CHAIN:
|
|
11529
|
-
- Invoked after request construction but before the request is dispatched.
|
|
11530
|
-
- Precedes any network transmission or retry
|
|
11531
|
-
description: Custom hook functions executed at defined points in the distributed export lifecycle.
|
|
11532
|
-
x-celigo-ai-guidance:
|
|
11533
|
-
- |-
|
|
11534
|
-
hooks:
|
|
11535
|
-
> A collection of user-defined functions or callbacks that are executed at
|
|
11536
|
-
specific points during the lifecycle of the distributed process within the
|
|
11537
|
-
NetSuite integration.
|
|
11538
|
-
These hooks enable customization and extension of the default behavior by
|
|
11539
|
-
injecting custom logic before,
|
|
11540
|
-
during, or after key operations,
|
|
11541
|
-
allowing for flexible adaptation to unique business requirements and integration scenarios.
|
|
11542
|
-
- |-
|
|
11543
|
-
## FIELD BEHAVIOR:
|
|
11544
|
-
- Contains one or more functions or callback references mapped to specific lifecycle events.
|
|
11545
|
-
- Each hook corresponds to a distinct event or stage in the distributed process, such as pre-processing, post-processing, error handling, or data transformation.
|
|
11546
|
-
- Hooks are invoked automatically by the system at predefined points in the workflow.
|
|
11547
|
-
- Can modify data payloads, trigger additional workflows or external API calls, perform validations, or handle errors.
|
|
11548
|
-
- Supports both synchronous and asynchronous execution models depending on the hook's purpose and implementation.
|
|
11549
|
-
- Execution order of hooks for the same event is deterministic and should be documented.
|
|
11550
|
-
- Hooks should be designed to avoid side effects that could impact other parts of the process.
|
|
11551
|
-
- |-
|
|
11552
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11553
|
-
- Define hooks as named functions or references to executable code blocks compatible with the integration environment.
|
|
11554
|
-
- Ensure hooks are idempotent to prevent unintended consequences from repeated or retried executions.
|
|
11555
|
-
- Validate all inputs and outputs rigorously within hooks to maintain data integrity and system stability.
|
|
11556
|
-
- Use hooks to integrate with external systems, perform custom validations, enrich data, or implement business-specific logic.
|
|
11557
|
-
- Document each hook's purpose, expected inputs, outputs, and any side effects clearly for maintainability.
|
|
11558
|
-
- Implement robust error handling within hooks to gracefully manage exceptions without disrupting the main process flow.
|
|
11559
|
-
- Test hooks thoroughly in isolated and integrated environments to ensure reliability and performance.
|
|
11560
|
-
- Consider security implications, such as data exposure or injection risks, when implementing hooks.
|
|
11561
|
-
- |-
|
|
11562
|
-
## EXAMPLES:
|
|
11563
|
-
- A hook that validates transaction data before it is sent to NetSuite to ensure compliance with business rules.
|
|
11564
|
-
- A hook that logs detailed transaction metadata after a successful operation for auditing purposes.
|
|
11565
|
-
- A hook that modifies or enriches payload data during transformation stages to align with NetSuite's schema.
|
|
11566
|
-
- A hook that triggers email or system notifications upon error occurrences to alert support teams.
|
|
11567
|
-
- A hook that retries failed operations with exponential backoff to improve resilience.
|
|
11568
|
-
- |-
|
|
11569
|
-
## IMPORTANT NOTES:
|
|
11570
|
-
- Improperly implemented hooks can cause process failures, data inconsistencies, or performance degradation.
|
|
11229
|
+
description: Settings passed to the hook function.
|
|
11571
11230
|
sublists:
|
|
11572
11231
|
type:
|
|
11573
11232
|
- array
|
|
11574
11233
|
- 'null'
|
|
11234
|
+
description: |-
|
|
11235
|
+
IDs of the NetSuite sublists to include with each exported record (for example `item`
|
|
11236
|
+
for transaction line items). Records are exported with body fields only when no
|
|
11237
|
+
sublists are selected. Legacy documents may store null (equivalent to no sublists).
|
|
11575
11238
|
items:
|
|
11576
11239
|
type: string
|
|
11577
|
-
description: |-
|
|
11578
|
-
IDs of the NetSuite sublists to include with each exported record (for
|
|
11579
|
-
example `item` for transaction line items). Records are exported with
|
|
11580
|
-
body fields only when no sublists are selected. Legacy documents may
|
|
11581
|
-
store null (equivalent to no sublists).
|
|
11582
11240
|
examples:
|
|
11583
11241
|
- - item
|
|
11584
|
-
referencedFields:
|
|
11585
|
-
type: object
|
|
11586
|
-
description: Field identifiers referenced by the distributed export.
|
|
11587
11242
|
x-celigo-ai-guidance:
|
|
11588
11243
|
- |-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
## FIELD BEHAVIOR:
|
|
11598
|
-
- Contains identifiers of fields that the current field or process depends on or interacts with.
|
|
11599
|
-
- Used to establish explicit relationships or dependencies between multiple fields.
|
|
11600
|
-
- Enables tracking of data flow and ensures consistency across distributed systems.
|
|
11601
|
-
- Supports dynamic resolution of dependencies during runtime or configuration.
|
|
11602
|
-
- |-
|
|
11603
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11604
|
-
- Populate with valid and existing field identifiers as defined in the NetSuite schema or metadata.
|
|
11605
|
-
- Verify that all referenced fields are accessible and correctly scoped within the current context.
|
|
11606
|
-
- Use this property to manage dependencies critical for data validation, synchronization, or processing logic.
|
|
11607
|
-
- Keep the list updated to reflect any schema changes to avoid broken references or inconsistencies.
|
|
11608
|
-
- Avoid circular references by carefully managing dependencies between fields.
|
|
11609
|
-
- |-
|
|
11610
|
-
## EXAMPLES:
|
|
11611
|
-
- ["customerId", "orderDate", "shippingAddress"]
|
|
11612
|
-
- ["invoiceNumber", "paymentStatus"]
|
|
11613
|
-
- ["productCode", "inventoryLevel", "reorderThreshold"]
|
|
11614
|
-
- |-
|
|
11615
|
-
## IMPORTANT NOTES:
|
|
11616
|
-
- Referenced fields must be unique within the list to prevent redundancy and confusion.
|
|
11617
|
-
- Modifications to referenced fields can impact dependent processes; changes should be tested thoroughly.
|
|
11618
|
-
- This property contains only the identifiers (names or keys) of fields, not their actual data or values.
|
|
11619
|
-
- Proper documentation of referenced fields improves maintainability and clarity of dependencies.
|
|
11620
|
-
- |-
|
|
11621
|
-
## DEPENDENCY CHAIN:
|
|
11622
|
-
- Often linked with fields that require validation or data aggregation from other fields.
|
|
11623
|
-
- May influence or be influenced by business rules, workflows, or automation scripts that depend on multiple fields.
|
|
11624
|
-
- Changes in referenced fields can cascade to affect dependent fields or processes.
|
|
11625
|
-
- |-
|
|
11626
|
-
## TECHNICAL DETAILS:
|
|
11627
|
-
- Data type: Array of strings.
|
|
11628
|
-
- Each string represents a unique field identifier within the NetSuite distributed environment.
|
|
11629
|
-
- The array should be serialized in a format compatible with the consuming system (e.g., JSON array).
|
|
11630
|
-
- Maximum length and allowed characters for field identifiers should conform to NetSuite naming conventions.
|
|
11244
|
+
Each selected sublist is an extra query inside the NetSuite save, so select only the
|
|
11245
|
+
sublists the flow maps. Qualification criteria cannot reference sublist fields
|
|
11246
|
+
regardless of this setting.
|
|
11247
|
+
referencedFields:
|
|
11248
|
+
type: object
|
|
11249
|
+
description: |-
|
|
11250
|
+
Field references recorded on the listener by the platform. Not exposed in the listener
|
|
11251
|
+
form; leave as stored.
|
|
11631
11252
|
relatedLists:
|
|
11632
11253
|
type: object
|
|
11633
|
-
description:
|
|
11634
|
-
|
|
11635
|
-
|
|
11636
|
-
relatedLists:
|
|
11637
|
-
A collection of related list objects that represent associated records or
|
|
11638
|
-
entities linked to the primary record within the NetSuite distributed data
|
|
11639
|
-
model.
|
|
11640
|
-
These related lists provide contextual information and enable navigation to connected data,
|
|
11641
|
-
facilitating comprehensive data retrieval and management.
|
|
11642
|
-
Each related list encapsulates a set of records that share a defined
|
|
11643
|
-
relationship with the primary record,
|
|
11644
|
-
such as transactions, contacts, or custom entities,
|
|
11645
|
-
thereby supporting a holistic view of the data ecosystem.
|
|
11646
|
-
- |-
|
|
11647
|
-
## FIELD BEHAVIOR:
|
|
11648
|
-
- Contains multiple related list entries, each representing a distinct association to the primary record.
|
|
11649
|
-
- Enables retrieval of linked records such as transactions, custom records, subsidiary data, or other relevant entities.
|
|
11650
|
-
- Supports hierarchical or relational data structures by referencing related entities, allowing nested or multi-level associations.
|
|
11651
|
-
- Typically read-only in the context of distributed data retrieval but may support updates or synchronization depending on API capabilities and permissions.
|
|
11652
|
-
- May include metadata such as record counts, last updated timestamps, or status indicators for each related list.
|
|
11653
|
-
- Supports dynamic inclusion or exclusion based on user permissions, record type, and system configuration.
|
|
11654
|
-
- |-
|
|
11655
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11656
|
-
- Populate with relevant related list objects that are directly associated with the primary record, ensuring accurate representation of relationships.
|
|
11657
|
-
- Ensure each related list entry includes unique identifiers, descriptive metadata, and navigation links or references necessary for data access and traversal.
|
|
11658
|
-
- Maintain consistency in naming conventions, data structures, and field formats to align with NetSuite's standard data model and API specifications.
|
|
11659
|
-
- Implement pagination, filtering, or sorting mechanisms to efficiently handle large sets of related records within each list.
|
|
11660
|
-
- Validate all references and links to ensure data integrity, preventing broken or stale connections within the distributed data environment.
|
|
11661
|
-
- Consider caching strategies or incremental updates to optimize performance when dealing with frequently accessed related lists.
|
|
11662
|
-
- Respect and enforce access control and permission checks to ensure users only see related lists they are authorized to access.
|
|
11663
|
-
- |-
|
|
11664
|
-
## EXAMPLES:
|
|
11665
|
-
- A customer record's relatedLists might include "Transactions" (e.g., sales orders, invoices), "Contacts" (associated individuals), and "Cases" (customer support tickets).
|
|
11666
|
-
- An invoice record's relatedLists could contain "Payments" (payment records), "Shipments" (delivery details), and "Adjustments" (billing corrections).
|
|
11667
|
-
- A custom record type might have relatedLists such as "Attachments" (files linked to the record) or "Notes" (user comments or annotations).
|
|
11668
|
-
- A vendor record's relatedLists may include "Purchase Orders," "Bills," and "Vendor Contacts
|
|
11254
|
+
description: |-
|
|
11255
|
+
Related record lists recorded on the listener by the platform. Not exposed in the
|
|
11256
|
+
listener form; leave as stored.
|
|
11669
11257
|
forceReload:
|
|
11670
11258
|
type: boolean
|
|
11671
|
-
description:
|
|
11259
|
+
description: |-
|
|
11260
|
+
When true, the listener reloads the record from the database after the save before
|
|
11261
|
+
exporting it, so fields that are populated only once the save completes — such as
|
|
11262
|
+
transaction line IDs on new lines — are included. The reload slows every save of that
|
|
11263
|
+
record type.
|
|
11672
11264
|
x-celigo-ai-guidance:
|
|
11673
11265
|
- |-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
- Implement robust error handling during the reload process to manage potential failures without causing system downtime or inconsistent states.
|
|
11678
|
-
- Monitor system resource utilization and response times when forceReload is active to identify and mitigate performance bottlenecks.
|
|
11679
|
-
- Document scenarios and triggers for using forceReload to guide developers and operators in its appropriate application.
|
|
11680
|
-
- |-
|
|
11681
|
-
## EXAMPLES:
|
|
11682
|
-
- forceReload: true
|
|
11683
|
-
(forces the system to bypass caches and reload data/configuration from the authoritative source immediately)
|
|
11684
|
-
- forceReload: false
|
|
11685
|
-
(allows the system to serve data from cache if available, improving response time)
|
|
11686
|
-
- forceReload omitted
|
|
11687
|
-
(defaults to false behavior, relying on cached data unless otherwise specified)
|
|
11688
|
-
- |-
|
|
11689
|
-
## FIELD BEHAVIOR:
|
|
11690
|
-
- When set to true, the system bypasses all caches and reloads data or configurations directly from the primary source, ensuring the latest state is retrieved.
|
|
11691
|
-
- When set to false or omitted, the system may utilize cached or previously stored data to optimize performance and reduce load times.
|
|
11692
|
-
- Primarily used in contexts where stale data could lead to errors, inconsistencies, or outdated processing results.
|
|
11693
|
-
- The reload operation triggered by this flag typically involves invalidating caches and refreshing dependent components or services.
|
|
11694
|
-
- |-
|
|
11695
|
-
## IMPORTANT NOTES:
|
|
11696
|
-
- Excessive or unnecessary use of forceReload can lead to increased latency, higher resource consumption, and potential service degradation.
|
|
11697
|
-
- This flag does not validate the correctness or integrity of the source data; it only ensures the latest available data is fetched.
|
|
11698
|
-
- Downstream systems or processes should be designed to handle the potential delays or transient states caused by forced reloads.
|
|
11699
|
-
- Coordination with cache invalidation policies and data synchronization mechanisms is essential to maintain overall system consistency.
|
|
11700
|
-
- |-
|
|
11701
|
-
## DEPENDENCY CHAIN:
|
|
11702
|
-
- Relies on underlying cache management and invalidation frameworks to effectively bypass stored data.
|
|
11703
|
-
- Interacts with data retrieval modules, configuration loaders, and possibly distributed synchronization services.
|
|
11704
|
-
- |-
|
|
11705
|
-
forceReload:
|
|
11706
|
-
Indicates whether the system should forcibly reload the data or configuration,
|
|
11707
|
-
bypassing any cached or stored versions to ensure the most up-to-date information is used.
|
|
11708
|
-
This flag is critical in scenarios where data accuracy and freshness are paramount,
|
|
11709
|
-
such as after configuration changes or data updates that must be immediately reflected.
|
|
11266
|
+
Leave false unless a field is missing from the exported payload that NetSuite fills
|
|
11267
|
+
in after submit (line IDs are the documented case); there is no published list of such
|
|
11268
|
+
fields.
|
|
11710
11269
|
ioEnvironment:
|
|
11711
11270
|
type: string
|
|
11712
|
-
description:
|
|
11271
|
+
description: |-
|
|
11272
|
+
integrator.io environment the listener's NetSuite deployment reports to. Written by the
|
|
11273
|
+
platform when the listener registers with NetSuite; live-observed values include
|
|
11274
|
+
`production` and `staging`.
|
|
11713
11275
|
examples:
|
|
11714
|
-
- development
|
|
11715
|
-
- staging
|
|
11716
11276
|
- production
|
|
11717
|
-
-
|
|
11277
|
+
- staging
|
|
11718
11278
|
x-celigo-ai-guidance:
|
|
11719
11279
|
- |-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
defining how data is handled, processed,
|
|
11723
|
-
and routed across different operational environments.
|
|
11724
|
-
This property determines the context in which I/O operations occur,
|
|
11725
|
-
influencing data flow, security protocols, performance characteristics,
|
|
11726
|
-
and consistency guarantees within the distributed architecture.
|
|
11727
|
-
- |-
|
|
11728
|
-
## FIELD BEHAVIOR:
|
|
11729
|
-
- Determines the operational context for all input/output processes within the distributed NetSuite system.
|
|
11730
|
-
- Influences how data is read from and written to various storage systems, message queues, or communication channels.
|
|
11731
|
-
- Affects performance tuning, security measures, and data consistency mechanisms based on the selected environment.
|
|
11732
|
-
- Typically set during system initialization or configuration phases and remains stable during runtime to ensure predictable behavior.
|
|
11733
|
-
- May trigger environment-specific logging, monitoring, and error-handling strategies.
|
|
11734
|
-
- |-
|
|
11735
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11736
|
-
- Validate the ioEnvironment value against a predefined set of supported environments such as "development," "staging," "production," and any custom configurations.
|
|
11737
|
-
- Ensure that the selected environment is compatible with other system settings related to data handling, network communication, and security policies.
|
|
11738
|
-
- Implement robust error handling and fallback mechanisms to manage unsupported or invalid environment values gracefully.
|
|
11739
|
-
- Clearly document the operational implications, limitations, and recommended use cases for each environment option to guide system administrators and developers.
|
|
11740
|
-
- Coordinate environment settings across all distributed nodes to maintain consistency and prevent configuration drift.
|
|
11741
|
-
- |-
|
|
11742
|
-
## EXAMPLES:
|
|
11743
|
-
- "development" — used for local testing and debugging with relaxed security and simplified data handling.
|
|
11744
|
-
- "staging" — a pre-production environment that closely mirrors production settings for validation and testing.
|
|
11745
|
-
- "production" — the live environment optimized for security, performance, and data integrity.
|
|
11746
|
-
- "custom" — user-defined environment configurations tailored for specialized I/O requirements or experimental setups.
|
|
11747
|
-
- |-
|
|
11748
|
-
## IMPORTANT NOTES:
|
|
11749
|
-
- Changing the ioEnvironment typically requires restarting services or reinitializing connections to apply new configurations.
|
|
11750
|
-
- The environment setting directly impacts data integrity, access controls, and compliance with security policies.
|
|
11751
|
-
- Sensitive data must be handled according to the security standards appropriate for the selected environment.
|
|
11752
|
-
- Consistency across all distributed nodes is critical; all nodes should be configured with compatible ioEnvironment values to avoid data inconsistencies or communication failures.
|
|
11753
|
-
- Misconfiguration can lead to degraded performance, security vulnerabilities, or data loss.
|
|
11754
|
-
- |-
|
|
11755
|
-
## DEPENDENCY CHAIN:
|
|
11756
|
-
- Depends on system initialization and configuration management components.
|
|
11757
|
-
- Interacts with data storage modules, network communication layers, and security frameworks.
|
|
11758
|
-
- Influences logging, monitoring, and error
|
|
11280
|
+
Never author or change it. When updating from a GET that returned a value, carry it
|
|
11281
|
+
through unchanged; when the GET returned none, send none.
|
|
11759
11282
|
ioDomain:
|
|
11760
11283
|
type: string
|
|
11761
11284
|
description: |-
|
|
11762
|
-
integrator.io domain the
|
|
11763
|
-
|
|
11285
|
+
integrator.io domain the listener's NetSuite deployment calls back to — the account's
|
|
11286
|
+
own regional domain, stamped by the platform on every save and echoed on create and
|
|
11287
|
+
update responses; not returned by GET.
|
|
11764
11288
|
examples:
|
|
11765
|
-
-
|
|
11766
|
-
- distributed-services.companydomain.com
|
|
11767
|
-
- staging-netsuite.io.company.com
|
|
11768
|
-
- eu-west-1.api.netsuite.com
|
|
11769
|
-
- dev-networks.internal.company.com
|
|
11289
|
+
- integrator.io
|
|
11770
11290
|
x-celigo-ai-guidance:
|
|
11771
11291
|
- |-
|
|
11772
|
-
|
|
11773
|
-
|
|
11774
|
-
|
|
11775
|
-
distributed components and services,
|
|
11776
|
-
ensuring seamless communication and integration across the system.
|
|
11777
|
-
- |-
|
|
11778
|
-
## FIELD BEHAVIOR:
|
|
11779
|
-
- Defines the domain name utilized for network communication in distributed NetSuite environments.
|
|
11780
|
-
- Serves as the base domain for constructing URLs for API calls, data synchronization, and service endpoints.
|
|
11781
|
-
- Must be a valid, fully qualified domain name (FQDN) adhering to DNS standards.
|
|
11782
|
-
- Typically remains consistent within a deployment environment but can differ across environments such as development, staging, and production.
|
|
11783
|
-
- Influences routing, load balancing, and failover mechanisms within distributed services.
|
|
11784
|
-
- |-
|
|
11785
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11786
|
-
- Verify that the domain is properly configured in DNS and is resolvable by all distributed components.
|
|
11787
|
-
- Validate the domain format against standard domain naming conventions (e.g., RFC 1035).
|
|
11788
|
-
- Ensure the domain supports secure communication protocols (e.g., HTTPS with valid SSL/TLS certificates).
|
|
11789
|
-
- Coordinate updates to ioDomain with network, security, and operations teams to maintain service continuity.
|
|
11790
|
-
- When migrating or scaling services, update ioDomain accordingly and propagate changes to all dependent components.
|
|
11791
|
-
- Monitor domain accessibility and performance to detect and resolve connectivity issues promptly.
|
|
11792
|
-
- |-
|
|
11793
|
-
## EXAMPLES:
|
|
11794
|
-
- "api.netsuite.com"
|
|
11795
|
-
- "distributed-services.companydomain.com"
|
|
11796
|
-
- "staging-netsuite.io.company.com"
|
|
11797
|
-
- "eu-west-1.api.netsuite.com"
|
|
11798
|
-
- "dev-networks.internal.company.com"
|
|
11799
|
-
- |-
|
|
11800
|
-
## IMPORTANT NOTES:
|
|
11801
|
-
- Incorrect or misconfigured ioDomain values can cause failed network requests, service interruptions, and data synchronization errors.
|
|
11802
|
-
- The domain must support necessary security certificates to enable encrypted communication and protect data in transit.
|
|
11803
|
-
- Changes to ioDomain may necessitate updates to firewall rules, proxy configurations, and network security policies.
|
|
11804
|
-
- Consistency in ioDomain usage across distributed components is essential to avoid routing conflicts and authentication issues.
|
|
11805
|
-
- Consider the impact on caching, CDN configurations, and DNS propagation delays when changing ioDomain.
|
|
11806
|
-
- |-
|
|
11807
|
-
## DEPENDENCY CHAIN:
|
|
11808
|
-
- Dependent on underlying network infrastructure, DNS setup, and domain registration.
|
|
11809
|
-
- Utilized by distributed service components for constructing communication endpoints.
|
|
11810
|
-
- May affect authentication and authorization workflows that rely on domain validation or origin verification.
|
|
11811
|
-
- Interacts with security components such as SSL/TLS certificate management and firewall configurations.
|
|
11812
|
-
- Influences monitoring, logging, and troubleshooting processes related to network communication.
|
|
11813
|
-
|
|
11814
|
-
##
|
|
11292
|
+
Never author it: the platform re-stamps the account's domain on save. Live-verified on
|
|
11293
|
+
one North America account, where a PUT that omitted it came back with that account's
|
|
11294
|
+
domain (`integrator.io`); other regions carry their own host.
|
|
11815
11295
|
lastSyncedDate:
|
|
11816
11296
|
type: string
|
|
11817
11297
|
format: date-time
|
|
11818
11298
|
description: |-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
examples:
|
|
11822
|
-
- '2024-06-15T14:30:00Z'
|
|
11823
|
-
- '2023-12-01T08:45:22Z'
|
|
11824
|
-
- '2024-01-10T23:59:59Z'
|
|
11299
|
+
When the listener's deployment last synchronized with NetSuite. Written by the platform;
|
|
11300
|
+
not set until the first successful synchronization.
|
|
11825
11301
|
x-celigo-ai-guidance:
|
|
11826
11302
|
- |-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
This timestamp is essential for monitoring the freshness, consistency,
|
|
11830
|
-
and integrity of synchronized data,
|
|
11831
|
-
enabling systems to determine whether updates or incremental syncs are necessary.
|
|
11832
|
-
- |-
|
|
11833
|
-
## FIELD BEHAVIOR:
|
|
11834
|
-
- Captures the exact date and time of the most recent successful synchronization event.
|
|
11835
|
-
- Automatically updates only after a sync operation completes successfully without errors.
|
|
11836
|
-
- Serves as a reference point to assess if data is current or requires refreshing.
|
|
11837
|
-
- Typically stored and transmitted in ISO 8601 format to maintain uniformity across different systems and platforms.
|
|
11838
|
-
- Does not reflect the start time or duration of the synchronization process, only its successful completion.
|
|
11839
|
-
- |-
|
|
11840
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11841
|
-
- Record the timestamp in Coordinated Universal Time (UTC) to prevent timezone-related inconsistencies.
|
|
11842
|
-
- Update this field exclusively after confirming a successful synchronization to avoid misleading data states.
|
|
11843
|
-
- Validate the date and time format rigorously to comply with ISO 8601 standards (e.g., "YYYY-MM-DDTHH:mm:ssZ").
|
|
11844
|
-
- Utilize this timestamp to drive incremental synchronization logic, data refresh triggers, or audit trails in downstream workflows.
|
|
11845
|
-
- Handle cases where the field may be null or missing, indicating that no synchronization has occurred yet.
|
|
11846
|
-
- |-
|
|
11847
|
-
## EXAMPLES:
|
|
11848
|
-
- "2024-06-15T14:30:00Z"
|
|
11849
|
-
- "2023-12-01T08:45:22Z"
|
|
11850
|
-
- "2024-01-10T23:59:59Z"
|
|
11851
|
-
- |-
|
|
11852
|
-
## IMPORTANT NOTES:
|
|
11853
|
-
- This timestamp marks the completion of synchronization, not its initiation.
|
|
11854
|
-
- Do not update this field if the synchronization process fails or is incomplete.
|
|
11855
|
-
- Maintaining timezone consistency (UTC) is critical to avoid synchronization conflicts or data mismatches.
|
|
11856
|
-
- The field may be null or omitted if synchronization has never been performed.
|
|
11857
|
-
- Systems relying on this field should implement fallback or error handling for missing or invalid timestamps.
|
|
11858
|
-
- |-
|
|
11859
|
-
## DEPENDENCY CHAIN:
|
|
11860
|
-
- Depends on successful completion of the synchronization process between the system and NetSuite.
|
|
11861
|
-
- Influences downstream processes such as incremental sync triggers, data validation, and audit logging.
|
|
11862
|
-
- May be referenced by monitoring or alerting systems to detect synchronization delays or failures.
|
|
11863
|
-
- |-
|
|
11864
|
-
## TECHNICAL DETAILS:
|
|
11865
|
-
- Stored as a string in ISO 8601 format with UTC timezone designator (e.g., "YYYY-MM-DDTHH:mm:ssZ").
|
|
11866
|
-
- Should be generated programmatically at the moment synchronization completes successfully
|
|
11303
|
+
Never author or change it. When updating from a GET that returned a value, carry it
|
|
11304
|
+
through unchanged; when the GET returned none, send none.
|
|
11867
11305
|
settings:
|
|
11868
11306
|
type: object
|
|
11869
|
-
description:
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
settings:
|
|
11873
|
-
> Configuration settings specific to the distributed module within the NetSuite integration,
|
|
11874
|
-
enabling fine-grained control over distributed processing behavior and performance optimization.
|
|
11875
|
-
- |-
|
|
11876
|
-
## FIELD BEHAVIOR:
|
|
11877
|
-
- Encapsulates a collection of key-value pairs representing various configuration parameters that govern the distributed NetSuite integration's operation.
|
|
11878
|
-
- Includes toggles (boolean flags), numeric thresholds, timeouts, batch sizes, logging options, and other customizable settings relevant to distributed processing workflows.
|
|
11879
|
-
- Typically optional for basic usage but essential for advanced customization, performance tuning, and adapting the integration to specific deployment environments.
|
|
11880
|
-
- Changes to these settings can dynamically alter the integration's behavior, such as retry logic, concurrency limits, and error handling strategies.
|
|
11881
|
-
- |-
|
|
11882
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11883
|
-
- Define each setting with a clear, descriptive key name and an appropriate data type (e.g., integer, boolean, string).
|
|
11884
|
-
- Validate input values rigorously to ensure they fall within acceptable ranges or conform to expected formats to prevent runtime errors.
|
|
11885
|
-
- Provide sensible default values for all settings to maintain stable and predictable integration behavior when explicit configuration is absent.
|
|
11886
|
-
- Document each setting comprehensively, including its purpose, valid values, default, and impact on the integration's operation.
|
|
11887
|
-
- Consider versioning or schema validation to manage changes in settings structure over time.
|
|
11888
|
-
- Ensure that sensitive information is either excluded or securely handled if included within settings.
|
|
11889
|
-
- |-
|
|
11890
|
-
## EXAMPLES:
|
|
11891
|
-
- `{ "retryCount": 3, "enableLogging": true, "timeoutSeconds": 120 }` — configures retry attempts, enables detailed logging, and sets operation timeout.
|
|
11892
|
-
- `{ "batchSize": 50, "useSandbox": false }` — sets the number of records processed per batch and specifies production environment usage.
|
|
11893
|
-
- `{ "maxConcurrentJobs": 10, "errorThreshold": 5, "logLevel": "DEBUG" }` — limits concurrent jobs, sets error tolerance, and defines logging verbosity.
|
|
11894
|
-
- |-
|
|
11895
|
-
## IMPORTANT NOTES:
|
|
11896
|
-
- Modifications to settings may require restarting or reinitializing the integration service to apply changes effectively.
|
|
11897
|
-
- Incorrect or suboptimal configuration can cause integration failures, data inconsistencies, or degraded performance.
|
|
11898
|
-
- Avoid storing sensitive credentials or secrets in settings unless encrypted or otherwise secured.
|
|
11899
|
-
- Settings should be managed carefully in multi-environment deployments to prevent configuration drift.
|
|
11307
|
+
description: |-
|
|
11308
|
+
Additional key-value settings for the distributed export. Not exposed in the listener
|
|
11309
|
+
form.
|
|
11900
11310
|
useSS2Framework:
|
|
11901
11311
|
type: boolean
|
|
11902
11312
|
description: |-
|
|
11903
|
-
|
|
11904
|
-
|
|
11905
|
-
|
|
11906
|
-
creation-time-only constraint applies (see frameworkVersion).
|
|
11313
|
+
Derived by the platform from `frameworkVersion` — true when it is `suiteapp2.0`, absent
|
|
11314
|
+
otherwise — and echoed on create and update responses; not returned by GET. A value
|
|
11315
|
+
sent on create or update is replaced by the derived one.
|
|
11907
11316
|
x-celigo-ai-guidance:
|
|
11908
11317
|
- |-
|
|
11909
|
-
|
|
11910
|
-
the
|
|
11911
|
-
enabling modern scripting capabilities and modular architecture within the NetSuite environment.
|
|
11912
|
-
- |-
|
|
11913
|
-
## FIELD BEHAVIOR:
|
|
11914
|
-
- Determines if the SuiteScript 2.0 (SS2) framework is enabled for the NetSuite integration.
|
|
11915
|
-
- When set to true, the system uses SS2 APIs, modular script definitions, and updated scripting conventions.
|
|
11916
|
-
- When set to false or omitted, the system defaults to using SuiteScript 1.0 or legacy frameworks.
|
|
11917
|
-
- Influences script loading mechanisms, module resolution, and API compatibility within NetSuite.
|
|
11918
|
-
- |-
|
|
11919
|
-
## IMPLEMENTATION GUIDANCE:
|
|
11920
|
-
- This is an authoring-time choice: set it when creating the listener step (true unless the user explicitly needs a legacy version). It cannot be toggled on a saved step — moving an existing listener to a different framework version means recreating or cloning it.
|
|
11921
|
-
- Verify that the integrator.io SuiteApp is installed in the target NetSuite environment when authoring SuiteScript 2.0 steps.
|
|
11922
|
-
- When migrating by recreation, verify any SuiteScript hooks are written for the matching version before cutting over.
|
|
11923
|
-
- |-
|
|
11924
|
-
## EXAMPLES:
|
|
11925
|
-
- `useSS2Framework: true` — Enables SuiteScript 2.0 framework usage, activating modern scripting features.
|
|
11926
|
-
- `useSS2Framework: false` — Disables SuiteScript 2.0, falling back to legacy SuiteScript 1.0 framework.
|
|
11927
|
-
- Property omitted — Defaults to legacy SuiteScript framework (typically 1.0), maintaining backward compatibility.
|
|
11928
|
-
- |-
|
|
11929
|
-
## IMPORTANT NOTES:
|
|
11930
|
-
- Enabling the SS2 framework may require refactoring existing scripts to comply with SuiteScript 2.0 syntax, including the use of define/require for module loading.
|
|
11931
|
-
- Some legacy APIs, global objects, and modules available in SuiteScript 1.0 may be deprecated or behave differently in SuiteScript 2.0.
|
|
11932
|
-
- Performance improvements and new features in SS2 may not be realized if scripts are not properly adapted.
|
|
11933
|
-
- Ensure that all scheduled scripts, workflows, and integrations are reviewed for compatibility to prevent runtime errors.
|
|
11934
|
-
- Documentation and developer training may be necessary to fully leverage SuiteScript 2.0 capabilities.
|
|
11318
|
+
Never set this; `frameworkVersion` is authoritative. Live-verified: a PUT sending the
|
|
11319
|
+
opposite value came back with the value derived from `frameworkVersion`.
|
|
11935
11320
|
frameworkVersion:
|
|
11936
11321
|
type: string
|
|
11937
11322
|
enum:
|
|
@@ -15929,19 +15314,38 @@ components:
|
|
|
15929
15314
|
|
|
15930
15315
|
**Usage**
|
|
15931
15316
|
|
|
15932
|
-
|
|
15933
|
-
|
|
15317
|
+
In a flow test run, and for an upstream lookup during a page-processor preview
|
|
15318
|
+
(`previewPageProcessor`), integrator.io substitutes this mock output for the export's live
|
|
15319
|
+
response instead of calling the source. It is not substituted anywhere else: a target lookup
|
|
15320
|
+
in that preview runs its live query, `POST /v1/exports/preview` calls the source, and real
|
|
15321
|
+
runs ignore it. This allows you to:
|
|
15934
15322
|
- Test mappings with representative data
|
|
15935
15323
|
- Configure downstream flow steps without waiting for real data
|
|
15936
15324
|
- Simulate various data scenarios
|
|
15937
15325
|
|
|
15326
|
+
Where it is substituted, the records stand in for the RAW parsed response: the export's own
|
|
15327
|
+
`transform` and output `filter` still run on top of them, so downstream steps — and a
|
|
15328
|
+
lookup's results mapping — see the transformed, filtered records, not the shape stored here.
|
|
15329
|
+
|
|
15938
15330
|
**Limitations**
|
|
15939
15331
|
|
|
15940
15332
|
- Maximum of 10 records
|
|
15941
15333
|
- Maximum size of 1 MB
|
|
15942
15334
|
- Must follow the canonical format shown above
|
|
15943
15335
|
|
|
15944
|
-
Mock output can be populated automatically from preview data
|
|
15336
|
+
Mock output can be populated automatically from preview data (which is the parsed response,
|
|
15337
|
+
before `transform` / `filter`) or entered manually.
|
|
15338
|
+
x-celigo-ai-guidance:
|
|
15339
|
+
- |-
|
|
15340
|
+
Store the RAW parsed response records here, never transformed ones — the platform runs
|
|
15341
|
+
the export's `transform` and `filter` on the mock exactly as on live data, and a
|
|
15342
|
+
pre-transformed mock would be transformed twice. When you read `mockOutput` to learn
|
|
15343
|
+
what a lookup returns, apply the transform first; a results mapping authored against
|
|
15344
|
+
the stored shape walks paths that do not exist at runtime.
|
|
15345
|
+
- |-
|
|
15346
|
+
A saved mockOutput is read in exactly two places — a flow test run, and an upstream lookup
|
|
15347
|
+
during a page-processor preview. A target lookup's preview, `POST /v1/exports/preview` and
|
|
15348
|
+
every real run call the source and never read it.
|
|
15945
15349
|
properties:
|
|
15946
15350
|
page_of_records:
|
|
15947
15351
|
type: array
|