Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iloveitaly/5f9296694f30965e216a5111a7e6bbac to your computer and use it in GitHub Desktop.
Save iloveitaly/5f9296694f30965e216a5111a7e6bbac to your computer and use it in GitHub Desktop.
# NOTE that although the `customFieldList` exists in the InventoryTransfer search, the customFieldList won't appear in the search results :(
require 'netsuite'
ns_inventory_transfer_id = 123
search = NetSuite::Records::InventoryTransfer.search(
criteria: {
basic: [
{
field: 'type',
operator: 'anyOf',
value: %w(_inventoryTransfer)
},
{
field: 'mainLine',
value: true
},
{
field: 'internalIdNumber',
operator: 'equalTo',
value: ns_inventory_transfer_id
}
]
},
columns: {
'tranSales:basic' => {
'platformCommon:internalId/' => {},
'platformCommon:customFieldList' => {}
}
}
)
search.results.first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment