This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hello,
I have a GET API that I want to call to get my data.
In Power query, I have to send dynamic values in my GET URL :
Here is the Java code provided by the API :
String text = apiToken + sTimestamp;
byte[] defaultBytes = text.getBytes();
MessageDigest algorithm = MessageDigest.getInstance("MD5");
algorithm.reset();
algorithm.update(defaultBytes);
byte messageDigest[] = algorithm.digest();
StringBuffer hexString = new StringBuffer();
for (int i = 0; i < messageDigest.length; i++) {
String hex = Integer.toHexString(0xFF & messageDigest[i]);
if (hex.length() == 1)
hexString.append('0');
hexString.append(hex);
}
String md5Text = hexString + "";
return md5Text;
Is there a way to do this in Power Query directly by any chance?
I tried to search for ways to hash MD5 in Power Query directly but I can't find anything.
Any help would be appreciated.
Solved! Go to Solution.
Hello, @pr92 ,
I am not aware of native way, however, here's workaround using public API to hash it:
here's M code, you can turn it into function:
let
valueToHash = "hello",
md5 = Web.Contents("api.hashify.net", [RelativePath="/hash/md5/hex?value="&valueToHash]),
openJson = Json.Document(md5)[Digest]
in
openJson
edit:
I am gonna give you the function also here:
let
hastToMD5 = (valueToHash as text)=>
let
md5 = Web.Contents("api.hashify.net", [RelativePath="/hash/md5/hex?value="&valueToHash]),
openJson = Json.Document(md5)[Digest]
in
openJson
in
hastToMD5and then you call it like this:
Hello, @pr92 ,
I am not aware of native way, however, here's workaround using public API to hash it:
here's M code, you can turn it into function:
let
valueToHash = "hello",
md5 = Web.Contents("api.hashify.net", [RelativePath="/hash/md5/hex?value="&valueToHash]),
openJson = Json.Document(md5)[Digest]
in
openJson
edit:
I am gonna give you the function also here:
let
hastToMD5 = (valueToHash as text)=>
let
md5 = Web.Contents("api.hashify.net", [RelativePath="/hash/md5/hex?value="&valueToHash]),
openJson = Json.Document(md5)[Digest]
in
openJson
in
hastToMD5and then you call it like this:
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 27 | |
| 25 | |
| 23 | |
| 19 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 46 | |
| 19 | |
| 19 | |
| 18 |