here the data fetched from the base record INVOICE and CUSTOMER record. search created should be data to be fetched in map stage
Author: Amrutha N R
To get individual fields from an object retrned by search.lookupField()
it is the code to get value of fields individually from an object which is returned by the search.lookupField() const curRec = scriptContext.currentRecord; let cusName = curRec.getText({ fieldId: ‘entity’ }); let cusId = curRec.getValue({ fieldId: ‘entity’ … Continue reading To get individual fields from an object retrned by search.lookupField()
Search for map reduce script from a single record
here the data fetched from a single record which is sales order search created should be data to be fetched in map stage