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 / HTTP POST - Empty Payl...
Power Automate
Unanswered

HTTP POST - Empty Payload. JSON content expected when running in power automate

(1) ShareShare
ReportReport
Posted on by 20

Hi.

 

I've created a flow to add users devices to an Azure AD group.   Using MS Graph testing it works perfectly, but when in power automate it fails saying Empty Payload. JSON content expected.  I'm sure it's something simple that just needs tweaking on the flow somewhere, but I can't figure it out.  Any help would be really appreciated.

 

This works...


01.png

This doesn't work ...

02.png03.png

 

 

 

Categories:
I have the same question (0)
  • Dieter Gobeyn Profile Picture
    29 on at

    The error says the JSON body is invalid,

    Based on your screenshot, you missed the open and closing brackets => { and } in your HTTP body request:

    "@odata.id": "https://xxxxxxx"

    }

     

    sdf1fsd5fds1_0-1721070492863.png

     

    sdf1fsd5fds1_1-1721070531150.png

     

     

    If I've been helpful, please mark my answer as Resolved/Answered and give it a thumbs up. This will help others too.

  • Babbabooey Profile Picture
    20 on at

    Hi Dieter.

     

    Thanks for the reply, but it doesn't allow the brackets in power automate, that's why they aren't present.

    It gives the below error if you include them, and doesn't let you save the flow.

    Babbabooey_0-1721113556777.png

     

    .

  • Verified answer
    Dieter Gobeyn Profile Picture
    29 on at

    From this article:

    Logic Apps workflow definitions with the Workflow Definition Language schema

    If you have a literal string that starts with the @ character, prefix the @ character with another @ character as an escape character: @@

    So in your case, this should work:

    {
     "@@odata.id": "your value here"
    }

     

    If I've been helpful, please mark my answer as Resolved/Answered and give it a thumbs up. This will help others too.

  • Babbabooey Profile Picture
    20 on at

    I found the same article this morning, and that was the fix. Thank you 😊

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard