Permission Bypassing
Have you ever been in a situation where your script needs to capture data from another record type, but the current user's role has insufficient permissions to access it? I always encounter this issue whenever additional data is required on a client-side script. To workaround this, build a Suitelet which performs the necessary lookups and is set to run as administrator. The following example demonstrates a bypass function to obtain the email address from an employee record:
On the client script, you call the above function as followed: