Stage 6 of 17

Stage 6 of 17

Design

Architecture decision, list relationships, 8 screen designs with key formulas, 3 flow designs, and 4 permission groups.

Architecture Decision — Lists vs Dataverse

FactorSharePoint ListsMicrosoft Dataverse
LicensingIncluded in Microsoft 365Requires Power Apps Premium per user — POTENTIAL PREMIUM LICENSING
Row-level securityNot available — all users with site access see all rowsFull row-level security — can restrict by department
Column-level securityNot available — cannot hide UnitCost from specific usersColumn-level security available
Calculated columnsLimited — calculated columns cannot reference other listsRollup and calculated columns available
RelationshipsLookup columns — limited to one levelFull relational model with cascading
Audit logVersion history per itemFull audit log with user, date, and field-level changes
ScaleUp to 30 million items per list (with indexing)Enterprise scale

Decision: SharePoint Lists

Contoso uses Microsoft 365 Business Premium. SharePoint Lists are included at no additional cost. The primary limitation — column-level security for UnitCost and AnnualisedCost — will be mitigated by hiding these fields in the Power App for non-Finance users (varIsFinanceOrIT). This is UI-level security only; users with direct SharePoint access can see the values. This is documented as KE-001 in the Support stage. If strict column-level security is required, migrate to Dataverse (IMP-001).

List Relationships

Products←— Lookup ——Agreements←— Lookup ——Allocations
Suppliers←— Lookup ——Agreements

Products → Agreements: One product can have multiple agreements (e.g. Microsoft 365 has AGR-001 and AGR-011). Each agreement is linked to exactly one product.

Suppliers → Agreements: One supplier can supply multiple agreements. Each agreement is linked to exactly one supplier.

Agreements → Allocations: One agreement can have many allocations. Each allocation is linked to exactly one agreement. QuantityAllocated = count of active allocations for the agreement.

Screen Designs

scrDashboard — Dashboard

Overview of the licence estate. First screen the user sees.

Components

  • ▸KPI card: Total active agreements (count of Agreements where Status = Active).
  • ▸KPI card: Total annualised spend (sum of AnnualisedCost for active agreements).
  • ▸KPI card: Agreements expiring in 90 days (count of active agreements where RenewalDate ≤ Today() + 90).
  • ▸KPI card: Over-allocated agreements (count where QuantityAllocated > QuantityPurchased).
  • ▸KPI card: Low availability agreements (count where QuantityAvailable ≤ threshold).
  • ▸Gallery: Agreements expiring in 90 days. Columns: Product, Supplier, RenewalDate, DaysToRenewal, Owner.
  • ▸Gallery: Over-allocated agreements. Columns: Product, QuantityPurchased, QuantityAllocated, Overage.

Key Formulas

DaysToRenewal: DateDiff(Today(), ThisItem.RenewalDate, Days)
AnnualisedCost: If(ThisItem.BillingFrequency = "Monthly", ThisItem.UnitCost * ThisItem.QuantityPurchased * 12, If(ThisItem.BillingFrequency = "Annual", ThisItem.UnitCost * ThisItem.QuantityPurchased, ThisItem.UnitCost * ThisItem.QuantityPurchased / 3))

scrProducts — Products

Browse and manage the software product catalogue.

Components

  • ▸Gallery: All products. Columns: Product name, Publisher, Category, number of active agreements.
  • ▸Filter: Category dropdown.
  • ▸Filter: Publisher search box.
  • ▸Button: New Product (IT team only — varIsIT).
  • ▸Navigation: Select a product → scrProductDetails.

Key Formulas

Active agreements count: CountRows(Filter(colAgreements, Product.Id = ThisItem.ID, Status = "Active"))

scrAgreements — Agreements

Browse and manage licence agreements. The core screen of the application.

