Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement