Skip to content

Commit 5b7bc70

Browse files
committed
NS import: add CustomRecordSearchAdvanced example
1 parent b3b1465 commit 5b7bc70

File tree

1 file changed

+76
-1
lines changed

1 file changed

+76
-1
lines changed

docs/learn/netsuite/import-configuration.md

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,9 @@ Sometimes, it can be handy to import just one specific record:
689689

690690
## Using advanced transaction search
691691

692-
Using `TransactionSearchAdvanced` can be beneficial if we want to select which fields should be fetched from NetSuite (to lower the payload size as well as data storage requirements). Additionally, it can be useful to fetch additional columns such as `createdFromJoin` or `applyingTransactionJoin` and similar.
692+
Advanced search can be beneficial if we want to select which fields should be fetched from NetSuite (to lower the payload size as well as data storage requirements). Additionally, it can be useful to fetch additional columns such as `createdFromJoin` or `applyingTransactionJoin` and similar.
693+
694+
### `TransactionSearchAdvanced`
693695

694696
:::info
695697

@@ -774,6 +776,79 @@ Advanced transaction search requires 'Transactions → Find Transaction' permiss
774776
}
775777
```
776778

779+
### `CustomRecordSearchAdvanced`
780+
781+
```json
782+
{
783+
"payload": {
784+
"method_args": [
785+
{
786+
"columns": {
787+
"basic": {
788+
"created": {},
789+
"recType": {},
790+
"externalId": {},
791+
"internalId": {},
792+
"isInactive": {},
793+
"lastModified": {},
794+
"customFieldList": {
795+
"_ns_type": "SearchColumnCustomFieldList",
796+
"customField": [
797+
{
798+
"_ns_type": "SearchColumnStringCustomField",
799+
"scriptId": "custrecord_2663_entity_bic"
800+
},
801+
{
802+
"_ns_type": "SearchColumnStringCustomField",
803+
"scriptId": "custrecord_2663_entity_iban"
804+
},
805+
{
806+
"_ns_type": "SearchColumnStringCustomField",
807+
"scriptId": "custrecord_2663_entity_branch_no"
808+
},
809+
{
810+
"_ns_type": "SearchColumnStringCustomField",
811+
"scriptId": "custrecord_2663_entity_acct_no"
812+
},
813+
{
814+
"_ns_type": "SearchColumnStringCustomField",
815+
"scriptId": "custrecord_2663_entity_acct_suffix"
816+
}
817+
]
818+
}
819+
},
820+
"_ns_type": "CustomRecordSearchRow"
821+
},
822+
"_ns_type": "CustomRecordSearchAdvanced",
823+
"criteria": {
824+
"basic": {
825+
"recType": {
826+
"internalId": 854
827+
},
828+
"lastModified": {
829+
"operator": "onOrAfter",
830+
"searchValue": "{last_modified_date}"
831+
},
832+
"_ns_type": "CustomRecordSearchBasic"
833+
},
834+
"_ns_type": "CustomRecordSearch"
835+
}
836+
}
837+
],
838+
"method_name": "search",
839+
"method_headers": {
840+
"searchPreferences": {
841+
"pageSize": 100,
842+
"bodyFieldsOnly": false,
843+
"returnSearchColumns": true
844+
}
845+
}
846+
},
847+
"master_data_name": "NS_BankDetail_v1",
848+
"advanced_search_internal_id_jmespath": "basic.internalId[0].searchValue.internalId"
849+
}
850+
```
851+
777852
### Main line advanced search
778853

779854
By default, the advanced search returns one record for each line item. In case we'd not care about the line items, we can change the search behavior to return one line per main line record by configuring `criteria.basic.mainLine` (see [Main Line in NetSuite](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4459563851.html)):

0 commit comments

Comments
 (0)