Power Automate
SECTION 06 · LAB 6.2

Make the decision
update the request.

Extend Purchase Approval so the approval outcome is saved back to the original SharePoint item.

Guided practice · Update item
BUILD ON LAB 6.1

Pending → Approve or Reject

Use the existing Purchase-Request list and working Purchase Approval flow. The decision will become stored data in the list, as well as a response email.

Map a value when no branch is needed

The approval supplies an Outcome of Approve or Reject. Give the SharePoint Status column those exact choices and write Outcome directly into it.

No Condition is required for this mapping

Both decisions perform the same action: update the original item. Only the value changes. A Condition becomes useful when approval and rejection need different actions or messages.

STEP 01

Create the Status choice column

  1. Open the training site’s Site contents.
  2. Open the Purchase-Request list menu and choose Settings.
  3. Select Create column.
  4. Name the column Status and select Choice.
  5. Enter the choices below, one per line.
  6. Set the default choice to Pending, then save.

If you already created this column, edit it instead of adding a duplicate. Use the exact choices Approve and Reject to match Outcome.

Open the list settings.
Open the list settings. · Select the image to enlarge.
Select Create column.
Select Create column. · Select the image to enlarge.
Create Status as a Choice column.
Create Status as a Choice column. · Select the image to enlarge.
Enter Pending, Approve, and Reject as the choices.
Enter Pending, Approve, and Reject as the choices. · Select the image to enlarge.
Set Pending as the default for new requests.
Set Pending as the default for new requests. · Select the image to enlarge.
STEP 02

Keep a backup, then edit the working flow

  1. In Power Automate, use Save As on Purchase Approval.
  2. Name the copy Purchase Approval-backup.
  3. Keep that backup turned off.
  4. Return to the original Purchase Approval flow and select Edit.

Only the working version should respond to new items. Enabling the backup too would cause another approval flow to start for the same request.

Save a disabled backup before changing the working approval flow.
Save a disabled backup before changing the working approval flow. · Select the image to enlarge.
STEP 03

Add SharePoint Update item

  1. Add SharePoint → Update item after the approval action has completed.
  2. Select the same training Site Address and Purchase-Request list.
  3. For Id, select ID from When an item is created.
  4. Under advanced parameters, add Status Value.
  5. Set Status Value to the approval action’s Outcome dynamic content. Choose a custom value if needed to insert the token.
  6. If the action requires Title or another existing required field, map it from the SharePoint trigger.
Update the item that started this run

The numeric SharePoint ID identifies the original list item. Do not use the approval GUID. The trigger’s ID connects this decision back to the correct request.

The early configuration screenshot labels the column “Statues.” Use the corrected Status column from Step 1. Refresh or reselect the list in the designer if necessary.

Choose SharePoint Update item.
Choose SharePoint Update item. · Select the image to enlarge.
Use the SharePoint trigger ID and approval Outcome; select your corrected Status field.
Use the SharePoint trigger ID and approval Outcome; select your corrected Status field. · Select the image to enlarge.

Where should Update item go?

The response email from Lab 6.1 may be inside For each because it includes individual approvers’ comments. The screenshot places Update item there too. For this single-approver test, there is one response and it updates once.

Prefer one status update per request

Place Update item outside the response loop, after Start and wait for an approval completes. Use the overall Outcome. Keep the response-level email inside its loop if it uses individual comments. This prevents repeated status updates if you later add more approvers.

Keep the trigger as When an item is created. Updating Status does not create a new item, so this change does not start another run of this flow.

STEP 04

Save and test an approval

  1. Save the working flow and ensure it is enabled.
  2. Select Test → Manually → Test.
  3. Add a new item to the SharePoint list using the values below. Check Status starts as Pending.
  4. Open the approval email, choose Approve, enter a comment, and submit.
The new Bike request starts with Pending status.
The new Bike request starts with Pending status. · Select the image to enlarge.
Approve the request and submit a comment.
Approve the request and submit a comment. · Select the image to enlarge.
STEP 05

Verify the stored outcome

  1. Check the follow-up email contains the decision and your comment.
  2. Refresh the SharePoint list and find the same Bike request.
  3. Verify its Status is now Approve.
  4. Open the completed flow run and verify Update item succeeded.

The demonstration’s list still displays the earlier “Statues” spelling; your corrected column should be Status. The stored value Approve is the direct approval Outcome.

The screenshot’s email subject says “approved Response recorded.” Keep your subject neutral—Approval response recorded—so it is accurate when a request is rejected too.

The confirmation includes Approve and the submitted comment.
The confirmation includes Approve and the submitted comment. · Select the image to enlarge.
The Bike item now stores Approve in the status column.
The Bike item now stores Approve in the status column. · Select the image to enlarge.
The demonstrated single-response run succeeds; for multiple approvers, move Update item outside this response loop.
The demonstrated single-response run succeeds; for multiple approvers, move Update item outside this response loop. · Select the image to enlarge.
STEP 06

Test rejection yourself

  1. Create another new purchase request with a different title and item name.
  2. Check its initial Status is Pending.
  3. Open its approval request and choose Reject.
  4. Add a comment explaining the rejection and submit.
  5. Refresh the list and confirm that this item’s Status becomes Reject.
  6. Check the response email and completed run.

This is an independent test. The supplied screenshots show the approval path; your rejection run verifies that the same mapping handles the other outcome.

If something does not work

Wrong item
Check Id uses ID from the SharePoint trigger and that the action targets the same list.
Choice error
Check the exact choices are Pending, Approve, and Reject. Approved and Rejected do not match the direct Outcome values.
Still Pending
Check the approval was submitted, then inspect Update item. Refresh the SharePoint list.
Duplicate approvals
Check the backup is off and identify any other enabled flows using the same list.
SUCCESS CHECK

The decision has a real consequence.

  • New requests start as Pending.
  • Approval writes Approve to the original item.
  • Your rejection test writes Reject to its original item.
  • The flow uses the SharePoint ID and the overall approval Outcome.
  • The disabled backup does not create duplicate approval requests.