Set the Encryption Context ID in Script

Set the Encryption Context ID in Script

Set the Encryption Context ID in Script

A function, setContextID, is provided to set the encryption context ID of an encrypted field in script.

The argument to the function is the sys_id of the encryption context you wish to use. The following example creates records with an encrypted field,
u_subspecies, encrypted by the "Species Security" encryption context.

Note: The user who runs this script must have access to the encryption context.