Skip to main content

Notifications

Power Automate - Using Connectors
Answered

HTTP POST Connector unable to send JSON body to a C# end point

(0) ShareShare
ReportReport
Posted on by 27

Hello. 

I'm working on a HTTP POST method which send a JSON object to a C# end point. 

Method will return a string (which could be null or not).

HTTPRequest1.JPG

My problem is, dataString value is always null when I call my endpoint from Power Automate. If I call this same endpoint from UI Path (a solution to create Robot Process Automation), it's working well, my parameter is not null.

I guess it's a matter of formatting JSON body from Power automate, but I don't found the solution. 

I'm Using azure AI to parse PDF, and then extract some values to create my JSON :

HTTPRequest2.JPG

And how I create my http request... paramaters are the same between Power Automate and UI Path. The only difference is that with UI Path, I'm using an activity to serialize JSON. 
HTTPRequest3.JPG

Thanks for any help !

 

  • Verified answer
    MrFlamby Profile Picture
    MrFlamby 27 on at
    Re: HTTP POST Connector unable to send JSON body to a C# end point

    Ok, so I've finally found a solution... a bit strange but... I put this mess directly into the body of my request. Perphaps It could help someone else 🙂 
    HTTPRequest4ok.JPG

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,343

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics