Microsoft Forms as a Tab in Teams using graph API in Power Automate

Published Feb 02 2022 11:38 PM 2,457 Views
Senior Member

This article is focused on how you can add Forms as a Website Tab in Microsoft Teams using Post Tab in Teams channel graph API

From the below shown figure 1.1 You can see the whole layout of the Power Automate flow which when triggered will add Form into Teams channel as a Tab

ShrushtiShah_0-1643783152544.png

 

Fig 1.1 – Post Forms as Tab in Microsoft Teams Power Automate Flow diagram

Before digging more into Power Automate, Create an Azure AD App by giving the Application permissions required for Add Tabs to Channel API just like shown in Fig 1.2

ShrushtiShah_1-1643783152566.png

 

Fig 1.2 – Azure AD App with Application Permissions for Adding Tabs to Channel graph API

 

Navigate to your Resource Group as shown in Fig 1.3, and copy the Client ID, Tenant ID, Create the Client Secret and copy the Client Secret Value and save all these values in a notepad as this will be used in the later steps

ShrushtiShah_2-1643783152584.png

 

Fig 1.3 – Azure AD App Details

Note: Create a Microsoft Form in your tenant and Save the Form Link, you can get the Form link by clicking on the Share Button and copying the link. Save the link in the notepad as it will be used in the Power Automate Flow. Look into the Fig 1.4 to know on how you can get Forms Link

ShrushtiShah_3-1643783152590.png

 

Fig 1.4 – Microsoft Forms URL

 

Now it’s the time to dig into creating Power Automate Flow which when triggered will add Forms a Tab to your Teams Channel

Step 1: Create a manual trigger flow

Step 2: Look into the Fig 1.5, Select Initialize Variable, give a name as FormsURL and give the value as Forms Link which you saved in the notepad as mentioned above from Fig 1.4. Select the type as string

ShrushtiShah_4-1643783152592.png

 

Fig 1.5 – Initialize variable to save Forms URL

 

 

 

Step 3: Look into Fig 1.6, Select Initialize Variable, give a name as Client ID and give the value of Azure AD App Client ID which we saved in the notepad. Select the type of variable as String

 

ShrushtiShah_5-1643783152594.png

 

Fig 1.6: Initialize Client ID string type variable to store Azure AD App Client ID value

 

Step 4: Look into Fig 1.7, Select Initialize Variable, give a name as Client Secret and give the value of Azure AD App Client Secret which we saved in the notepad. Select the type of variable as String

ShrushtiShah_6-1643783152595.png

 

Fig 1.7: Initialize Client Secret string type variable to store Azure AD App Client Secret value

 

Step 5: Look into Fig 1.8, Select Initialize Variable, give a name as Tenant ID and give the value of Azure AD App Tenant ID which we saved in the notepad. Select the type of variable as String

ShrushtiShah_7-1643783152597.png

 

Fig 1.8: Initialize Tenant ID string type variable to store Azure AD App Tenant ID value

 

Step 6: Now we will get the Team and Channel where we want to add Forms Tab, Select Get Teams connector and give the Team Name like shown in Fig 1.9

ShrushtiShah_8-1643783152599.png

 

Fig 1.9 – Get Team and enter the value of the Team Name

Now select, List Channels connector and give the team’s name, this will list all the channels in the given Team.

Voila, It’s the time to use the graph API (Post Tab in Channels) in the HTTP Action.

Step 7: Graph API – POST Request

Request URL: https://graph.microsoft.com/v1.0/teams/{id}/channels/{id}/tabs

In the request URL : TeamsID  - select dynamically Team ID from the Get Team , For Channel ID – select dynamically Channel ID from List Channels

