Skip to content

Getting started

Yashraj Mungale (Tata Consultancy Services) edited this page Sep 30, 2020 · 1 revision

The Building Access applications provide an easy way for users to request access to a place of work. This is composed of three Power Apps:

Building Access: for employees to request access to a workspace

Building Admin: for administrators to control system side settings and data, such as building capacity

Building Security: for building security personnel to validate employee access

This walkthrough includes:

  1. Building Admin: Entering key reference data as an administrator
  2. Building Access: Requesting building access as an employee
  3. Building Access: Scenarios when employee access is automatically approved
  4. Building Access: Approving a employee request for building access
  5. Building Security: Check in and Check out a user on the day of their request
  6. Gathering insights from the Power BI dashboard.

Architecture Model

Reference Data

The application can be tailored by an administrator for your organization using the Building Admin app.

Settings

It is important that admins configure key settings using the Building Admin App. To configure settings:

  1. Navigate to Building Admin App.
  2. Click on Settings. This brings up the settings screen.

  1. Configure the settings and click Save.

Settings Description

Key app settings are described below:

  1. Limit requests to x days in future: This is the number of days in future that users can make reservations. By default, the value is set to 14.

  2. Error message when request date exceeds limit: This message appears in the Building Access app if a user tries to make a reservation for a date that is after the allowed limit as defined in the setting above.

  3. Admin TeamID: This is the ID of the Admin team's Microsoft Team. The Admin team receives approval adaptive card in the channel configured below if manager information is not configured for requestor in Active Directory.

  4. Admin Teams Channel ID: This is the ID of the Admin team's Microsoft Team's channel. This channel receives approval adaptive card if manager information is not configured for requestor in Active Directory.

  5. Show inline approval buttons on approvals: If set to On, this allows managers to approve the requests individually from within the Building Access App. If this setting is switched off, managers can only bulk approve requests. With this setting set to "on" each line item has its own approve/reject button. With this setting set to "off" approvals are only done by checking each item and selecting an option at the bottom of the screen.

  6. Enable Safety Precautions feature: If set to On, the Safety precautions feature is available in the Building Access App. If set to Off, the Safety Precaution feature does not appear in the Building Access App for the users to select.

  1. Require Key Question completion before creating reservations: If set to On, users are required to answer the Key Questions before making a reservation to a building. If set to Off the Key Questions screen does not appear in the Building Access App.

  2. Key Questions failure message: If the users are required to complete key questions as per the setting above, the app requires them to answer No to all questions. If the user answers Yes to any of the Key Question, they are not allowed to make a reservation. This setting is the message that appears in Building Access App when the users answers Yes to any of the key questions.

Buildings

Buildings are bookable entities which can be reserved by users for specific dates. A Building has following properties:

  1. Building Name: Name of the building.
  2. Address: Building address which should include postcode.
  3. Country: Country where the building is located.
  4. Building Type: A building can be one of two types:
  5. Monitored Building: This type of building is monitored by security personnel who are responsible for making sure that users follow protocol and check the employee into and out of a building.
  6. Unmonitored building: This type of building is not monitored by security personnel. Users are responsible for checking in and checking out.
  7. Spaces: Each building has associated spaces. For instance, a building can have a first floor and a second floor. More information on spaces is listed in the next section.
  8. Seats: The total number of bookable seats in a building is an aggregation of seats in each associated space. For example, if first floor has 30 seats and second floor has 40, a building has 70 total number of bookable seats.
  9. Auto-Approval Threshold: This is a percentage value which defines how many seats out of the total number of seats in a building will be auto approved. Any requests outside the threshold will require manager's or admin approval. For instance,
  10. If building has 70 total number of bookable seats,
  11. If Auto-Approval threshold is 20%
  12. Request for the first 14 seats are auto approved.
  13. Any request for seats after the first 14 will need manager or admin approval.
  14. Key Eligibility Criteria: This informs employees of precautions, special scenarios (for example, special parking or entrance restrictions) or necessary special equipment needed to use this building.
  15. Onsite Access Instructions: Instructions to be followed when onsite.
  16. Status: Status of the Building. Draft buildings cannot be chosen for reservation by the Users within Building Access app. Published can be chosen for reservation within Building Access app.

