Stage 7 of 17
8 preparation steps in dependency order. Complete every step before starting Stage 8. Each step includes WHAT, WHY, EXPECTED RESULT, and TEST.
Why Are We Doing This?
Create the Microsoft 365 group
What
Create a Microsoft 365 group named 'Software Licence Management'. Add Tom Reeves, James Okafor, and Priya Mehta as members. Add Tom Reeves as owner.
Why
The SharePoint site will be created from this group. The group controls who has access to the site. Creating the group first ensures the site is private from the start.
Expected Result
The group 'Software Licence Management' appears in the Microsoft 365 admin centre. Tom Reeves, James Okafor, and Priya Mehta are members.
Test
Navigate to the Microsoft 365 admin centre → Groups → Active groups. Find 'Software Licence Management'. Verify the members list.
Create the SharePoint site
What
Create a Team site named 'Software Licence Management' from the Microsoft 365 group created in Step 1. Note the site URL.
Why
The SharePoint site is the data layer for the application. All 4 lists will be created here. Creating it from the group ensures the correct permissions are applied automatically.
Expected Result
The SharePoint site is created at https://[tenant].sharepoint.com/sites/SoftwareLicenceMgmt. Only members of the M365 group can access it.
Test
Log in as a general employee (not in the group). Navigate to the site URL. Verify access is denied.
Create the Products list
What
Create a SharePoint list named 'Products'. Add columns: Publisher (Single line), Category (Choice: Productivity/Security/Development/Design/Finance/CRM/Project Management/Communication/Other), Description (Multiple lines), ProductURL (Hyperlink), Status (Choice: Active/Retired, default Active). The Title column is already present.
Why
Products is the top of the data hierarchy. It must exist before Agreements can be created (Agreements has a Lookup to Products).
Expected Result
The Products list exists with 6 columns. The Category choice column has all 9 options. Status defaults to Active.
Test
Navigate to the Products list. Select New. Verify all columns are present. Verify Category shows all 9 options. Verify Status defaults to Active.
Create the Suppliers list
What
Create a SharePoint list named 'Suppliers'. Add columns: ContactName (Single line, required), ContactEmail (Single line, required), ContactPhone (Single line), AccountReference (Single line), SupportPortalURL (Hyperlink), SupportHours (Single line), Notes (Multiple lines).
Why
Suppliers must exist before Agreements (Agreements has a Lookup to Suppliers). Creating it now ensures the Lookup column in Agreements can reference it.
Expected Result
The Suppliers list exists with 8 columns. ContactName and ContactEmail are marked as required.
Test
Navigate to the Suppliers list. Select New. Attempt to save without ContactName. Verify the save fails with a required field error.
Create the Agreements list
What
Create a SharePoint list named 'Agreements'. Add columns: Product (Lookup → Products, required), Supplier (Lookup → Suppliers, required), LicenceType (Choice: Per User/Per Device/Concurrent/Site Licence/Enterprise Agreement/Subscription), QuantityPurchased (Number, required), UnitCost (Currency, required), BillingFrequency (Choice: Monthly/Annual/3-Year, required), StartDate (Date, required), RenewalDate (Date, required), Owner (Person, required), Status (Choice: Active/Pending Renewal/Under Review/Expired/Cancelled, default Active), ReminderSentFlags (Single line), AvailabilityThreshold (Number), Notes (Multiple lines).
Why
Agreements is the central list. It links Products and Suppliers, and is referenced by Allocations. The ReminderSentFlags column is critical for duplicate prevention in the renewal reminder flow.
Expected Result
The Agreements list exists with 14 columns. Product and Supplier are Lookup columns pointing to the correct lists. Status defaults to Active.
Test
Navigate to the Agreements list. Select New. Verify the Product dropdown shows products from the Products list. Verify the Supplier dropdown shows suppliers from the Suppliers list.
Create the Allocations list
What
Create a SharePoint list named 'Allocations'. Add columns: Agreement (Lookup → Agreements, required), AllocatedTo (Single line, required), AllocatedToEmail (Single line), Department (Choice: IT/Finance/Operations/HR/Marketing/Sales/Legal/Other, required), AllocatedDate (Date, required), AllocatedBy (Single line, required), Status (Choice: Active/Inactive, default Active), DeallocationDate (Date), Notes (Multiple lines).
Why
Allocations is the bottom of the data hierarchy. It must be created after Agreements because it has a Lookup to Agreements. The Status column is critical — QuantityAllocated counts only Active allocations.
Expected Result
The Allocations list exists with 10 columns. Agreement is a Lookup to the Agreements list. Status defaults to Active.
Test
Navigate to the Allocations list. Select New. Verify the Agreement dropdown shows agreements from the Agreements list. Verify Status defaults to Active.
Enter sample data
What
Enter the sample data from Stage 5: 10 products, 8 suppliers, 12 agreements, and at least 15 allocation records. For AGR-001 (Microsoft 365, 300 licences), enter 305 active allocations to create the over-allocation scenario.
Why
Sample data is needed to test the application in Stage 11. The over-allocation scenario for AGR-001 is a critical test case — it verifies that the compliance warning works correctly.
Expected Result
All 4 lists contain sample data. AGR-001 shows QuantityAllocated = 305 and QuantityAvailable = -5 in the Power App.
Test
In the Power App (after Stage 8), navigate to scrLicenceDetails for AGR-001. Verify QuantityAllocated = 305, QuantityAvailable = -5, and the compliance badge shows 'Over-Allocated'.
Configure SharePoint permissions
What
Configure SharePoint permissions: IT team (M365 group): Edit on all 4 lists. Sandra Obi (Finance): Read on all 4 lists. Department managers (Marcus Webb, Rachel Grant, Liam Foster, Daniel Kim): Read on Allocations list only, filtered by department in the Power App. General employees: No access.
Why
Permissions must be configured before the Power App is built. The varIsIT, varIsFinanceOrIT, and varIsDeptManager variables in the Power App depend on the user's actual permissions being correct.
Expected Result
Sandra Obi can read all 4 lists but cannot create or edit records. Marcus Webb cannot access the Products, Suppliers, or Agreements lists. General employees cannot access the site.
Test
Log in as Sandra Obi. Navigate to the Agreements list. Verify she can see records. Attempt to create a new record. Verify the New button is not available or the save fails.
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.