System.EncryptionKeyExists() Method

Version: Available or changed with runtime version 1.0.

Checks whether an encryption key for the current tenant is present on the server tenant.

Syntax

Ok :=   System.EncryptionKeyExists()

Note

This method can be invoked without specifying the data type name.

Return Value

Ok
 Type: Boolean

Example

This code example performs checks to determine if an encryption key already exists.

if EncryptionEnabled then  
        if EncryptionKeyExists then  
          Message('Encryption has been enabled and the encryption key is present in this server instance')  
        else  
          Message('Encryption has been enabled but the encryption key is not present on this server instance')  
else  
  Message('Encryption has not been enabled');  

See Also

System Data Type
Get Started with AL
Developing Extensions