Components

  • ▸Gallery: All agreements. Columns: Product, Supplier, QuantityPurchased, QuantityAllocated, QuantityAvailable, AnnualisedCost (hidden for non-Finance/IT), RenewalDate, DaysToRenewal, Status.
  • ▸Colour coding: DaysToRenewal ≤ 30 = red, ≤ 90 = amber, otherwise green.
  • ▸Colour coding: QuantityAvailable < 0 = red (over-allocated), ≤ threshold = amber, otherwise green.
  • ▸Filter: Status dropdown.
  • ▸Filter: Product search box.
  • ▸Button: New Agreement (IT team only).
  • ▸Navigation: Select an agreement → scrLicenceDetails.

Key Formulas

QuantityAllocated: CountRows(Filter(colAllocations, Agreement.Id = ThisItem.ID, Status = "Active"))
QuantityAvailable: ThisItem.QuantityPurchased - varQtyAllocated (calculated per row)
AnnualisedCost visibility: varIsFinanceOrIT

scrLicenceDetails — Licence Details

Full details for a single agreement, with tabbed sections.

Components

  • ▸Header: Product name, Supplier, Status badge, DaysToRenewal.
  • ▸Tab: Overview — all agreement fields including AnnualisedCost (hidden for non-Finance/IT).
  • ▸Tab: Allocations — gallery of active allocations for this agreement. Columns: AllocatedTo, Department, AllocatedDate, AllocatedBy.
  • ▸Tab: History — gallery of inactive allocations (deallocated users).
  • ▸Button: New Allocation (IT team only).
  • ▸Button: Edit Agreement (IT team only).
  • ▸Compliance badge: Compliant / Over-Allocated / Under-Utilised.

Key Formulas

Compliance status: If(varQtyAllocated > ThisItem.QuantityPurchased, "Over-Allocated", If(varQtyAllocated = 0, "Under-Utilised", "Compliant"))
Under-Utilised: QuantityAllocated = 0 (no active allocations — potential waste).

scrAllocations — Allocations

Browse all allocations across all agreements.

Components

  • ▸Gallery: All active allocations. Columns: Product (via Agreement), AllocatedTo, Department, AllocatedDate, AllocatedBy.
  • ▸Filter: Department dropdown.
  • ▸Filter: Product search box.
  • ▸Button: Deallocate (sets Status = Inactive, records DeallocationDate).

Key Formulas

Product name via agreement: LookUp(colAgreements, ID = ThisItem.Agreement.Id).Product.Value

scrRenewals — Renewals

Focused view of upcoming renewals. Replaces Priya's Outlook calendar.

Components

  • ▸Gallery: All active agreements sorted by RenewalDate ascending.
  • ▸Colour coding: DaysToRenewal ≤ 30 = red, ≤ 90 = amber, ≤ 180 = blue, otherwise green.
  • ▸Columns: Product, Supplier, RenewalDate, DaysToRenewal, AnnualisedCost (hidden for non-Finance/IT), Owner, Status.
  • ▸Filter: Show only expiring in 30 / 60 / 90 / 180 days / All.
  • ▸Button: Mark Under Review (sets Status = Under Review).

Key Formulas

DaysToRenewal colour: If(DateDiff(Today(), ThisItem.RenewalDate, Days) <= 30, RGBA(220,38,38,1), If(DateDiff(Today(), ThisItem.RenewalDate, Days) <= 90, RGBA(245,158,11,1), If(DateDiff(Today(), ThisItem.RenewalDate, Days) <= 180, RGBA(59,130,246,1), RGBA(34,197,94,1))))

scrNewAllocation — New Allocation Form

Create a new licence allocation.

Components

  • ▸Agreement dropdown (pre-populated if navigated from scrLicenceDetails).
  • ▸QuantityAvailable display — updates when Agreement is selected.
  • ▸Warning banner: "No licences available" if QuantityAvailable = 0 (Save button disabled).
  • ▸AllocatedTo text input.
  • ▸AllocatedToEmail text input.
  • ▸Department dropdown.
  • ▸AllocatedDate date picker (defaults to today).
  • ▸AllocatedBy text input (defaults to current user: User().FullName).
  • ▸Notes text area.
  • ▸Save button (disabled if QuantityAvailable = 0).

Key Formulas

QuantityAvailable on form: LookUp(colAgreements, ID = ddAgreement.Selected.ID).QuantityPurchased - CountRows(Filter(colAllocations, Agreement.Id = ddAgreement.Selected.ID, Status = "Active"))
Save disabled: varQtyAvailableOnForm <= 0