Configure Buildings

Create Building

To create a building:

  1. Navigate to Buildings Admin App.
  2. Click on Buildings.

  1. Click Create New.
  2. Enter all the required information marked by (*) asterisk.
  3. You will notice that at this stage, the building Status is set to Draft and is disabled. This is because the buildings have not been configured with any spaces yet.
  4. Once all required information has been added, the Save, Save and Configure buttons are enabled.

  1. Click Save and Configure Spaces to add Spaces to the building.
  2. This takes you to a screen listing the building's spaces. Click New Space to add a space to this building.

  1. Click New Space.
  2. Enter Name of the Space and Capacity.

  1. Add more spaces if required. Once finished, click Save and next. This takes you to a screen to specify a default request approver for the building if required. Check the check box if you want to specify a person as the default approver and select the individual by using the dropdown. This is an optional step and you can choose to not specify a default approver.

  1. Click on Publish if you want to make the building available for selection. If not, click on Save as draft. You will return to the screen which shows you the list of buildings configured.

Update Building

  1. Navigate to Building Admin app.
  2. Click on Buildings. This will bring up a list of all configured buildings.
  3. Click on the Edit icon.
  4. This will bring up the Edit form.
  5. Make edits and Save.

Safety Precautions

Safety precautions can be used by organisations to relay information to employees. Published safety precautions appear in Building Access App. Safety precautions have following properties:

  1. Title: Title of the article.
  2. Description: Summary description of the article.
  3. Country: Country the article is relevant for.
  4. ResrouceURL: The URL to an external web page for more information.
  5. Status: Draft articles are not available to users in the Building Access App. Published articles are available to view in the Building Access App.

Create Safety Precaution

  1. Navigate to Building Admin App.
  2. Click on Safety precautions. This brings up the list of Safety precautions articles.

  1. Click New safety precaution button.
  2. Enter all the required information marked by (*) asterisk.
  3. Once all the required information is added, the Publish button is enabled.

Edit Safety Precaution

  1. Navigate to the Building Admin App.
  2. Click on Safety precautions. This brings a list of configured Safety precautions articles.
  3. Click on the Edit icon.
  4. Make required changes.
  5. Click Save.

Eligibility Questions

Eligibility questions are Yes/No screening questions which a user must answer before making a reservation for a building. These questions must be phrased so that a "no" answer is desired. If an employee answers "yes"; to any of these questions, they will not be permitted to reserve building space. Administrators can disable this functionality within the Settings area of the Buildings Admin app. Eligibility Questions have following properties:

  1. Question: Question to be asked.
  2. Status: Draft question are not available in the Building Access App. Published questions appear in the Building Access app.

Create Key Questions

  1. Navigate to Building Admin App.
  2. Click Key Questions.
  3. This brings a list of Key Questions.

  1. Click Create New.
  2. Enter value in the Question field, this enables the Publish button.
  3. CLick on Publish, if you are ready to make this question visible in the app. If not click on Save as draft.

  1. Click Save.

Edit Key Questions

  1. Navigate Admin App.
  2. Click Key Questions.
  3. This brings up the list of Key Questions.
  4. Click on the Edit icon.
  5. Make required changes.
  6. Click Save.

