Stage 9 of 17
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?
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
Connector: SharePoint. Site Address: your Ideas Portal site URL. List Name: Ideas.
Connector: Office 365 Outlook. To: tom.reeves@contoso.co.uk; sophie.clarke@contoso.co.uk (separate with semicolon).
concat() joins two strings. triggerOutputs()?['body/IdeaTitle'] reads the IdeaTitle field from the trigger output.
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
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
Connector: SharePoint. Site Address: your Ideas Portal site URL. List Name: Ideas.
Condition: Status (dynamic content) is equal to "Under Review". If Yes: continue. If No: terminate (do nothing).
To: SubmittedBy Email (dynamic content from trigger). This sends the email to the person who submitted the idea.
The email goes to the submitter's email address, which is stored in the SubmittedBy field.
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
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
Connector: SharePoint. Site Address: your Ideas Portal site URL. List Name: Ideas.
Condition: Decision (dynamic content) is not equal to "" (empty string). If Yes: continue. If No: terminate.
Add a Switch action. On: Decision (dynamic content). Add three cases: "Accepted", "Rejected", "More Information".
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."
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."
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
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
Interval: 1. Frequency: Day. Start time: set to 08:00 in your timezone. This flow runs every morning at 08:00.
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.
Input: value (from Get items). This loops through every Under Review idea.
Calculate the number of days since ReviewDate. Use the expression:
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.
Condition: the result of the expression above is greater than 5. If Yes: send reminder. If No: do nothing.
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
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
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.