Request Body: {

  "displayName": "Microsoft Forms",

  "teamsApp@odata.bind": "https://graph.microsoft.com/beta/appCatalogs/teamsApps/com.microsoft.teamspace.tab.web",

  "configuration": {

    "entityId": "2DCA2E6C7A10415CAF6B8AB6661B3154",

    "contentUrl": "@{variables('FormsURL')}",

    "websiteUrl": "@{variables('FormsURL')}",

    "removeUrl": ""

  },

  "teamsAppId": "81fef3a6-72aa-4648-a763-de824aeafb7d "

}

For, Content URL and Website URL in the HTTP Request Body, select dynamically the Forms URL variable which we declared at the top of the Flow

Teams APP ID for Website tab will be:

To know more on Teams APP ID refer; Configuring built-In Tab types in Teams

In this use-case, For Microsoft Forms the teamsAppID is:

 81fef3a6-72aa-4648-a763-de824aeafb7d

Look into Fig 1.10 which shows the Post Request with the Request body and URL

ShrushtiShah_9-1643783152606.png

 

Fig 1.10- Post Tabs in Teams HTTP Request

 Now it’s the time to authenticate your given API as shown in Fig 1.11, In the same HTTP Request action, scroll down and select Active Directory OAuth and give the Tenant ID, Client ID, Client Secret variables as value for authentication

ShrushtiShah_10-1643783152610.png

 

Fig 1.11 – Authenticate graph API using Azure AD OAuth

The Power Automate flow is now ready to test. Click on Test and select Manually as we have added Manual trigger for the flow to run. Once the Flow runs you will see Microsoft Forms added to your Teams General Channel as Tab, like shown in Fig 1.12

 

ShrushtiShah_11-1643783152619.png

 

Fig 1.12 – Microsoft Forms added as Tab in Teams Channel using Graph API in Power Automate

 

I hope this article helps you in understanding how you can leverage graph API In HTTP request in Power Automate

Stay tuned for my upcoming blogs.

Keep Reading, Keep Sharing!

