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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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