scrComplianceReport — Compliance Report

Audit-ready compliance report. Accessible to IT team and Finance only.

Components

  • ▸Table: All active agreements. Columns: Product, Supplier, LicenceType, QuantityPurchased, QuantityAllocated, QuantityAvailable, ComplianceStatus.
  • ▸ComplianceStatus: Compliant (QuantityAllocated ≤ QuantityPurchased and > 0) / Over-Allocated (QuantityAllocated > QuantityPurchased) / Under-Utilised (QuantityAllocated = 0).
  • ▸Summary: Total agreements, compliant count, over-allocated count, under-utilised count.
  • ▸Export button: html-to-image or print to PDF.
  • ▸Visible only to varIsFinanceOrIT.

Key Formulas

ComplianceStatus: If(varQtyAllocated > ThisItem.QuantityPurchased, "Over-Allocated", If(varQtyAllocated = 0, "Under-Utilised", "Compliant"))

Flow Designs

DToDLab013-RenewalReminder

Trigger: Scheduled — daily at 07:00

Send renewal reminder emails at 90, 60, and 30 days before RenewalDate. Prevent duplicates using ReminderSentFlags.

  1. 1.Get items from Agreements where Status = Active or Pending Renewal.
  2. 2.Apply to each agreement:
  3. Calculate DaysToRenewal = DateDiff(today, RenewalDate, days).
  4. For each milestone (90, 60, 30):
  5. If DaysToRenewal ≤ milestone AND milestone not in ReminderSentFlags:
  6. Send email to Owner and Tom Reeves.
  7. Update ReminderSentFlags: append milestone.
  8. Update Status to Pending Renewal (if not already).

DToDLab013-AvailabilityAlert

Trigger: When an item is created or modified in the Allocations list

Send a notification when QuantityAvailable falls to or below the threshold.

  1. 1.Get the Agreement record linked to the new/modified allocation.
  2. 2.Count active allocations for this agreement (QuantityAllocated).
  3. 3.Calculate QuantityAvailable = QuantityPurchased - QuantityAllocated.
  4. 4.Calculate threshold: If AvailabilityThreshold is set, use it. Otherwise: Max(1, Round(QuantityPurchased * 0.1, 0)).
  5. 5.If QuantityAvailable ≤ threshold AND QuantityAvailable ≥ 0:
  6. Send notification to Owner and Tom Reeves.
  7. 7.If QuantityAvailable < 0:
  8. Send over-allocation alert to Tom Reeves (higher urgency).

DToDLab013-StatusTransition

Trigger: Scheduled — daily at 06:00

Automatically transition agreement status from Active to Pending Renewal at 90 days.

  1. 1.Get items from Agreements where Status = Active.
  2. 2.Apply to each:
  3. If DateDiff(today, RenewalDate, days) ≤ 90:
  4. Update Status to Pending Renewal.

Permission Groups

IT Team

varIsIT

Tom Reeves, James Okafor, Priya Mehta

Full access to all lists and all screens including cost data and compliance report. Can create, edit, and delete all records.

Finance

varIsFinanceOrIT

Sandra Obi

Read-only access to all lists. Can see cost data (UnitCost, AnnualisedCost) and the compliance report. Cannot create or edit records.

Department Managers

varIsDeptManager

Marcus Webb (Operations), Rachel Grant (HR), Liam Foster (Marketing), Daniel Kim (Sales)

Read-only access to allocation records for their own department only. Cannot see cost data. Cannot access the compliance report.

General Employees

N/A

All other employees

No access to the SharePoint site or the Power App.

Stage Complete — What You Now Have

  • ✓Architecture decision: SharePoint Lists (cost vs Dataverse trade-off documented)
  • ✓4-list relationship model with Lookup column structure
  • ✓8 screen designs with key formulas
  • ✓3 flow designs: RenewalReminder, AvailabilityAlert, StatusTransition
  • ✓4 permission groups with varIsIT / varIsFinanceOrIT / varIsDeptManager variables
NextPrepare

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