Skip to content

Commit 3bdecfe

Browse files
authored
Explain search only fields in Readme
Attempt to document NetSweet#483. I wasn't sure how best to convey this given it affects consuming the search results, not performing the search itself. It should also be unsurprising that you'd access these search-only fields the same way you'd access regular or read-only fields. Had we buried these search-only fields in custom fields, like NetSweet#426 first attempted, then I'd find that more surprising and warranting clearer documentation.
1 parent a8395e3 commit 3bdecfe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,10 @@ NetSuite::Records::SalesOrder.search({
421421
'tranSales:basic' => [
422422
'platformCommon:internalId/' => {},
423423
'platformCommon:email/' => {},
424-
'platformCommon:tranDate/' => {}
424+
'platformCommon:tranDate/' => {},
425+
# If you include columns that are only part of the *SearchRowBasic (ie. TransactionSearchRowBasic),
426+
# they'll be readable on the resulting record just like regular fields (my_record.close_date).
427+
'platformCommon:closeDate/' => {}
425428
],
426429
'tranSales:accountJoin' => [
427430
'platformCommon:internalId/' => {}

0 commit comments

Comments
 (0)