Power Automate
SECTION 06 · LAB 6.1

Request a purchase
approval.

Reuse the SharePoint list, wait for a person’s decision, then send a confirmation containing the outcome and comment.

Guided practice · Approvals & generated code
WHAT YOU WILL BUILD

New request → Approval → Response email

Use the Purchase-Request list from Section 03. Create a new flow named Purchase Approval. Assign the approval to your own training account so you can test the full process.

One source can start more than one flow

The earlier New Purchase Request flow and this new approval flow can both listen to When an item is created on the same SharePoint list. Each enabled flow starts independently when a new item is added. One flow does not wait for another.

If your Lab 5.2 Excel log flow is also enabled on this list, it can add a log row too. Know which flows are enabled before testing.

STEP 01

Create the approval flow

  1. Select your assigned training environment.
  2. Select Create → Automated cloud flow.
  3. Name it Purchase Approval and choose SharePoint When an item is created.
  4. Select your training site and existing Purchase-Request list.
Create Purchase Approval with the SharePoint new-item trigger.
Create Purchase Approval with the SharePoint new-item trigger. · Select the image to enlarge.
Reuse the site and Purchase-Request list from Section 03.
Reuse the site and Purchase-Request list from Section 03. · Select the image to enlarge.
STEP 02

Start and wait for an approval

  1. Add Start and wait for an approval from the approvals connector.
  2. Select Approve/Reject – Everyone must approve.
  3. For Assigned to, select your own training account.
  4. Build a title using Item name, the word Requested, Estimated cost, and QAR. Add spaces between values.
  5. In Details, include the business reason, requester, item, cost, and creation time using SharePoint dynamic content.

For one assigned approver, that person supplies the decision. With several approvers, Everyone must approve requires all to approve; a rejection can resolve it as rejected. First to respond is a different pattern where the first response decides the result.

Use the right approval field

The screenshot places descriptive text in Item link description. Put the request explanation in Details. If you want a link, place SharePoint Link to item in Item link and use a short description such as Open purchase request.

This action sends the approval and waits for its outcome before the following step runs.

Choose Start and wait for an approval.
Choose Start and wait for an approval. · Select the image to enlarge.
Choose the approval pattern.
Choose the approval pattern. · Select the image to enlarge.
Assign the training approver and populate the request fields; use Details for the explanation.
Assign the training approver and populate the request fields; use Details for the explanation. · Select the image to enlarge.
STEP 03

Add a follow-up email and inspect its values

Add Office 365 Outlook → Send an email (V2) after the approval. Set To to your training mailbox and use the neutral subject Approval response recorded.

In the trainer demonstration, the initial email deliberately uses the wrong dynamic content fields. Watch the result, then correct the selections in Step 6. Do not assume a shortened token label contains a person’s name or response.

A response email is not an approval decision

Without a Condition, the email after the approval runs when the approval action completes successfully, whether the decision is Approve or Reject. Use a neutral subject. To send different messages for different outcomes, add a Condition comparing Outcome with Approve.

The follow-up email comes after Start and wait for an approval.
The follow-up email comes after Start and wait for an approval. · Select the image to enlarge.
Intentional wrong-field example: the truncated tokens need inspection.
Intentional wrong-field example: the truncated tokens need inspection. · Select the image to enlarge.
STEP 04

Test and observe the independent flows

  1. Save and select Test → Manually → Test.
  2. Open the training site’s Purchase-Request list and add a new item.
  3. Use Title Request002, Item name Laptop, Estimated cost 6000, and a business reason.
  4. Open Outlook and compare the ordinary notification from Section 03 with the new approval request.

These two emails come from two different flows using the same source event. The original notification arrives independently of the approval decision.

Open Purchase-Request from the site contents.
Open Purchase-Request from the site contents. · Select the image to enlarge.
Add the Laptop request to start the enabled flows.
Add the Laptop request to start the enabled flows. · Select the image to enlarge.
The earlier flow sends its usual purchase notification.
The earlier flow sends its usual purchase notification. · Select the image to enlarge.
The new flow sends an actionable approval request for the same item.
The new flow sends an actionable approval request for the same item. · Select the image to enlarge.
STEP 05

Respond, then check the deliberate mistake

  1. Observe the running flow while the approval waits. The following email has not run yet.
  2. In the approval message, choose Approve, enter a comment, and select Submit.
  3. Check the confirmation and completed run.

The initial confirmation contains GUID values around the fixed word approved. Those are identifiers, not the approver’s name or decision. Successful execution means the action ran; it does not guarantee you chose meaningful data.

The approval is waiting before the email step can execute.
The approval is waiting before the email step can execute. · Select the image to enlarge.
Submit an approval with a comment.
Submit an approval with a comment. · Select the image to enlarge.
Intentional wrong-field result: identifier values appear where meaningful content was expected.
Intentional wrong-field result: identifier values appear where meaningful content was expected. · Select the image to enlarge.
The flow completes after the approval response and confirmation email.
The flow completes after the approval response and confirmation email. · Select the image to enlarge.
STEP 06

Select the meaningful response fields

Edit the confirmation email to include these values from the approval action.

Email labelValue to select
Approval identifierThe approval identifier, represented by body/name in this action’s code
Approval titleThe approval title, body/title
DetailsThe approval details, body/details, if you populated Details
DecisionOutcome
CommentResponses Comments

Outcome is the overall decision. Responses Comments belongs to a collection of individual responses. Selecting it can make the designer add an Apply to each around the email; that loop processes each approver’s response. This differs from looping over purchase requests.

If you include an approver’s name or email, select the appropriate response-level approver field. Use SharePoint ID for the list item’s numeric identifier; the approval GUID is a different identifier.

The corrected email uses approval fields and a response comment; the shortened chips hide the full references.
The corrected email uses approval fields and a response comment; the shortened chips hide the full references. · Select the image to enlarge.

Visual choices become generated code

The chips in the designer are visual representations of references. Their displayed labels may be shortened. Behind each chip is an expression that tells Power Automate which step and property to read.

Build visually. Inspect the generated definition.

You choose actions, fill fields, and select dynamic content in the designer. Power Automate generates the underlying JSON action definition. You do not need to write or paste this JSON to build the lab. Code view helps you understand what your visual choices mean.

Open the email action’s Code view and compare it with the Parameters tab.

Code view shows the generated definition of the email action, including its dynamic references.
Code view shows the generated definition of the email action, including its dynamic references. · Select the image to enlarge.
Generated reference from the exampleWhat it reads
outputs('Start_and_wait_for_an_approval')?['body/name']The approval identifier, despite the property being named name
outputs('Start_and_wait_for_an_approval')?['body/title']The approval title
outputs('Start_and_wait_for_an_approval')?['body/details']The Details value supplied to the approval
outputs('Start_and_wait_for_an_approval')?['body/outcome']The overall Approve/Reject outcome
items('For_each')?['comments']The current response’s comments inside the generated response loop

The property called name contains an identifier in this example. A label is not a substitute for inspecting the actual output. Step names such as For_each can differ in your flow.

Read a short excerpt of the generated email definition

This excerpt preserves the references from the trainer’s example and uses a neutral subject. It is for reading, not a command to paste.

The JSON describes the action and its settings. The @{...} sections insert calculated or referenced values into the email body when the flow runs.

STEP 07

Isolate the approval test and verify the correction

  1. In My flows, turn off the earlier New Purchase Request notification flow if you want to isolate this approval test. Keep Purchase Approval enabled.
  2. Save the corrected approval flow.
  3. Create a new SharePoint request: Title Request05, Item name TV, Estimated cost 1450, Business reason 52 TV for Hassan office.
  4. Open the approval email, approve it, enter a comment, and submit.
  5. Verify the confirmation contains the title, the actual Approve outcome, and the comment.

The extra Screen request in the screenshots was an intermediate test. Use the TV request to verify the corrected result. Earlier emails remain in the mailbox; compare the latest messages.

New Purchase Request is off while Purchase Approval remains on.
New Purchase Request is off while Purchase Approval remains on. · Select the image to enlarge.
Create another request to test the corrected flow.
Create another request to test the corrected flow. · Select the image to enlarge.
The TV approval request is received.
The TV approval request is received. · Select the image to enlarge.
Approve the request and enter a comment.
Approve the request and enter a comment. · Select the image to enlarge.
The corrected confirmation contains the approval title, decision, and actual response comment.
The corrected confirmation contains the approval title, decision, and actual response comment. · Select the image to enlarge.
SUCCESS CHECK

A decision with a meaningful response.

  • The approval flow reuses the existing SharePoint list.
  • The run waits for a response before continuing.
  • The confirmation distinguishes the approval identifier, Outcome, and response comment.
  • You understand how the same source can trigger multiple independent flows.
  • You can connect a dynamic-content chip with its generated code reference.

Next: save Outcome back to SharePoint in Lab 6.2. A Condition is an optional extension when different decisions need different follow-up actions.

Reference

Microsoft: approvals and branching on Outcome ↗