Requesting Building Access

  1. Navigate to the Building Access App.

  2. Click New Request.

  3. This brings up the Eligibility Questions screen. This screen will not appear if your admin has switched off the Eligibility questions feature.

  1. Answer by giving response that applies to you.
  2. If you answered Yes to any of the questions, your responses are saved and you are directed to a screen informing that you are not eligible to make a booking.

  1. If you have answered No to all questions, you are directed to the Buildings Screen.
  2. Search for the building you want to make reservation for or select from the list of your recent buildings.
  3. Once the building has been selected, read the eligibility criteria if provided.
  4. Add Business Reason for Access and Select Save and Continue.

  1. On the next screen Select date and space for booking.

  1. Select the date that you want to make a reservation for.
  2. If you already have a booking for the date selected, you will receive the message below with your existing request listed.

  1. If you do not have an existing request for the selected date, you will see the space available for selection. You can specify a range of dates also in the same request if you want to access the same building and space for those dates. If you have specified a range of dates and if the space is not available for some dates in the range, it will be appropriately shown.

  1. You can make any necessary changes to your reservation and Click on Save and next. You will be presented with a screen that shows the individual to whom the request will be sent for approval. It will either be the default building approver as configured for the building or the user's manager. If enabled through the settings app, you will be able to see the option to specify a different approver for your request other then the default approver. Click on the checkbox and select a individual from the list. The request will now be sent to the selected individual for approval

If no default approver or manager details are found then the request will be sent in a team on admins on Microsoft teams.

  1. Click on Submit button to submit the request. A confirmation message will be displayed. On clicking of 'X' mark, you will be redirected to your list of requests.

Approving Building Access Requests

If requests for building seats has reached the maximum allowed threshold, all the subsequent requests require approval. Approvals are managed using the BARNotifyApprover flow. Access requests could be assigned to requestor's manager or admin team based in the requestor's manager record in Active directory.

Approval assigned to requestor's manager

An approval task is assigned to requestor's manager as defined in Active the directory. Request approval could be done in one of the following two ways

Approval using Teams

  1. Requestor's manager receives the approval adaptive card in their Teams' chat.

  1. Click on Chat button with the requestor from within Teams by clicking the Chat button.
  2. Click on Approve button, this marks the request as approved and sends a notification to requestor suggesting that their request has been approved.

  1. Click on Reject Button to reject the request; in this case they are required to give a reason for rejection.

  1. Clicking send marks the request as rejected and sends a notification to requestor with the rejection reason suggesting that their request has been rejected.

  1. Requestors can view the status of their request in the My Request section of the building access app.

Approval using Building Access App.

  1. Requestor's manager will see a section named Approvals on the home page. This suggests that there is a pending approval task assigned to the user.

  1. Clicking the Approvals Button brings up the approval screen.

In-line approvals

  1. If the admins have enabled In line approvals. Managers will be able to submit their approval for each request individually.
  1. Clicking on Approve button, approves the request. Requestors will be able to view the status of their request from the My Request section of the Building Access App.
  1. If request is rejected. Managers are required to enter a reason for rejection.
  1. Once the request is rejected, Requestors will be able to view the status of their request from the My Request section of the Building Access App.
  1. On selecting the requests, requestors will be able to view the rejection reason given by the manager.

Bulk Approve

Managers can also choose to bulk approve requests. This could be because the admins have turned off the In-line approval feature. In this case:

  1. Managers can select the Select All checkbox to select all requests or select checkbox next to each request to select them.

  1. Clicking on the Approve Selected button marks all the selected requests as approved. Requestors will be able to view the status of their request from the My requests section of the Building Access App.

  1. If Reject Selected button is selected. Managers are required to enter a reason for rejection.

  1. Once the request is rejected, Requestors will be able to view the status of their request from the My requests section of the Building Access App.

  2. On selecting the requests, requestors will be able to view the rejection reason given by the manager.

Approval by admin team.

