to retrieve address from address subrecord

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

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()