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

How to do hashing for specific values?

(0) ShareShare
ReportReport
Posted on by 465

From what i understood that hashing can include specific value based on what i want to hash. Also you can't decrypit it.

For example:

if i selected multiple sales orders (salesId =1,2 and 3)  using user x  ( i want to do specific hashing for those) and from what i understood if i click those sales Ids again i will get the same hashing value.

But if i choose different ones i'll get a new value. So the hashing is going to take sales ids and user i'm standing on to make a unique hashed value.

So when i multi select those sales Ids and click a customized button that does the hashing, how can i do hashing based on an array of sales Ids and the user i'm standing on?

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Just collect all the sales ids and current user id into one string, and hash it. 

  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,093 on at

    Hi D365FO user,

    There is a "HashFunctions" class used for this purpose. But you need to convert your array to a string value before you can get hash.

    Out of interest, what is the requirement to use a hash? Could you, provide a use case?

  • Suggested answer
    zhifeng Profile Picture
    on at

    You can refer DimensionAttributeSetStorage Class methods DimensionAttributeSetStorage::getHash Method and  explore this class to perform more functionality.

  • D365FO user Profile Picture
    465 on at

    Hi,

    I used multiselection helper class and added the records i'm standing on in a list.

    Then i used the code in this article "360dynamics.blogspot.com/.../ax-2012-calculating-hash-value-of.html" i passed the list to the method shown in the article then i converted the values from the list to a string and used the code to do the hashing.

    I couldn't find a class called HashFucntions and how i'm going to use the dimensionAttributeSetStorage instead of what i did?

    Sergie, an example for hashing, is that when calling an API, i wanted to replace a certain value in the Service URL with a hashed value that the recipient will understand and act accordingly if he saw that specific hash value.

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi,

    Maybe HashFunctions class was added recently (at least I see it in 10.0.8). And by the way, you have a typo in class name in the last message.

    The only difference I see that,

    HashFunctions uses Microsoft.Dynamics.Framework.Hashing

    DimensionAttributeSetStorage (DimensionHash) uses Microsoft.Dynamics.AX.Fim.Dimensions.Hash

    AX2012 article uses .net implementation System.Security.Cryptography

    Most likely all hashing functions from "Dynamics" namespace utilize .net System.Security.Cryptography library.

    But do you still have some issues?

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 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans