getRecordName function

Get record name.