Last active
February 22, 2017 13:46
-
-
Save iloveitaly/5f9296694f30965e216a5111a7e6bbac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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