Stage 8 of 17

Stage 8 of 17

Build

The build stage takes the design and turns it into a working application. You will create the Visits list in Microsoft Lists, then build the Power Apps canvas app with all 7 screens. Every step is documented with the exact actions to take and the formulas to use.

Phase 1 — Create the Visits List

1

Create the SharePoint site

Navigate to SharePoint (sharepoint.com). Select "Create site". Choose "Team site". Name: Visitor Management. Description: Visitor management system for Contoso Services Ltd. Privacy: Private. Select Create.

2

Create the Visits list

In the SharePoint site, select "New" → "List". Choose "Blank list". Name: Visits. Select Create.

3

Add columns to the Visits list

The list is created with a default Title column. You will rename this and add 13 more columns. Follow the table below exactly.

Column NameTypeRequiredNotes
TitleSingle line of textYesRename to VisitID. This will hold the auto-generated visit reference.
VisitorNameSingle line of textYesMax 100 characters.
VisitorOrganisationSingle line of textNoMax 100 characters.
VisitorTypeChoiceYesChoices: Client, Contractor, Candidate, Auditor, Delivery, Other. Default: Client.
HostNameSingle line of textYesPopulated from User().FullName in Power Apps.
HostEmailSingle line of textYesPopulated from User().Email in Power Apps. Used by notification flow.
ExpectedDateDate and TimeYesDate only (no time). Format: dd/MM/yyyy.
ExpectedArrivalTimeSingle line of textYesFormat: HH:MM. Stored as text.
ActualArrivalDate and TimeNoDate and time. Set by Power Apps on check-in.
ActualDepartureDate and TimeNoDate and time. Set by Power Apps on check-out.
PurposeSingle line of textYesMax 200 characters.
StatusChoiceYesChoices: Expected, Arrived, Host Notified, Departed, Cancelled, No Show. Default: Expected.
ReceptionNotesMultiple lines of textNoPlain text. Max 500 characters.
OfficeChoiceYesChoices: London, Manchester, Bristol. Default: London.
4

Create list views

Create the following views in the Visits list:

  • All Visits: Filter: None | Sort: ExpectedDate descending
  • Today's Visitors: Filter: ExpectedDate = [Today] | Sort: ExpectedArrivalTime ascending
  • On Site Now: Filter: Status = Arrived OR Status = Host Notified | Sort: ActualArrival ascending
  • Expected: Filter: Status = Expected | Sort: ExpectedDate ascending, ExpectedArrivalTime ascending
5

Load sample data

Enter the 12 sample visit records from the Data stage into the Visits list. Ensure all statuses are represented (Expected, Arrived, Host Notified, Departed, Cancelled, No Show).

Phase 2 — Build the Power Apps Canvas App

Beginner Tip

Build the screens in order. Start with the Home Screen (navigation only), then Register Visitor, then Today's Visitors. This way you always have a working app you can test, even if later screens are not finished yet.

Screen 1 — Home Screen

1

Create the canvas app

Navigate to make.powerapps.com. Select "Create" → "Blank app" → "Blank canvas app". Name: Visitor Management. Format: Tablet. Select Create.

2

Connect to the Visits list

In the app editor, select "Data" (left panel) → "Add data". Search for "SharePoint". Select your SharePoint site. Select the Visits list. Select Connect.

3

Rename Screen1 to HomeScreen

In the Screens panel (left), right-click Screen1 → Rename → HomeScreen.

4

Add navigation buttons

Insert four buttons. Set the Text and OnSelect properties as follows:

Register Visitor button — OnSelect

Navigate(RegisterVisitorScreen, ScreenTransition.Fade)

My Upcoming Visits button — OnSelect

Navigate(MyVisitsScreen, ScreenTransition.Fade)

Today's Visitors button — OnSelect (reception only)

Navigate(TodaysVisitorsScreen, ScreenTransition.Fade)

On Site Now button — OnSelect (reception/facilities)

Navigate(OnSiteScreen, ScreenTransition.Fade)

Screen 2 — Register Visitor Screen

1

Add a new screen and rename it RegisterVisitorScreen

In the Screens panel, select "New screen" → "Blank". Rename to RegisterVisitorScreen.

2

Add input controls

Add the following controls. Name each control exactly as shown:

VisitorNameInputText InputHintText: "Visitor full name"
VisitorOrgInputText InputHintText: "Organisation (optional)"
VisitorTypeDropdownDropdownItems: ["Client","Contractor","Candidate","Auditor","Delivery","Other"]
ExpectedDatePickerDate PickerDefaultDate: Today()
ExpectedTimeInputText InputHintText: "HH:MM (e.g. 10:30)"
PurposeInputText InputHintText: "Purpose of visit"
OfficeDropdownDropdownItems: ["London","Manchester","Bristol"]
3

Add the Register button

Insert a Button. Text: "Register Visitor". Set the OnSelect property:

Register button — OnSelect

If( IsBlank(VisitorNameInput.Text) || IsBlank(ExpectedTimeInput.Text) || IsBlank(PurposeInput.Text), Notify("Please complete all required fields.", NotificationType.Error), Patch( Visits, Defaults(Visits), { Title: "VIS-" & Text(CountRows(Visits) + 1, "0000"), VisitorName: VisitorNameInput.Text, VisitorOrganisation: VisitorOrgInput.Text, VisitorType: {Value: VisitorTypeDropdown.Selected.Value}, HostName: User().FullName, HostEmail: User().Email, ExpectedDate: ExpectedDatePicker.SelectedDate, ExpectedArrivalTime: ExpectedTimeInput.Text, Purpose: PurposeInput.Text, Status: {Value: "Expected"}, Office: {Value: OfficeDropdown.Selected.Value} } ); Notify("Visitor registered successfully.", NotificationType.Success); Navigate(HomeScreen, ScreenTransition.Back) )

Common Mistake

The VisitID formula above (CountRows + 1) is not concurrency-safe. If two employees register a visitor at exactly the same time, they may get the same ID. For a lab environment this is acceptable. For a production application, use a counter list or a different ID generation strategy.

Screen 3 — Today's Visitors Screen

1

Add screen and controls

Add a new screen. Rename to TodaysVisitorsScreen. Add a Dropdown (StatusFilter) and a Text Input (SearchBox).

StatusFilter — Items

["All","Expected","Arrived","Host Notified","Departed","Cancelled","No Show"]
2

Add the visits gallery

Insert a Vertical Gallery. Name it TodaysVisitorsGallery. Set the Items property:

TodaysVisitorsGallery — Items

Filter( Visits, ExpectedDate = Today(), StatusFilter.Selected.Value = "All" || Status.Value = StatusFilter.Selected.Value, IsBlank(SearchBox.Text) || VisitorName in SearchBox.Text || HostName in SearchBox.Text )
3

Add Check In button inside the gallery

Inside the gallery template, add a Button. Text: "Check In". Set Visible and OnSelect:

Check In button — Visible

ThisItem.Status.Value = "Expected"

Check In button — OnSelect

Patch(Visits, ThisItem, {Status: {Value: "Arrived"}, ActualArrival: Now()}); Refresh(Visits)

Screen 4 — On Site Now Screen

1

Add screen and gallery

Add a new screen. Rename to OnSiteScreen. Insert a Vertical Gallery named OnSiteGallery.

OnSiteGallery — Items

Filter(Visits, Status.Value in ["Arrived", "Host Notified"])
2

Add Check Out button inside the gallery

Check Out button — OnSelect

Patch(Visits, ThisItem, {Status: {Value: "Departed"}, ActualDeparture: Now()}); Refresh(Visits)
3

Add a visitor count label

Add a Label above the gallery. Text property:

On-site count label — Text

"Visitors on site: " & CountRows(OnSiteGallery.AllItems)

Screen 5 — Visitor Details Screen

1

Add screen and set context variable

Add a new screen. Rename to VisitorDetailsScreen. In each gallery on the previous screens, update the OnSelect of the gallery row to navigate here and pass the selected item:

Gallery row — OnSelect (on TodaysVisitorsGallery)

Set(SelectedVisit, ThisItem); Navigate(VisitorDetailsScreen, ScreenTransition.Fade)
2

Display all visit fields

Add Labels to display each field. Example:

Visitor Name label — Text

SelectedVisit.VisitorName

Status label — Text

SelectedVisit.Status.Value

Actual Arrival label — Text