If a requestor does not have a manager assigned in Active Directory, an approval task is assigned to the admin team as defined in the settings area of the Building Admin app. In this case,

  1. Admin Team will receive the approval adaptive card within the Microsoft Teams' channel as defined in the settings area of the admin app.

  1. Click on Chat to chat to the requestor.
  2. Click approve, this marks the request as approved and sends a notification to requestor suggesting that their request has been approved.
  1. Click Reject, this marks the request as rejected; in this case they are required to give a reason for rejection.

  1. Clicking send marks the request as rejected and sends a notification to requestor with the rejection reason suggesting that their request has been rejected.
  1. Requestors can also view the status of their request in the My Request section of the building access app.

Managing Entry and Exit for Unmonitored Building

Entry to the unmonitored buildings is not managed by security personnel. Marking entry and exit is the responsibility of the requestor. It is only possible to check in to your request where the request date is today's date.

Check-In and Check-Out

To check in to a building.

  1. Navigate to Building Access App.
  2. Click on Go to Request button. This will take you to your request for access to the unmonitored building.
  3. If your request has been approved. You will see options to Check In and Check Out.

  1. Please note, that you could withdraw request at this stage.
  2. Click on Check-In. This updates the Check-In time, and disables the option for Withdraw request

  1. Clicking Check-Out checks you out of the building and updates the Check-Out Time.

Managing Entry and Exit to a Monitored Building using the Building Security App

Entry to Monitored building is managed by security personnel present at the building. The security personnel use the Building Security App to Check In and Check Out users. It is only possible to check in to your request where the request date is today's date.

Login to Building Security App

  1. At the start of each security shift, Open the Building Security App.

  1. Use the Select Building button to select the building that you are managing security for. Clicking Select Building will bring up a list of buildings.

  2. On selecting a building, the default time slot selected will be for the entire day. Click Save and Continue.

  3. This selects a building and presents a brief summary of requests for the selected building and time slot to the security personnel.

  1. Summary for selected building includes:
    1. Approved: Number of Approved requests for today
    2. Arriving: Number of users who are approved and not checked in for today
    3. Checked-in: Total number of checked in users for today
    4. On Site: Users who have check in and have not checked out for today.

Request user for their QR code.

  1. To retrieve QR code users can:
    1. Navigate to Building Access App.
    2. Click on Go To Request.
    3. Click on Go to Request button. This will take you your request for access to the monitored building with the QR code.

Use QR code

  1. Click on Validate Access Key to scan the QR Code

  1. You will now be directed to the User Request with Check In and Check Out button.

Use Request List

  1. Click on the Requests List. This brings up list of requests for the selected building.
  2. Search using Access Key, Requestor or Space. Please note, Access Key is denoted above the User's QR code.

  1. Select the request.
  2. You will now be directed to the User Request with Check In and Check Out button.

User Request

  1. You can use the Teams' option to chat to the manager.
  2. Click on Check-In. This updates the Check-In time and checks in the user.

  1. Note the updated values on the home screen.

  1. Click on Check-Out. This updates the Check-out time and checks out the user.

  1. Note the updated values on the home screen.

Managing access for pending requests

There could be instances where a user requires access to the building and their request for access has not yet been approved by their manager. In this instance, security can chat with user's manager and grant access to the user. To do this security user can:

  1. Login to the Building Access Security App.
  2. Follow the instructions above to scan request QR code.
  3. Or you can search for User's Access Key from the Request List. Make sure to keep the Pending Approval check box checked. Click on the request.

  1. You will be directed to User's request with status Pending Approval
  2. You can click the Teams icon to chat to the manager re the status of User's request.
  3. You can check Check-In. This approves the user's access request and checks them in to the building.
  4. Click Check-Out to check user out of the building.

Updating the Applications

If you have already completed the steps for installing the apps, it is not necessary to redo every step again. Follow these steps to import the individual app or flow which you would like to update.

Start by downloading the new BuildingAccessApp.zip file from this github repository. See the Latest Update section for a table of the latest versions.

Important: updating an app will replace any customizations you have made to the template. Please document any revisions to menus and formulas separately before proceeding. You can also save the original app to your computer as an .msapp file and open it in another browser tab to copy content over to the new version. Note that you can always revert to a previous version by accessing the version history of an app.

