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!

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (3,040)