cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jorge_s
Helper I
Helper I

Create Channel and add Planner

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
1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

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!

View solution in original post

3 REPLIES 3
yashag2255
Dual Super User II
Dual Super User II

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!

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
Dual Super User II
Dual Super User II

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!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Kudoed Authors
Users online (1,062)