To update the app:

  1. Extract an app you would like to update. For example, if you want to update the Building Access app.
  2. Go to make.powerapps.com
  3. From the left pane, click Apps.
  4. From the top menu, click Import canvas app.
  5. In the Import package screen, click on Upload and browse for BuildingAccess.zip.
  6. Once you have selected the file, the screen will change to the import experience.
  7. Instead of creating a new app as done in the deployment instructions, Click Create new to reveal more options.
  8. Change the setup dropdown to Update.
  9. Select the existing app that you want to update. In this case BuildingAccess App.

  1. Click Save.
  2. Within related resources if you have any associated flow. Click Create as new to reveal more options.
  3. Change the setup dropdown to Update.
  4. Select from the existing flows the flow to update. In this case BARCreateRequests.
  5. Click import and wait for the import to complete.
  6. When the import is complete, open the app in PowerApps studio.

  1. Click Save.
  2. From the ribbon, click View > Data sources. In the left pane for Data sources, remove the existing connections to SharePoint.
  3. In the same left pane for Data sources, type 'SharePoint' into the search bar at the top.
  4. Select SharePoint and your connection. A pane will appear on the right to browse for the exact site and lists.
  5. In the right pane, select the SharePoint site where your lists for Building Access are located. If the site does not appear in this list, type its URL in the field at the top of the pane.
  6. Click Connect.
  7. Save and publish the app: File > Save. Publish.

To update a flow:

  1. Extract the flow you would like to update. Note that if you have already deployed the SharePoint lists using the DeploySPLists flow, it is not necessary nor possible to create them again in the same site as they already exist.
  2. Go to flow.microsoft.com
  3. Sign in.
  4. From the left pane, click 'My flows.'
  5. From the top menu, click Import.
  6. Browse for the zip file you extracted. The page will change to the import experience.
  7. Instead of creating a new flow as done in the original setup instructions, click "Create new" to reveal more options.
  8. A pane appears on the right. Below Setup, change the drop down menu to "Update."
  9. A list of flows in the environment appears in the right pane. Select the flow which you would like to update.
  10. Select a connection for each connection required.
  11. Click import and wait for the import to complete.
  12. Flows that are imported for the first time may be disabled. It may be necessary to edit the flow and in its details page, click Turn on from the top menu.
  13. Follow the steps in the deployment guide to update triggers and Site Url variables to the Url of the SharePoint site where your lists for Building Access are located.

Language translations

All the applications have been designed to be translated to a language of choice. All the language translations are managed using the colTranslations.xlsx file that can be downloaded from the GitHub repository.

Understanding translations

Here is some key information about the translation file

  1. Download and extract the BuildingAccessApp.zip.
  2. And open the coltranslations.xlsx file.
  3. The file contains four sheets which in turn constitutes of translation tables.
  4. The first two sheets User and User Extended which have the tables colTranslationsUser and colTranslationsUserExtended respectively are being used in the Building Access app. colTranslationUser should be used for updates.
  5. Admin tab with table colTranslationsAdmin is being used in Building Admin app.
  6. Security tab with colTranslationsSecurity table is being used in the Building security app.

  1. Each table is made up of 2 key columns i.e. Locale and IsSupported. PowerApps rely on these columns to decide which language to use.
  2. Rest of the columns are labels that are translated.

PowerApp translation formulas

  1. All PowerApps manage translation on App start using the Language() function.

  1. The excel table data sources are then filtered using the language detected.

Updating the translations

