Skip to main content

Notifications

Power Automate - General Discussion
Unanswered

Hex to Text in flow

(0) ShareShare
ReportReport
Posted on by 252

Is there a way to convert a Hex String,coming from a HTTP Request, to Text in a Flow?

  • Chriddle Profile Picture
    Chriddle 7,371 on at
    Re: Hex to Text in flow

    I can't see what base64 has to do with this 🤔

     

     

    Chriddle_0-1717594202404.png

     

    Hex2Ascii (Compose)

    Add more values from Ascii table

    {
    	"21": "!",
    
    	"30": "0",
    	"31": "1",
    
    	"41": "A",
    	"42": "B",
    
    	"61": "a",
    	"62": "b",
    	"63": "c"
    
    }

     

    Select

    From

    chunk('6162633031', 2)

    Map

    outputs('Hex2Ascii')[item()]

     

    Compose

    join(body('Select'), '')

     

    Chriddle_1-1717598448975.png

     

  • VictorIvanidze Profile Picture
    VictorIvanidze 11,859 on at
    Re: Hex to Text in flow

    Hi @tlraghavendra 

    There exists such thing as "byte array" in Power Automate? Really?

    Where can I read about that?

  • Skybluekid Profile Picture
    Skybluekid 252 on at
    Re: Hex to Text in flow

    Hi @tlraghavendra 

    I am being a bit slow, I am struggling with the first compose action on how to convert the Hex String to byte array.

  • tlraghavendra Profile Picture
    tlraghavendra 22 on at
    Re: Hex to Text in flow

    Hi @Skybluekid 

     

    Yes, you can convert a Hex String to Text in a Power Automate flow. You can use the "Compose" action to convert the Hex String to a byte array, and then use the "Data Operations - Compose" action with the expression base64ToString(outputs('Compose')) to convert the byte array to Text. This will give you the Text representation of the Hex String in your flow.

     

    Regards,

    Raghavendra

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,580

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,909

Leaderboard