Inventory Balance Search using Suitescript 2.0

 // Perform a search to get bins and their available quantities

        let binSearch = search.create({

            type: ‘inventorybalance’,

            filters: [

                [‘item’, ‘anyof’, itemId],

                ‘AND’,

                [‘location’, ‘anyof’, LOCATION_ID] // Replace LOCATION_ID with the specific location ID

            ],

            columns: [

                ‘binnumber’,

                ‘available’

            ]

        });

Leave a comment

Your email address will not be published. Required fields are marked *