Stage 9 of 17

Stage 9 of 17

Automate

Four Power Automate flows bring the Employee Ideas Portal to life. Each flow is documented with its trigger, every action, the dynamic content and expressions used, how to test it, and the most common failures. Build each flow in the order shown.

Why Are We Doing This?

Without automation, the Operations team would need to manually email every submitter when their idea is reviewed. With four flows, the system handles all notifications automatically. The overdue reminder flow enforces the 5-day SLA without any manual monitoring. This is the difference between a data store and a working business application.

DToDLab003-NewIdeaNotification

Trigger: When an item is created — Ideas list

Notify the Operations team (Tom Reeves and Sophie Clarke) when a new idea is submitted. This ensures no idea is missed.

Build Steps

1
TriggerWhen an item is created

Connector: SharePoint. Site Address: your Ideas Portal site URL. List Name: Ideas.

2
ActionSend an email (V2)

Connector: Office 365 Outlook. To: tom.reeves@contoso.co.uk; sophie.clarke@contoso.co.uk (separate with semicolon).

Subject: concat('New Idea Submitted: ', triggerOutputs()?['body/IdeaTitle'])

concat() joins two strings. triggerOutputs()?['body/IdeaTitle'] reads the IdeaTitle field from the trigger output.

3
Email bodyBuild the email body

Use dynamic content to build the body. Include: Idea ID (Title field), IdeaTitle, Category, BusinessArea, SubmittedBy DisplayName, ExpectedBenefit. Add a note: "Please log in to the Employee Ideas Portal to review this idea."

Testing

  1. 1.Open the Power Apps app and submit a new test idea.
  2. 2.Navigate to Power Automate → My flows → DToDLab003-NewIdeaNotification.
  3. 3.Check the run history. The flow should show a Succeeded run.
  4. 4.Check the inbox of tom.reeves@contoso.co.uk (or your test account). The notification email should have arrived.
  5. 5.Verify the email contains the correct Idea ID, title, category, and submitter name.

Common Failures

Flow does not trigger

Cause: The flow is turned off, or the SharePoint connection has expired.

Fix: Check the flow is turned on. Check the SharePoint connection in the flow settings.

Email not received

Cause: The email address is incorrect, or the email went to junk.

Fix: Check the To field in the Send an email action. Check the junk folder.

Idea ID is blank in the email

Cause: The Title field was not populated by the app before the flow triggered.

Fix: Check the Patch() formula in the Submit Idea screen. Verify the Title field is being set.

DToDLab003-ReviewerAssignment

Trigger: When an item is modified — Ideas list — condition: Status = Under Review

Notify the submitter that their idea is now being actively reviewed. Sent when the Reviewer moves the idea to Under Review status.

Build Steps

1
TriggerWhen an item is modified

Connector: SharePoint. Site Address: your Ideas Portal site URL. List Name: Ideas.

2
ConditionCheck Status = Under Review

Condition: Status (dynamic content) is equal to "Under Review". If Yes: continue. If No: terminate (do nothing).

3
Action (Yes branch)Send an email (V2)

To: SubmittedBy Email (dynamic content from trigger). This sends the email to the person who submitted the idea.

Subject: concat('Your idea is under review: ', triggerOutputs()?['body/IdeaTitle'])

The email goes to the submitter's email address, which is stored in the SubmittedBy field.

4
Email bodyBuild the notification body

Include: Idea ID, IdeaTitle, Reviewer DisplayName, message: "We aim to complete our review within 5 working days. You will receive another notification when a decision has been made."

Testing

  1. 1.Open the Power Apps app. Log in as a Reviewer.
  2. 2.Navigate to the Reviewer Queue. Select a Submitted idea.
  3. 3.Move the idea to Triage, then to Under Review.
  4. 4.Check the run history for DToDLab003-ReviewerAssignment.
  5. 5.Verify the submitter received the notification email.
  6. 6.Verify the email was NOT sent when the idea moved to Triage (the condition should prevent this).

Common Failures

Flow triggers on every modification, not just Under Review

Cause: The condition is missing or incorrectly configured.

Fix: Check the condition action. The left side should be the Status dynamic content. The right side should be the literal string "Under Review".

Email sent to wrong person

Cause: The To field is using the Reviewer email instead of the SubmittedBy email.

Fix: In the Send an email action, check the To field. It should use SubmittedBy Email from the trigger output, not the Reviewer field.

Flow triggers multiple times for the same idea

Cause: The idea is being modified multiple times (e.g. the reviewer saves twice). The flow triggers on every modification where Status = Under Review.

Fix: Add a second condition: ReviewDate is null. This ensures the notification is only sent the first time the idea enters Under Review.

DToDLab003-DecisionNotification

Trigger: When an item is modified — Ideas list — condition: Decision is not empty

Notify the submitter when a decision has been made on their idea. Sends different email content for Accepted, Rejected, and More Information decisions.

Build Steps

1
TriggerWhen an item is modified

Connector: SharePoint. Site Address: your Ideas Portal site URL. List Name: Ideas.

2
ConditionCheck Decision is not empty

Condition: Decision (dynamic content) is not equal to "" (empty string). If Yes: continue. If No: terminate.

3
SwitchSwitch on Decision value

Add a Switch action. On: Decision (dynamic content). Add three cases: "Accepted", "Rejected", "More Information".

4
Action (Accepted case)Send acceptance email

To: SubmittedBy Email. Subject: "Great news — your idea has been accepted: [IdeaTitle]". Body: Include Idea ID, IdeaTitle, DecisionComments, ImplementationOwner DisplayName (if set), TargetDate (if set). Message: "We will be in touch when implementation begins."

5
Action (Rejected case)Send rejection email

To: SubmittedBy Email. Subject: "Update on your idea: [IdeaTitle]". Body: Include Idea ID, IdeaTitle, DecisionComments. Message: "Thank you for taking the time to submit your idea. We encourage you to submit further ideas in future."

6
Action (More Information case)Send more information request email

To: SubmittedBy Email. Subject: "We need more information about your idea: [IdeaTitle]". Body: Include Idea ID, IdeaTitle, DecisionComments (which contains the specific questions). Message: "Please reply to this email or contact [Reviewer DisplayName] directly."

Testing

  1. 1.Open the Power Apps app as a Reviewer. Select an idea in Under Review.
  2. 2.Set Decision to "Accepted" with a comment. Save.
  3. 3.Verify the submitter receives the acceptance email with the correct content.
  4. 4.Repeat for "Rejected" — verify the rejection email is sent.
  5. 5.Repeat for "More Information" — verify the more information email is sent.
  6. 6.Check the run history for each test. All three runs should show Succeeded.

Common Failures

All three emails sent for one decision

Cause: The Switch action is not configured correctly. All cases are running instead of just the matching one.

Fix: Check the Switch action. Each case should have exactly one Send an email action inside it. Cases should not fall through.

Flow triggers when Decision is already set and another field is updated

Cause: The condition only checks if Decision is not empty — it does not check if Decision was just changed.

Fix: Add a second condition: check that the previous value of Decision was empty. Use the triggerOutputs()?['body/Decision'] vs triggerOutputs()?['body/{Odata.etag}'] approach, or accept this limitation for v1.

DecisionComments is blank in the email

Cause: The DecisionComments field was not populated before the flow triggered.

Fix: Check the Review Idea screen. The Patch() formula should include DecisionComments.

DToDLab003-OverdueReviewReminder

Trigger: Scheduled — every day at 08:00

Send a reminder to the assigned Reviewer when an idea has been in Under Review status for more than 5 working days. Enforces the review SLA.

Build Steps

1
TriggerRecurrence

Interval: 1. Frequency: Day. Start time: set to 08:00 in your timezone. This flow runs every morning at 08:00.

2
ActionGet items — Ideas list

Connector: SharePoint. Site Address: your Ideas Portal site URL. List Name: Ideas. Filter Query: Status eq 'Under Review'. This retrieves all ideas currently in Under Review status.

3
ActionApply to each

Input: value (from Get items). This loops through every Under Review idea.

4
Action (inside Apply to each)Condition — check days overdue

Calculate the number of days since ReviewDate. Use the expression:

div(sub(ticks(utcNow()), ticks(items('Apply_to_each')?['ReviewDate'])), 864000000000)

ticks() converts a date to a number of 100-nanosecond intervals. Subtracting the two gives the elapsed time. Dividing by 864000000000 converts to days. This is the standard Power Automate approach for calculating date differences.

5
ConditionIs days overdue greater than 5?

Condition: the result of the expression above is greater than 5. If Yes: send reminder. If No: do nothing.

6
Action (Yes branch)Send reminder email

To: Reviewer Email (from the current item). Subject: concat('Overdue Review Reminder: ', items('Apply_to_each')?['IdeaTitle']). Body: Include Idea ID, IdeaTitle, SubmittedBy DisplayName, days overdue, and a link to the app.

Testing

  1. 1.Create a test idea and manually set its Status to "Under Review" and its ReviewDate to 6 days ago (edit the list record directly in Microsoft Lists).
  2. 2.Manually trigger the flow: open the flow in Power Automate → Run.
  3. 3.Check the run history. The flow should show a Succeeded run.
  4. 4.Verify the assigned Reviewer received the reminder email.
  5. 5.Create a second test idea with ReviewDate set to 3 days ago. Verify no reminder is sent for this idea.

Common Failures

Flow runs but no emails are sent

Cause: No ideas match the filter (Status = Under Review), or all matching ideas have ReviewDate within 5 days.

Fix: Check the Get items filter. Verify there are ideas in Under Review status with ReviewDate more than 5 days ago.

Expression error in the days calculation

Cause: The ReviewDate field is null for some ideas (ideas that were moved to Under Review before ReviewDate was being set).

Fix: Add a condition before the days calculation: check that ReviewDate is not null. If null, skip the idea.

Reminder sent every day for the same idea

Cause: This is expected behaviour — the flow runs daily and will send a reminder every day until the idea is reviewed.

Fix: This is acceptable for v1. A future improvement could add a "ReminderSentDate" field and only send one reminder per day.

Flow Ownership

After building each flow, add the IT Manager (Priya Mehta) as a co-owner. This ensures the flows continue to run if your account is unavailable. To add a co-owner: open the flow → Edit → Share → add Priya Mehta as a co-owner.

Stage Complete — What You Now Have

  • ✓DToDLab003-NewIdeaNotification — notifies Operations team on submission
  • ✓DToDLab003-ReviewerAssignment — notifies submitter when idea enters Under Review
  • ✓DToDLab003-DecisionNotification — sends tailored email for Accepted, Rejected, More Information
  • ✓DToDLab003-OverdueReviewReminder — daily scheduled reminder for overdue reviews
  • ✓Testing steps and common failures documented for each flow
NextSecure

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