%3CLINGO-SUB%20id%3D%22lingo-sub-3103115%22%20slang%3D%22en-US%22%3EMicrosoft%20Forms%20as%20a%20Tab%20in%20Teams%20using%20graph%20API%20in%20Power%20Automate%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3103115%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20article%20is%20focused%20on%20how%20you%20can%20add%20Forms%20as%20a%20Website%20Tab%20in%20Microsoft%20Teams%20using%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-post-tabs%3Fview%3Dgraph-rest-1.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPost%20Tab%20in%20Teams%20channel%20graph%20API%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EFrom%20the%20below%20shown%20figure%201.1%20You%20can%20see%20the%20whole%20layout%20of%20the%20Power%20Automate%20flow%20which%20when%20triggered%20will%20add%20Form%20into%20Teams%20channel%20as%20a%20Tab%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ShrushtiShah_0-1643783152544.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344449i83A9450ABE75A9B2%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ShrushtiShah_0-1643783152544.png%22%20alt%3D%22ShrushtiShah_0-1643783152544.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFig%201.1%20%E2%80%93%20Post%20Forms%20as%20Tab%20in%20Microsoft%20Teams%20Power%20Automate%20Flow%20diagram%3C%2FP%3E%0A%3CP%3EBefore%20digging%20more%20into%20Power%20Automate%2C%20Create%20an%20Azure%20AD%20App%20by%20giving%20the%20Application%20permissions%20required%20for%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fchannel-post-tabs%3Fview%3Dgraph-rest-1.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAdd%20Tabs%20to%20Channel%20API%3C%2FA%3E%20just%20like%20shown%20in%20Fig%201.2%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ShrushtiShah_1-1643783152566.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344451i687AAD828201C38D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ShrushtiShah_1-1643783152566.png%22%20alt%3D%22ShrushtiShah_1-1643783152566.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFig%201.2%20%E2%80%93%20Azure%20AD%20App%20with%20Application%20Permissions%20for%20Adding%20Tabs%20to%20Channel%20graph%20API%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENavigate%20to%20your%20Resource%20Group%20as%20shown%20in%20Fig%201.3%2C%20and%20copy%20the%20Client%20ID%2C%20Tenant%20ID%2C%20Create%20the%20Client%20Secret%20and%20copy%20the%20Client%20Secret%20Value%20and%20save%20all%20these%20values%20in%20a%20notepad%20as%20this%20will%20be%20used%20in%20the%20later%20steps%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ShrushtiShah_2-1643783152584.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344450i0150C28AA7E5C7F1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ShrushtiShah_2-1643783152584.png%22%20alt%3D%22ShrushtiShah_2-1643783152584.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFig%201.3%20%E2%80%93%20Azure%20AD%20App%20Details%3C%2FP%3E%0A%3CP%3ENote%3A%20Create%20a%20Microsoft%20Form%20in%20your%20tenant%20and%20Save%20the%20Form%20Link%2C%20you%20can%20get%20the%20Form%20link%20by%20clicking%20on%20the%20Share%20Button%20and%20copying%20the%20link.%20Save%20the%20link%20in%20the%20notepad%20as%20it%20will%20be%20used%20in%20the%20Power%20Automate%20Flow.%20Look%20into%20the%20Fig%201.4%20to%20know%20on%20how%20you%20can%20get%20Forms%20Link%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ShrushtiShah_3-1643783152590.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344453i6707275E71B0C3AB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ShrushtiShah_3-1643783152590.png%22%20alt%3D%22ShrushtiShah_3-1643783152590.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFig%201.4%20%E2%80%93%20Microsoft%20Forms%20URL%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20it%E2%80%99s%20the%20time%20to%20dig%20into%20creating%20Power%20Automate%20Flow%20which%20when%20triggered%20will%20add%20Forms%20a%20Tab%20to%20your%20Teams%20Channel%3C%2FP%3E%0A%3CP%3EStep%201%3A%20Create%20a%20manual%20trigger%20flow%3C%2FP%3E%0A%3CP%3EStep%202%3A%20Look%20into%20the%20Fig%201.5%2C%20Select%20Initialize%20Variable%2C%20give%20a%20name%20as%20FormsURL%20and%20give%20the%20value%20as%20Forms%20Link%20which%20you%20saved%20in%20the%20notepad%20as%20mentioned%20above%20from%20Fig%201.4.%20Select%20the%20type%20as%20string%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ShrushtiShah_4-1643783152592.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344454iCDEB9EC278C5EC98%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ShrushtiShah_4-1643783152592.png%22%20alt%3D%22ShrushtiShah_4-1643783152592.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFig%201.5%20%E2%80%93%20Initialize%20variable%20to%20save%20Forms%20URL%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStep%203%3A%20Look%20into%20Fig%201.6%2C%20Select%20Initialize%20Variable%2C%20give%20a%20name%20as%20Client%20ID%20and%20give%20the%20value%20of%20Azure%20AD%20App%20Client%20ID%20which%20we%20saved%20in%20the%20notepad.%20Select%20the%20type%20of%20variable%20as%20String%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ShrushtiShah_5-1643783152594.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344452iFA6202887E706EEF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ShrushtiShah_5-1643783152594.png%22%20alt%3D%22ShrushtiShah_5-1643783152594.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFig%201.6%3A%20Initialize%20Client%20ID%20string%20type%20variable%20to%20store%20Azure%20AD%20App%20Client%20ID%20value%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStep%204%3A%20Look%20into%20Fig%201.7%2C%20Select%20Initialize%20Variable%2C%20give%20a%20name%20as%20Client%20Secret%20and%20give%20the%20value%20of%20Azure%20AD%20App%20Client%20Secret%20which%20we%20saved%20in%20the%20notepad.%20Select%20the%20type%20of%20variable%20as%20String%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ShrushtiShah_6-1643783152595.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344455i3342922725C2BE46%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ShrushtiShah_6-1643783152595.png%22%20alt%3D%22ShrushtiShah_6-1643783152595.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFig%201.7%3A%20Initialize%20Client%20Secret%20string%20type%20variable%20to%20store%20Azure%20AD%20App%20Client%20Secret%20value%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStep%205%3A%20Look%20into%20Fig%201.8%2C%20Select%20Initialize%20Variable%2C%20give%20a%20name%20as%20Tenant%20ID%20and%20give%20the%20value%20of%20Azure%20AD%20App%20Tenant%20ID%20which%20we%20saved%20in%20the%20notepad.%20Select%20the%20type%20of%20variable%20as%20String%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ShrushtiShah_7-1643783152597.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344456i618FF64D02B87578%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ShrushtiShah_7-1643783152597.png%22%20alt%3D%22ShrushtiShah_7-1643783152597.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFig%201.8%3A%20Initialize%20Tenant%20ID%20string%20type%20variable%20to%20store%20Azure%20AD%20App%20Tenant%20ID%20value%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStep%206%3A%20Now%20we%20will%20get%20the%20Team%20and%20Channel%20where%20we%20want%20to%20add%20Forms%20Tab%2C%20Select%20Get%20Teams%20connector%20and%20give%20the%20Team%20Name%20like%20shown%20in%20Fig%201.9%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ShrushtiShah_8-1643783152599.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344457i78DBB5DBA9E87915%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ShrushtiShah_8-1643783152599.png%22%20alt%3D%22ShrushtiShah_8-1643783152599.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFig%201.9%20%E2%80%93%20Get%20Team%20and%20enter%20the%20value%20of%20the%20Team%20Name%3C%2FP%3E%0A%3CP%3ENow%20select%2C%20List%20Channels%20connector%20and%20give%20the%20team%E2%80%99s%20name%2C%20this%20will%20list%20all%20the%20channels%20in%20the%20given%20Team.%3C%2FP%3E%0A%3CP%3EVoila%2C%20It%E2%80%99s%20the%20time%20to%20use%20the%20graph%20API%20(Post%20Tab%20in%20Channels)%20in%20the%20HTTP%20Action.%3C%2FP%3E%0A%3CP%3EStep%207%3A%20Graph%20API%20%E2%80%93%20POST%20Request%3C%2FP%3E%0A%3CP%3ERequest%20URL%3A%20%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fteams%2F%257bid%257d%2Fchannels%2F%257bid%257d%2Ftabs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fteams%2F%7Bid%7D%2Fchannels%2F%7Bid%7D%2Ftabs%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EIn%20the%20request%20URL%20%3A%20TeamsID%20%26nbsp%3B-%20select%20dynamically%20Team%20ID%20from%20the%20Get%20Team%20%2C%20For%20Channel%20ID%20%E2%80%93%20select%20dynamically%20Channel%20ID%20from%20List%20Channels%3C%2FP%3E%0A%3CP%3ERequest%20Body%3A%20%7B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%22displayName%22%3A%20%22Microsoft%20Forms%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%22teamsApp%40odata.bind%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2FappCatalogs%2FteamsApps%2Fcom.microsoft.teamspace.tab.web%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2FappCatalogs%2FteamsApps%2Fcom.microsoft.teamspace.tab.web%3C%2FA%3E%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%22configuration%22%3A%20%7B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22entityId%22%3A%20%222DCA2E6C7A10415CAF6B8AB6661B3154%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22contentUrl%22%3A%20%22%40%7Bvariables('FormsURL')%7D%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22websiteUrl%22%3A%20%22%40%7Bvariables('FormsURL')%7D%22%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22removeUrl%22%3A%20%22%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%7D%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%20%22teamsAppId%22%3A%20%2281fef3a6-72aa-4648-a763-de824aeafb7d%20%22%3C%2FP%3E%0A%3CP%3E%7D%3C%2FP%3E%0A%3CP%3EFor%2C%20Content%20URL%20and%20Website%20URL%20in%20the%20HTTP%20Request%20Body%2C%20select%20dynamically%20the%20Forms%20URL%20variable%20which%20we%20declared%20at%20the%20top%20of%20the%20Flow%3C%2FP%3E%0A%3CP%3ETeams%20APP%20ID%20for%20Website%20tab%20will%20be%3A%3C%2FP%3E%0A%3CP%3ETo%20know%20more%20on%20Teams%20APP%20ID%20refer%3B%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fteams-configuring-builtin-tabs%23%3A~%3Atext%3DFor%2520document%2520library%2520tabs%252C%2520the%2Ctab.%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EConfiguring%20built-In%20Tab%20types%20in%20Teams%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EIn%20this%20use-case%2C%20For%20Microsoft%20Forms%20the%20teamsAppID%20is%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B81fef3a6-72aa-4648-a763-de824aeafb7d%3C%2FP%3E%0A%3CP%3ELook%20into%20Fig%201.10%20which%20shows%20the%20Post%20Request%20with%20the%20Request%20body%20and%20URL%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ShrushtiShah_9-1643783152606.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344459iF4D598B3DBC3431B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ShrushtiShah_9-1643783152606.png%22%20alt%3D%22ShrushtiShah_9-1643783152606.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFig%201.10-%20Post%20Tabs%20in%20Teams%20HTTP%20Request%3C%2FP%3E%0A%3CP%3E%26nbsp%3BNow%20it%E2%80%99s%20the%20time%20to%20authenticate%20your%20given%20API%20as%20shown%20in%20Fig%201.11%2C%20In%20the%20same%20HTTP%20Request%20action%2C%20scroll%20down%20and%20select%20Active%20Directory%20OAuth%20and%20give%20the%20Tenant%20ID%2C%20Client%20ID%2C%20Client%20Secret%20variables%20as%20value%20for%20authentication%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ShrushtiShah_10-1643783152610.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344458iC5EBF58EE177B67C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ShrushtiShah_10-1643783152610.png%22%20alt%3D%22ShrushtiShah_10-1643783152610.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFig%201.11%20%E2%80%93%20Authenticate%20graph%20API%20using%20Azure%20AD%20OAuth%3C%2FP%3E%0A%3CP%3EThe%20Power%20Automate%20flow%20is%20now%20ready%20to%20test.%20Click%20on%20Test%20and%20select%20Manually%20as%20we%20have%20added%20Manual%20trigger%20for%20the%20flow%20to%20run.%20Once%20the%20Flow%20runs%20you%20will%20see%20Microsoft%20Forms%20added%20to%20your%20Teams%20General%20Channel%20as%20Tab%2C%20like%20shown%20in%20Fig%201.12%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ShrushtiShah_11-1643783152619.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344460iE92A181563E437B5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ShrushtiShah_11-1643783152619.png%22%20alt%3D%22ShrushtiShah_11-1643783152619.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFig%201.12%20%E2%80%93%20Microsoft%20Forms%20added%20as%20Tab%20in%20Teams%20Channel%20using%20Graph%20API%20in%20Power%20Automate%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20hope%20this%20article%20helps%20you%20in%20understanding%20how%20you%20can%20leverage%20graph%20API%20In%20HTTP%20request%20in%20Power%20Automate%3C%2FP%3E%0A%3CP%3EStay%20tuned%20for%20my%20upcoming%20blogs.%3C%2FP%3E%0A%3CP%3EKeep%20Reading%2C%20Keep%20Sharing!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3103115%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20article%20is%20focused%20on%20how%20you%20can%20add%20Forms%20as%20a%20Website%20Tab%20in%20Microsoft%20Teams%20using%20Post%20Tab%20in%20Teams%20Channel%20graph%20API%20using%20Power%20Automate%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ShrushtiShah_1-1643725754091.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F344164iF223F3C1E1820B24%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ShrushtiShah_1-1643725754091.png%22%20alt%3D%22ShrushtiShah_1-1643725754091.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3103115%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPower%20Automate%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%20Tab%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Feb 02 2022 11:38 PM
Updated by: