Deployment Guide - OfficeDev/microsoft-teams-apps-coworker-appreciation GitHub Wiki
Shoutout for Teams Prototype – Setup Guide
Step 1 – Creating the SharePoint Site
- Open https://portal.office.com and logon with a user who has permissions to create SharePoint Online sites.
- Click on the App Launcher and select SharePoint.
- Click Create Site. Select Team Site.
- Provide a name for the Site, in Privacy Settings select Private and make sure to select English as the language for the site. Click Next.
- Optionally provide additional users to be administrators for the site and click Finish.
- Save the URL for the site you created, you will need that in the future.
- Configure permissions appropriately. You need to give permissions to the users that will use the app.
Step 2 – Create the SharePoint Lists importing and using the ShoutOut_DeploySPLists flow
- Open https://powerautomate.microsoft.com and logon with a user who has permissions to create/import flows.
- On the left bar, click My Flows.
- On the upper bar, click Import.
- Click Upload and select the file ShoutOut_DeploySPLists_20201202212443.zip and click Open.
- Click Import.
- In Related Resources, click Select during import. If you used Power Automate with SharePoint before, you may have a SharePoint connection already created. If that is the case, select one of the available connections and click Save. If you do not have any SharePoint connections available, click Create New, Click New Connection and create a new SharePoint connection to be used in Power Automate.
- Click Import.
- When the Import process finish, click My Flows. You will see a new flow named ShoutOut_DeploySPLists.
- Select it and click Edit.
- Expand “Variable - Target Site for Lists” and replace the value with the one for the website created on Step 1.
- Click Save.
- Click My Flows, select the ShoutOut_DeploySPLists flow and click Run.
- Click Run Flow.
- Click Done.
Step 3 – Import the Power Apps and change SharePoint connections
- Open https://powerapps.microsoft.com and logon with a user who has permissions to create/import powerapps.
- Click Apps.
- Click Import canvas app.
- Click Upload.
- Select the Shoutouts_20201204001138.zip file and click Open.
- Click Import.
- In Related Resources, click Select during import. If you used Power Apps with SharePoint before, you may have a SharePoint connection already created. If that is the case, select one of the available connections and click Save. If you do not have any SharePoint connections available, click Create New, Click New Connection and create a new SharePoint connection to be used in Power Apps.
- Click Import.
- Click Apps.
- Select SHOUTOUT and click Edit.
- If required, click Allow.
- On the left bar, select Data.
- Remove the SharePoint connections with names Shoutout, and ShoutoutSummary.
- In the search box on top of the left bar, search for Sharepoint, and click Sharepoint.
- Select one of the available connections for Sharepoint, if required create one.
- On the right-hand bar, type the url of the SharePoint site created on the first step and click connect.
- Select Shoutout, and ShoutoutSummary and click Connect
- Save the App. Publish and share it with all users.
Step 4 – Configure the Teams App
- Open https://powerapps.microsoft.com and logon with a user who has permissions to create/import PowerApps.
- Click Apps.
- Select SHOUTOUT and click ... on the right side.
- Select Details.
- Copy the values available on App ID, and Web Link. You will need those on the subsequent steps.
- Extract the Shoutouts Teams App.zip file and edit the manifest.json file.
- Replace the tag [APPID] by value you have for App ID.
- Replace the tag [WEBLINK] by the value you have for Web Link.
- Save the manifest.json file.
- Zip the manifest.json, color.png and outline.png into a zip file. Make sure all the files are in the root of the zip file (no sub folders).
- Use the zip file to create an app policy to deploy the app or load it for test using the Apps button on your Teams client.
Step 5 – Import and configure the ShoutOut_Summary flow
- Open https://powerautomate.microsoft.com and logon with a user who has permissions to create/import flows.
- On the left bar, click My Flows.
- On the upper bar, click Import.
- Click Upload and select the file ShoutOut_Summary_20201202213334.zip and click Open.
- Click Import.
- In Related Resources, click Select during import. If you used Power Automate with SharePoint, Teams and Office 365 before, you may have connections already created. If that is the case, select one of the available connections and click Save. If you do not have any connections available, click Create New, Click New Connection and create a new connection to be used in Power Automate.
- Click Import.
- When the Import process finish, click My Flows. You will see a new flow named ShoutOut_Summary.
- Select it and click Edit.
- Expand “Initialize variable” and replace the value with the one for the website created on Step 1.
- Expand “When an item is created” and replace the value for Site Address by the value for the website created on Step 1.
- In List name, remove the current value and type Shoutout (if required).
- Click Save.
Step 6 – Power Automate Configuration
This step will update the button of the message sent to users with the address of the app installed in Teams. This configuration will allow users to click the button and be redirected to the app inside Teams.
- Open the zip file created on Step 4 and locate the manifest.json file. Open it in notepad and locate the name attribute, copy the value for short. Locate the staticTabs attribute and copy the values for entityid and websiteurl.
- Open https://powerautomate.microsoft.com and logon with a user who has permissions to create/import flows.
- On the left bar, click My Flows.
- Select ShoutOut_Summary and click Edit.
- Expand “Post your own adaptive card as the flow bot to a user”.
- In Message, search for https://www.teste.com and replace that value by the expression formed by the values you saved before in the following way:
https://teams.microsoft.com/l/entity/<entityid>/<short>?webUrl=<websiteurl>
Replace the values for <entityid>
, <short>
and <websiteurl>
by the ones saved before.
- Click Save.