This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @description Retrieves a GlideRecord for the specified table and sys_id. | |
| * @param {string} tableName | |
| * @param {string} recordSysId | |
| * @returns {GlideRecord|null} Returns the GlideRecord object for the specified table and sys_id, or null if not found. | |
| */ | |
| function getRecord(tableName, recordSysId) { | |
| var grRecord = new GlideRecord(tableName); | |
| if (grRecord.get(recordSysId)) { | |
| return grRecord; |