Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
How to access inventorynumber fields form a saved search?
Hi,
I have an item saved search that has inventorynumber fields like inventorynumber:item, inventorynumber:number, inventorynumber:location ...
Could anyone please let me know how to get these values in a script?
Is there any special syntax to get the values from a joined record? I tried the following, but its returning null.
item = searchRec.getValue('inventorynumber:item'); inventoryLocation = searchRec.getValue('inventorylocation'); qtyAvailable = searchRec.getValue('locationquantityavailable'); expDate = searchRec.getValue('expirationdate'); In the SuiteScript reference guide, it is written
"The inventorynumber search join allows users to search for lot number expiration dates, even
though the Inventory Number record is not yet exposed in SuiteScript."
0