let locationAddresses = search.lookupFields({
id: location1, //internal id of the record
type: search.Type.LOCATION, //Type of the record
columns: [
"custrecord_jj_gstin_address1", //data need to be fetch from the record
"custrecord_jj_gstin_address2",
],
});
log.debug("locationAddresses", locationAddresses);