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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Expiscornovus Profile Picture

Expiscornovus 201 Most Valuable Professional

#2
David_MA Profile Picture

David_MA 174 Super User 2025 Season 2

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard