GlideRecord Use getUniqueValue to get sys_id. Use newRecord instead of instantiating to get a new record with default values. Dot-walking on GlideRecord returns GlideElement, use getRefRecord to get GlideRecord. GlideForm Use getBooleanValue for boolean fields.