Boost your productivity and maximize your use of NetSuite with Training delivered by Education Services expert resources. Get started today with a free LCS Explorer Pass.


Check out Oracle NetSuite upcoming events and conferences here
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!
Attention: Customers with NetSuite Electronic Bank Payment (EBP) SuiteApp, version 2020.2 QA (ID 315896) must UPDATE (do NOT uninstall) their bundle to the Production version 2022.1 (ID 416781) by December 31, 2022. Note: If users fail to manually update the Electronic Bank Payments SuiteApp within the given time window, this version of the SuiteApp (ID: 315896) will be deprecated and the account will not be updated to Leading version (2022.1) of the Electronic Bank Payments SuiteApp. Please refer to the campaign email sent to impacted customers for more information.
Update your Profile with your Support type to get your Support Type badge.
Join the NetSuite Referral Program and get rewarded for introducing your peers to the NetSuite community. ⭐️
Drumroll please...registration for #SuiteWorld 2023 is now OPEN! See you in Las Vegas October 16-19 to celebrate 25 years of NetSuite with even more learning, more networking, and more fun! The show will sell-out (again), so grab that Early Bird $300 discount and reserve your spot today!

search.lookup options

Hello everyone,

I am trying to retrieve conversion rate from Units Type but getting the following error:

Any idea what the issue could be?

Thanks :)

The script is as below:

function validateLine(scriptContext) {

    var currentRecord = scriptContext.currentRecord;

   var sublistName = scriptContext.sublistId;

  var sublistFieldName = scriptContext.fieldId;

  var sublistName = 'item';

  var sublistFieldName = 'units';


   if(sublistName === 'item' && sublistFieldName === 'units'){

  var soUnits = currentRecord.getCurrentSublistValue({

             sublistId: 'item',

             fieldId: 'units',



        var fieldLookUp = search.lookupFields({

      type: search.Type.UNITS_TYPE,

      id: soUnits,

      columns: ['conversionrate']


        var Con_Rate= fieldLookUp.conversionrate[0].value



        var SoQuantity = currentRecord.getCurrentSublistValue({

             sublistId: 'item',

             fieldId: 'quantity',




        var totalPacks = SoQuantity*soUnits



             sublistId: 'item',

             fieldId: 'custcol13',

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!


This Week's Leaders

This Month's Leaders

All Time Leaders