Skip to content

Commit 7ac030e

Browse files
authored
Update readme for including custom fields in search result columns for API 2013.2 and newer (#479)
These newer API versions expect the field to be identified by it's scriptId, not internalId.
1 parent ece6f61 commit 7ac030e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,9 @@ NetSuite::Records::SalesOrder.search({
435435
'tranSales:itemJoin' => [
436436
'platformCommon:customFieldList' => [
437437
'platformCore:customField/' => {
438-
'@internalId' => 'custitem_apcategoryforsales',
438+
'@scriptId' => 'custitem_apcategoryforsales',
439+
# Or, for API versions 2013.1 and older:
440+
# '@internalId' => 'custitem_apcategoryforsales',
439441
'@xsi:type' => "platformCore:SearchColumnSelectCustomField"
440442
}
441443
]

0 commit comments

Comments
 (0)