Get search.lookupfields column

The search.lookupfields is used to search for one or more body fields on the record. Inorder to get the column fields from the search, use the below code as reference

const custValues = search.lookupFields({
          type: search.Type.CUSTOMER,
          id: customer,
          columns: ['custentity_sca_customer_allowsfuelcharge', 'custentity_sca_apply_ehs_fee']
        })
        const custFuelSurcharge = custValues['custentity_sca_customer_allowsfuelcharge']
        const custApplyEHSFee = custValues['custentity_sca_apply_ehs_fee']

Leave a comment

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