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 :
Finance | Project Operations, Human Resources, ...
Answered

How to decrypt password? D365FO

(0) ShareShare
ReportReport
Posted on by 1,552

I did the following:

1. created a container field  with EDT encryptionField called password in a table called Table1

2. edited the update and insert methods of the table

public void update()
{
Global::handleEncryptedTablePreUpdate(this);
super();
Global::handleEncryptedTablePostUpdate(this);
}

public void insert()
{
Global::handleEncryptedTablePreInsert(this);
super();
Global::handleEncryptedTablePostInsert(this);
}

3. Added this method to the table
public edit Password passwordEdit(boolean _set, Password value)
{
return Global::editEncryptedField(this, value, fieldNum(Table1,password), _set);
}

4. In the form, I made password style = yes

Now i want to decrypt this value by code and use it somewhere. In the sql dataBase the value of the field is Hexadecimal and when i write info(con2str(password)) i get alot of numbers.

How to decrypt the value?

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    You're already discussing this question in your other thread, How to encrypt a string field? D365FO, therefore please continue there.

    By the way, this whole forum is about D365FO, therefore there is no reason for repeating it in the title of every thread.

  • Prakash3012 Profile Picture
    10 on at

    Hi,

    Were you able to decrypt the password? If yes how?

  • Martin Dráb Profile Picture
    237,880 Most Valuable Professional on at

    Please follow the link in the verified answer above to get to the right thread.

  • Suggested answer
    Prakash3012 Profile Picture
    10 on at

    Make the set parameter value to false and send the encrypted password using con2str function

    Global::editEncryptedField(test, con2Str(test.Password), fieldNum(APIIntegrationsSetup_DIS, password), false);

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans