web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Can we use Always Encryption or Dynamic Data Masking with Navision without changing any code i.e. any OutOfBox

(0) ShareShare
ReportReport
Posted on by

Hi,

I wanted to know, if by chance is there any out of the box way to use "Always Encryption" or "Dynamic Data Masking" without changing any code inside Dynamics Navision? 

What I know is:-

1. To use Always Encryption : Dynamics NAVision code has to be changed to add .Net assemblies. Can it be done through any query in SQL Server only?

2. To use Dynamic Data Masking : Dynamics NAV table structure has to be changed to add the MASK function. Can it be done without changing the actual structure of the table column through just with the SQL query?

Thanks,

Shobhit Agarwal

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    From NAV 2017, encryption is supported.

    Codeunit 1266 Encryption Management offers an API for encryption of data.

    Encryption examples can be found in NAV in the following places:

    Page 1260 Bank Data Conv. Service Setup

    Page 1270 OCR Service Setup

    Page 5330 CRM Connection Setup

    Obviously you can fine-tune your encryption by using .NET.

  • Community Member Profile Picture
    on at

    Hi Stefano,

    Thanks for the response.

    I understand from your response that you are referring to the in-built feature of "Data Encryption" inside Navision 2017.

    community.dynamics.com/.../276.2-data-encryption

    Actually, I have a different question, I am looking for the options for "Data Encryption" from SQL Server side, I don't want to change any code inside my Navision. Is it possible?

    From SQL Server 2016, two new features has been introduced:

    1. Always Encryption

    2. Dynamic Data Masking

    With my testing, with above two features, what my results suggested is that both these requires coding change inside my Navision Development Environment, which I want to avoid.

    What I am looking out for is any Out-of-the-box solution or through any SQL Query I can achieve "Encryption/Data Masking" without changing any code.

    Please suggest!!

    Thanks,

    Shobhit Agarwal

    Associate IT Architect

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    1) With Always Encrypted, on SQL Server 2016 you can right click on a column an select Encrypt column (then select encryption type and key, that can be stored on local machine or Azure Key Vault). In NAV actually you need to decrypt the data by yourself (dotNet variable is the standard way to do that).

    2) Same as before. 

    P.S. these features are also "hot topics" for GDPR requirements, so with NAV things could change in the next months.

  • Community Member Profile Picture
    on at

    Does that mean, currently only way to use "Always Encryption" or "Dynamic Data Masking" from SQL Server 2016, definitely requires some coding change inside Navision?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    Yes, actually the translation is not native. On fields where encryption is active you've to perform encoding/decoding.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans