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 / Graph Create Team Work...
Power Automate
Answered

Graph Create Team Works from Graph Explorer Not Flow

(0) ShareShare
ReportReport
Posted on by 370

I am trying to create a new team via Graph. Simple Example which works fine from Graph Explorer.

Post v1.0  https://graph.microsoft.com/v1.0/teams

 

{
 "template@odata.bind":"https://graph.microsoft.com/v1.0/teamsTemplates('standard')",
 "displayName":"2158",
 "description":"My Sample Team Description",
 "members":[
 {
 "@odata.type":"#microsoft.graph.aadUserConversationMember",
 "roles":["owner"],
 "user@odata.bind":"https://graph.microsoft.com/v1.0/users('1234545-1a63-4760-89da-360d22144bb8')"
 }
 ]
}

 

 When I insert the same body into a Power Automate HTTP request, I cannot save the Flow. I get a Flow Checker Error of

"Fix Invalid expression(s) for the input parameters of operation 'HTTP_Post_to Graph' (my action name).

This is using either of client secret or an authentication token - my Graph permissions in the app reg are very extensive.

 

If I remove the members block I can save the Flow but then it says I cannot create a team with no owners which makes sense of course, but I can't see how to add members.

 

Using the beta version of this Teams call the syntax is different and this works:

 

{
 "template@odata.bind": "https://graph.microsoft.com/v1.0/teamsTemplates('standard')",
 "displayName": "Team 1",
 "description": "My Sample Team Description",
 "owners@odata.bind": [
 "https://graph.microsoft.com/v1.0/users('111111-1a63-4760-89da-360d22144bb8')"
 ]
}

 

 

but the client does not want beat used in production fair enough.

 

Am I missing something here? I know MS advise creating the group first and then the Team but the requirements require this to be as fast as possible, and having to wait for the group creation causes issues. 

 

I am using the exact example from the MS docs for this (example 2). As I say, Graph Explorer works, but I cannot save the Flow at all.

 

Categories:
I have the same question (0)
  • Verified answer
    VictorIvanidze Profile Picture
    13,073 on at

    Could you please tell me the exact name of the Power Automate action you are using to execute the GRAPH request?

  • mjburley Profile Picture
    370 on at

    @VictorIvanidze . Thanks for the prompt.

     

    I was using the HTTP (premium). I tried with HTTP Azure AD and that worked a lot better.

  • Verified answer
    mjburley Profile Picture
    370 on at

    For anyone else who finds this, it seems to be  a 'feature'.

     

    To resolve, you need to add a second @ symbol before any 

    @OData.type

    in the body, to make it :

    @@odata.type

     Then it can be saved and will work. Note, when you re-edit the Flow the second @ will have gone again but it will still work, unless you edit that action again.

  • JesseV Profile Picture
    127 on at

    @mjburley  wish I had found your comment sooner - through the mists of time -> thanks.. I had this exact issue  (see Re: Graph API json within json of body format (Cre... - Power Platform Community (microsoft.com) ) 

     

    Thanks again! 

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