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 / Stuck on Graph HTTP call
Power Automate
Unanswered

Stuck on Graph HTTP call

(0) ShareShare
ReportReport
Posted on by 31

I'm trying to send an HTTP PUT to update the manager attribute on a user via Graph API. 

 

I've tested the request in the graph explorer, and it works fine.

 

I've taken the exact bod content from explorer & put it in the body of a power automate http action, and it gives an instant error about invalid JSON. I'm following the documentation for the function here: https://docs.microsoft.com/en-us/graph/api/user-post-manager?view=graph-rest-1.0&tabs=http

I have determined via graph explorer that the call works with both a UPN and/or an object ID for the 2 users in question.

In graph explorer, my request is: 

PGordon1_0-1630504603185.png

when I run this query, my test user is updated & I see the manager is assigned.

 

My flow action is:

PGordon1_1-1630504726541.png

The body is a direct copy/paste from explorer... - the fixed size of the action card munges the line wrapping a bit...

 

When I save this I immediately get an error: 

PGordon1_2-1630504855780.png

So I can't even test it, since the flow checker isn't happy. For the life of me I cannot figure out how else to format the input... according to the documentation, and the example from graph explorer, that's exactly what it should be?!...

 

NB: my authentication block is fine... I have another action immediately before this one which creates the user also via a graph call, that bit works fine...

 

Can anyone offer any insight?

 

TIA

Paul G.

 

Categories:
I have the same question (0)
  • PGordon1 Profile Picture
    31 on at

    I figured it out... 🙂

     

    In the body, where I have the "@" symbol, I need to double-it up... i.e "@@" - no idea why, but I saw a reference to it in another blog, gave it a whirl, and it works!

     

    1 problem solved, 99 more to go....

     

    P

     

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard