Use GlideRecord's apply template method to set values based on an existing template.
https://ohhgr.blogspot.com/2022/11/new-hire.html