Checks if the tenant is configured to allow encryption.

Note
This does not mean that an encryption key is present on the Microsoft Dynamics NAV Server, only that the system is expecting to use one. This situation can arise if multiple servers are in use but the encryption key has not yet been deployed to each of them.

Bool CANENCRYPT()

Property Value/Return Value

Value: Boolean

Returns true if the tenant is configured to allow encryption, otherwise false.

Example

This code example checks if the tenant is configured for encryption.

 Copy Code
IF ENCRYPTIONENABLED THEN
        MESSAGE('Encryption has been enabled')
      ELSE
        MESSAGE('Encryption has not been enabled')

See Also