If(IsBlank(SelectedVisit.ActualArrival), "Not yet arrived", Text(SelectedVisit.ActualArrival, "dd/MM/yyyy HH:mm"))
3

Add action buttons with visibility rules

Cancel Visit button — Visible

SelectedVisit.Status.Value = "Expected" && (SelectedVisit.HostEmail = User().Email || IsAdmin)

Cancel Visit button — OnSelect

Patch(Visits, SelectedVisit, {Status: {Value: "Cancelled"}}); Set(SelectedVisit, LookUp(Visits, Title = SelectedVisit.Title)); Notify("Visit cancelled.", NotificationType.Success)

Mark No Show button — Visible

SelectedVisit.Status.Value = "Expected" && IsReception

Mark No Show button — OnSelect

Patch(Visits, SelectedVisit, {Status: {Value: "No Show"}}); Set(SelectedVisit, LookUp(Visits, Title = SelectedVisit.Title))

Beginner Tip

IsAdmin and IsReception are boolean variables you set in the App OnStart property based on the current user's group membership. For the lab, you can set these manually for testing: Set(IsReception, true). In a production app, you would check group membership using the Office365Groups connector.

Screen 6 — Reception Actions Screen (Walk-in Check-in)

1

Add screen and controls

Add a new screen. Rename to ReceptionActionsScreen. Add input controls for VisitorName, VisitorOrg, VisitorType, HostNameInput (free text), HostEmailInput, Purpose, and Office.

2

Add Check In Now button

Check In Now button — OnSelect

If( IsBlank(WalkInNameInput.Text) || IsBlank(WalkInHostEmailInput.Text), Notify("Visitor name and host email are required.", NotificationType.Error), Patch( Visits, Defaults(Visits), { Title: "VIS-" & Text(CountRows(Visits) + 1, "0000"), VisitorName: WalkInNameInput.Text, VisitorOrganisation: WalkInOrgInput.Text, VisitorType: {Value: WalkInTypeDropdown.Selected.Value}, HostName: WalkInHostInput.Text, HostEmail: WalkInHostEmailInput.Text, ExpectedDate: Today(), ExpectedArrivalTime: Text(Now(), "HH:MM"), Purpose: WalkInPurposeInput.Text, Status: {Value: "Arrived"}, ActualArrival: Now(), Office: {Value: WalkInOfficeDropdown.Selected.Value} } ); Notify("Visitor checked in.", NotificationType.Success); Navigate(OnSiteScreen, ScreenTransition.Fade) )

Screen 7 — My Upcoming Visits Screen

1

Add screen and gallery

Add a new screen. Rename to MyVisitsScreen. Insert a Vertical Gallery named MyVisitsGallery.

MyVisitsGallery — Items

Sort( Filter( Visits, HostEmail = User().Email, Status.Value in ["Expected", "Arrived", "Host Notified"], ExpectedDate >= Today() ), ExpectedDate, SortOrder.Ascending )
2

Add OnVisible refresh

Select MyVisitsScreen. Set the OnVisible property:

MyVisitsScreen — OnVisible

Refresh(Visits)

Stage Complete — What You Now Have

  • ✓Visits list with 14 columns, 4 views, and 12 sample records
  • ✓Power Apps canvas app with 7 screens
  • ✓Register Visitor with validation and Patch() formula
  • ✓Today's Visitors with combined status + search filter
  • ✓On Site Now with Check Out and visitor count
  • ✓Visitor Details with Cancel and No Show buttons
  • ✓Reception Actions for walk-in check-in
  • ✓My Upcoming Visits filtered to current user

Need more help with the concepts?

Visit DosToDigital for guides, templates, and deeper explanations.

DosToDigital
DToD Labs

Learn it. Build it. Make it work.

A DosToDigital Project

About DToD Labs

Practical technology learning for Microsoft 365 and Power Platform. Build real business solutions from real business problems.

Learn the concepts at DosToDigital. Put them into practice at DToD Labs.

DToD Labs provides practical learning projects for educational purposes. Microsoft services, interfaces, licensing and product capabilities change over time. Always check current Microsoft documentation and licensing before implementing a solution in a production environment. All organisations, business scenarios and data used in DToD Labs are fictional. Learners should not use confidential employer, customer or personal information when following DToD Labs exercises.

© 2026 DToD Labs — A DosToDigital Project