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, ...
Suggested Answer

What is a Simple Hashing Function Available in X++?

(0) ShareShare
ReportReport
Posted on by 1,036

Hello dears,

I'm trying to create an index for customer information.

The customer information has for example Name, Phone, Email, Address, and I want to create a string that concatenates all of the previous fields into one string and then generate a hash value of that string. So if any value changed in one of those fields, the hash function will produce a new value. And if nothing changed, the hash value produced should be the same (not changed).

What are available simple hash functions that I can pass to it a long string and gets me a hash value based on the string value passed?

Thanks in advance!

I have the same question (0)
  • Suggested answer
    Sheikh Sohail Profile Picture
    6,125 on at

    There is a class, Called "HashFunctions" you can use that one.

    Or you can use the C# approach as well

    docs.microsoft.com/.../system.security.cryptography.hashalgorithm.computehash

  • Suggested answer
    Luke Sha Profile Picture
    on at

    There is one HashFunctions class under Application Platform module.  Check it in the AOT.

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans