Log SharePoint requests
in Excel.
Create a new automated flow that adds an Excel log row whenever a purchase request is created in SharePoint.
Independent lab · Screenshot submissionNew SharePoint item → New Excel row
Use your training SharePoint site, the Purchase-Request list, your assigned Power Automate environment, and OneDrive for Business.
Prepare the Excel log
- Create PurchaseRequestLog.xlsx.
- Add the six headers shown below.
- Format the range as an Excel Table with headers and name it PurchaseRequestLog.
- Save it in your OneDrive for Business Training folder, wait for saving to finish, and close it.
| Request ID | Item name | Estimated cost | Business reason | Created by | Created on |
|---|---|---|---|---|---|
| Leave the log ready for new records. Do not enter sample requests manually. | |||||
Create the automated flow
- Select Create → Automated cloud flow.
- Name it Log purchase requests in Excel.
- Select SharePoint When an item is created, then Create.
- Set Site Address to your training site and List Name to Purchase-Request.
Add the Excel action
- Add Excel Online (Business) → Add a row into a table.
- Sign in if prompted.
- Configure the action as follows.
| Setting | Value |
|---|---|
| Location | OneDrive for Business |
| Document Library | OneDrive |
| File | /Training/PurchaseRequestLog.xlsx |
| Table | PurchaseRequestLog |
Keep the flow to one trigger and one Excel action. No loop is needed for this task.
Map the fields and add expressions
Use dynamic content from When an item is created for these fields.
| Excel column | SharePoint dynamic content |
|---|---|
| Request ID | ID |
| Item name | Item name |
| Estimated cost | Estimated cost |
| Created by | Created By Email |
For Business reason, use fx to return the reason or the fallback text.
if(empty(triggerBody()?['Business_x0020_reason']), 'No reason Given', triggerBody()?['Business_x0020_reason'])The example assumes the internal name is Business_x0020_reason. If yours differs, use the trigger’s Business reason dynamic content in both value positions: inside empty() and as the final argument. Do not use item() here; this flow has no Apply to each.
For Created on, insert this expression through fx.
formatDateTime(triggerBody()?['Created'], 'dd/MM/yyyy HH:mm')Use the SharePoint Created timestamp, not utcNow(). This format retains UTC. Save the flow.
Test with two new requests
- Select Test → Manually → Test.
- In another tab, add and save a new SharePoint request using the first row below.
- Confirm the flow run succeeded.
- Add a second request, leaving Business reason completely blank.
- Wait for its run to complete.
- Open the Excel log and verify both new rows, their creator emails, and creation timestamps.
- Check the second row shows No reason Given.
| Title | Item name | Estimated cost | Business reason |
|---|---|---|---|
| Log test 01 | Wireless keyboard | 200 | Replace faulty equipment |
| Log test 02 | USB headset | 250 | Leave blank |
Show a successful run.
- Open a successful run of Log purchase requests in Excel.
- Take a screenshot showing the flow name and green success indicators for When an item is created and Add a row into a table.
- Upload the screenshot using the submission form below.