Hello,
The goold old Navision Attain Hash 1.0.HashCalculator automation does not seem to work in NAV 2013. In 2009 and earlier NAV versions it works fine. But in 2013, when compiling the object, it throws an error: You cannot create an Automation Hash on Microsoft Dynamics NAV Server. You must create it on a client computer.
This message puzzles me and I have no idea how I would generate a hash in NAV 2013. If someonse can point me in the right direction I would be very grateful.
0
Comments
NAV 2013 does not let me save the codeunit. Compiling using F11 does not throw an error, but saving is not allowed for some reason. I am trying something like this:
CREATE(Hash, FALSE, FALSE);
HashString := Hash.CalculateMD5(InputString);
CLEAR(Hash);
EXIT(HashString);
(Hash: Navision Attain Hash 1.0.HashCalculator)
According to the documentation, the ClientSide boolean would be the third parameter, but I tried all combinations of TRUE and FALSE for the second and third parameters but NAV never allows saving the object. It makes me wonder whether this automation can still be used in 2013. It seems odd that something like generating a text string needs to be done clientside.
CREATE(Hash, TRUE, TRUE);
HashString := Hash.CalculateMD5(String);
CLEAR(Hash);
EXIT(HashString);
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
I would also recommend this one as you can create MD5 hash for a file or a BLOB field.
I hope this helps someone.
Thanks.