This example access the oldrecord and selects a line on the address sublist. It retrieves a value from the sublist line that is not part of the subrecord. It also retrieves the address subrecord and reads one of the subrecord’s fields. const oldRec = scriptContext.oldRecord; let subrecold = oldRec.getSublistSubrecord({ … Continue reading to retrieve address from address subrecord
Author: Amrutha N R
Search for map reduce script from multiple record
here the data fetched from the base record INVOICE and CUSTOMER record. search created should be data to be fetched in map stage
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