-
Notifications
You must be signed in to change notification settings - Fork 30
Deployment guide
- Sign up for Power Apps
- You must have a valid SharePoint Online license and permission to create lists and store data for the apps
- Sign up for Power Automate
- Office 365
- A copy of the Attendance app zip package
Create a Team on Microsoft Teams for staff members. Members of this team will have access to use the Attendance App (suggested team name: Attendance )
-
Open Teams desktop app or open https://teams.microsoft.com/go#
-
Select Teams tab in the left menu bar and click on Join or create team button.
-
Click on Create Team button.
-
Select Staff as Team type.
-
Add team name (suggested team name: Attendance ) and click Next
-
Add all staff members. It is recommended to add only staff members who have the authority to take attendance.
-
Once the Attendance Team is created successfully, new SharePoint site with same name also gets created.
If the attendance app needs to be shared with the staff members who are a part of the team created in the previous step, the Office 365 group must be converted to a security enabled group per the below steps. Once this step succeeds, any new staff member added to the Attendance Team will automatically have access to capture attendance using the app.
-
Go to Azure Portal > Manage Azure Active Directory > Groups (under Manage on the left side pane) > Select the appropriate group > Copy the Object Id.
-
Open Windows PowerShell (confirm you are running as an Administrator )
-
Install the Azure AD PowerShell module
-
Connect to Azure AD
Connect-AzureAD
-
Get the group details using the below command. In the output, ensure the property** SecurityEnabled is set to True**:
Get-AzureADGroup -ObjectId <ObjectID> | select *
-
If the Security enabled is set to False, use the below command to reset the value to True and press enter
Set-AzureADGroup -ObjectId <ObjectID> -SecurityEnabled $True
Data for the attendance app is stored in SharePoint lists. The flows in the package will create the SharePoint lists to store attendance data.
-
Open Power Automate
-
Ensure that the environment belongs to your tenant
-
Select My flows from the left navigation pane.
-
Select Import on the command bar.
-
Upload the CreateSharePointLists.zip package from the GitHub repository.
-
Add a SharePoint connection for the new flow by selecting the Select during import link and completing the form.
-
Select + Create new
-
Select + New Connection on the top
-
Select SharePoint by clicking +
-
Select Connect Directly (cloud-services) and select Create
-
Enter your credentials and a new SharePoint Connection will be listed.
-
Go back to the previous tab on Automate and click on Refresh list.
-
Select your connection and click on Save.
-
Go back to the previous tab on Automate and click on Refresh list , select your connection and click on Save button.
-
Click Import button. Following a successful import, click Open flow.
-
Go to your Microsoft Teams – team that you created for the class, go to Files tab, click on Open in SharePoint button.
-
Copy the site url from the new SharePoint site that opens up in new tab. For e.g. – “https://contoso.sharepoint.com/sites/classX”
-
Select Run on the top menu
-
Click on Continue on the right side of the window.
-
On the next step , paste the Url copied in Step 19 above and click on Run Flow.
-
Click on Done. Click refresh button to check if flow executed successfully. Once the flow is successful, the SharePoint lists should be installed.
-
This can be checked by navigating to the SharePoint site (Open the Attendance Team on Microsoft Teams > Files > Open in SharePoint ). The SharePoint lists would be added here.
-
Navigate to Power Apps.
-
Click on Apps in the left side pane and click on Import canvas app
-
Import the AttendanceApp.zip zip file
-
Power App will redirect to details page.
-
In package details page, click on select during import for SharePoint connection in import setup column.
-
Click on Create new button in the popup. The page will open in a new browser tab.
-
Click on Create a connection button.
-
You will be able to see the list of available connections. Click on + for SharePoint connection.
-
Check Connect directly (Cloud services) option in the popup and click and on Create button.
-
Login to confirm complete connection set up.
-
Navigate back to the import package tab. Once the connection is created, you will be able to see the connection in the Import setup dialog.
-
If you are not able to see the SharePoint connection, click on Refresh List button in the dialog.
-
Click on the connection name to select it and then click on Save.
-
You will be able to see that SharePoint is connected to your tenant.
-
Repeat the steps from #5 for One Drive for Business connection.
-
You will be able to see One Drive and SharePoint connection imported in your tenant.
-
Click on Import button at the bottom of the page.
-
Click on Open app link when zip package is successfully imported. You will be redirected to Power Apps portal.
-
Click on Open menu at the left side > Power Apps > Attendance App which you have imported.
-
The app will request your permission to use all the listed data connections.
-
Once the app opens, in the horizontal menu, click on View and select Data sources.
-
Search for SharePoint and select it.
-
Enter the newly created SharePoint URL in pop-up window.
-
Choose SessionMetadata, AttendanceRecord lists and select connect.
-
Publish the app by selecting Save on the file menu (on the left edge), and then select Publish.
-
Open Power Automate
-
Select the flows (ExportAll, ExportStudent) connected to Power Apps. Go to the flow (ExportAll) and click on edit.
Now change the site address to new SharePoint site which you have created in step 2.
-
Now select AttendanceRecord as List Name which you have created in step 2. Save the flow
-
Repeat the same step for another flow (ExportStudent).
-
Admin needs to share the app to all individuals who will be using the app.
-
Go to Apps menu in the left menu bar and you will be able to see the app you have imported.
-
Click on 3 dots (Options) for your app and click on Share. The security enabled group created in Step 2 should be visible to add as below. This is required to allow members to access the attendance app.
-
Select the imported app, click on Add to Teams and then click on "Download App" to download the app
-
Go to the created Staff Team and click +. You can find detail steps for embedding Power Apps here
-
Choose Power Apps , Attendance App , and click Save. You will be able to see the app in the tab.
-
[Optional] Teams Adminstrators can sideload the application for entire organization by uploading the zip package in Teams -> Apps (in the left menu) -> Upload a Custom App.