Some of the translations might not be accurate, as they have been generated using an automated process. In this case, you can choose to update them. To update:

  1. Download and extract the BuildingAccessApp.zip.
  2. And open the coltranslations.xlsx file.
  3. Open the PowerApp where the translation for the label needs to be updated. In this case we will use the Building Access app.
  4. Select the component label for which needs to be updated.

  1. In the image above lblEligibilityCriteria has been selected.
  2. The text property states column name to be updated within the excel file. In this case ScreenBuildingEligibilityLabel.
  3. Search for ScreenBuildingEligibilityLabel within the colTranslationsUser table within User sheet in the excel file.
  4. Update the column value for your locale row.

  1. Save the file.
  2. Switch to the data sources section of the Building Access App.
  3. Remove colTranslationUser excel data source.

  1. In the data source section search for excel and select Import from Excel.

  1. Browse and select the excel file you modified.
  2. Once selected, you will be asked to select the table to import the data from.

  1. Select colTranslationUser
  2. Press Connect.
  3. New Data source appears.

  1. Switch to Tree View section.

  1. Click Run on Start to run formulas on App Start and load the labels.

  1. Save and Publish

Note

  1. Currently excel data source can read first 100 columns from the excel table.
  2. If your translation table exceeds 100 columns, your powerapp might not be able to read the column value.

Testing Translations

Once the translations have been configured, you can validate this by configuring browser language or changing app language within Microsoft Teams client application.

Changing Browser Language

  1. Open Microsoft teams within Microsoft Edge.
  2. Navigate to Building Access App.

  1. Click on elipisis(…) on the top right corner of the browser and click on Settings.

  1. Click on Languages on the left-hand side menu.

  1. Click Add Languages and Select Language of your choice and Click Add.

  1. Once language has been added, click ellipsis(…) next to the Language.
  2. Select Move on the top.

  1. Once you see the language on top, click ellipsis(…) next to the Language and select the option to make this the default language in the browser

  2. Restart the browser. It should now be translated to the selected language.

Change Microsoft teams App language

To test app translations within Microsoft Teams client app:

  1. Click on your photo on the top right of the Teams application and click settings.

  1. Under General Settings, change the App language to language of your choice.
  2. Click Save and Restart.

  1. The App will load in the language selected.

Gaining Insights with Power BI

Building Access Power BI

The Power BI report provides insight on data that has been collated from the Building Access application.

There are 4 reports:

  1. Today's snapshot – provides details of today's request by each building. Using the map, you can drill down.
  2. Today's access report – allows you to filter on data with today's request data.
  3. Contact tracker – allows you to check who has been in the building at the same time.
  4. Building 360 breakdown – filters by date allows users to view historic and future requests.

Each of the above reports are created using visuals to breakdown and summarise data. Filters are provided on most pages so the user can further slice and dice the data as required.

Today's snapshot

This view provides details of all the request raised for the day the report is viewed. Tiles at top provide breakdown of values in the following categories:

These are the total values for published buildings.

Also included is a map, which shows all the buildings that you have set up on the application. You can scroll over each icon on the map to view breakdown of todays data. A drill down view can also be accessed when you right click on a location and select the drill down report:

The drill through page allows you to see details of the request that have come in for example, name and check in/out times of the individuals that have entered the buildings. The page also has graphs which allow you to further analyse the activity for the day.

Today's access report

This report is similar to Todays snapshot report, but it allows you to further filter data to your requirements using the filters provided.

You can select one or a combination of the filters on the page and report will provide data based on the filters you selected.

Contact tracker

The Contact tracker report allows you to check who has been in the building as the same time as another person. The purpose of this report is if someone has fallen ill you can use this report to check who that ill person may have been in contact with.

Filters

The filters on this page allow you to pick specific individuals, building, country, or a check-in data. Once you have narrowed down your selection you can select that person and view who else has potentially been in contact with that person.

Click on any person within the Building access request details for todays table and the Person in contact with box will be populated with the individuals that have been in the same building, floor and time as that selected person.

Building 360 breakdown

This report allows you view historical and future data. This report allows you use the date filter to view past and future data based on the request date.

The report return data on a summary levels using charts and a matrix so you can view the details for each building and floor.