In ServiceNow, there is always a need to return GlideRecord on the client side for a specific field due several reason. for example , checking whether the caller is VIP or no? or to check if the customer has a parent company, and many other reasons depend on the business needs.
Many ServiceNow developers when they do write a script for returning GlideRecord on the client side they do it without a call back function that makes the script runs synchronously causing a hang, while waiting response back from the server.