cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
12A
New Member

encoding and decoding in power automate fails

In c#  I tried Base64ToString  for input below and I get this

 

var hashStr = "INDiTF0Nq8hU6d4fHqu1dQ==";
var hash = Convert.FromBase64String( hashStr );
var sb = new StringBuilder();
foreach( var b in hash )
{
sb.Append( b.ToString("X2") );
}
sb.ToString().Dump();

 

I get output as 20D0E24C5D0DABC854E9DE1F1EABB575

 

When I try to do the same in power automate by passing dcodebase64 or base64ToString i get the following value

  • O؈�T�eK̲; x���* while with base64 I get a different output

     

    How to built dynamic expression to get same output as C# in power automate when I have my string value "INDiTF0Nq8hU6d4fHqu1dQ=="

2 REPLIES 2
Hardesh15
Super User II
Super User II

@12A 

 

I have tried encode Base 64 in flow and check with online encoder, i am getting same string. Results-

Hardesh15_0-1602081335188.png

Hardesh15_1-1602081355048.png

Hardesh15_2-1602081378494.png

 

Thanks

Hardesh

 

 

 

"

@Hardesh15 

 

but that is not correct and base64 is not equivalent to base64Tostring function used in C#. check my code and the output. you are not getting that output, we need that output as we are getting from code. there should be a way to do it in power automate

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (109,485)