Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Create Channel and add Planner

(0) ShareShare
ReportReport
Posted on by 55
Hi,
I need to create a Team and a Channel and add Planner to that channel.
 
So I first create the team with
https://graph.microsoft.com/beta/teams
 
Which is the best approach to get the ID of the previous step output so its set to the owner of the Planner? 
It's on the Location attribute.
image.png
 
What I'm doing at the moment is:
 
1. Get location with: outputs('Create_Team_and_Channel')['headers']?['Location']
3. Parse JSON to get targetResourceId
image.png
{
 
"owner": "targetResourceId",
 
"title": "title-value"
}
 
Do these steps look correct or is there a more straight forward approach to create the Channel and add a Planner to it?
Thanks
  • Verified answer
    yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on at
    Re: Create Channel and add Planner

    Hi @Jorge_s 

     

    Nope. You do not have to. If you are directly using the http action, it returns the ID and if you are using a custom connector, you can define the response to return the ID. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Jorge_s Profile Picture
    55 on at
    Re: Create Channel and add Planner

    Thnaks for your reply.

    What I wasn't sure about is that if I need to perform all that steps just to get the Id of the Team created. They seem too many.

  • yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on at
    Re: Create Channel and add Planner

    Hi @Jorge_s 

     

    How are you invoking the graph api? Is it through the HTTP request or have you created a custom connector? Either way, the response returns the ID and you can use the same for passing in the next action. Api ref: https://docs.microsoft.com/en-us/graph/api/channel-post?view=graph-rest-1.0&tabs=http

     

    Hope this helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow