added function getCustomValueTableRecordId