web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Serialized Strings are...
Power Automate
Answered

Serialized Strings are inadvertently converted to JSON

(0) ShareShare
ReportReport
Posted on by 9
Hi,
 
I have the following situation: I receive a HTTP message in PowerAutomate (webhook). This message contains a body with some JSON-formatted data (serialized!), and signature/hash (HMAC SHA256) in the header.
Now, I want to calculate the hash to verify the message. For this I use a 3rd party action, e.g. from Encodian.
 
But I do not get the expected result!
 
Doing some examination I found out that whatever I put into the input parameters, PowerAutomate is too helpful to recognize it as JSON and prettify it. Doing so it inserts line breaks and spaces - however, this alone is not influencing the hash (strangely...). BUT: what it also does is converting decimals: "budget":2.0 becomes "budget": 2 - and this finally leads to a different hash.
It doesn't matter whether I insert the string manually directly into the HMAC action, put into a variable first, or use the body variable from my message directly without touching.
 
Is there any possibility to prevent PA from doing so? Can I force PA to pass raw data?
 
Thanks!
 
Categories:
I have the same question (0)
  • Verified answer
    JM-07111512-0 Profile Picture
    9 on at
    I found the solution by myself: You simply have to serialize the String by using the String() function in the input field:
    string(triggerBody())

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard