Power Automate
SECTION 03 · LAB 3.2

Build and test the automated flow

Let a new SharePoint request start the flow and supply the email details.

Guided practice
WHAT YOU WILL BUILD

New list item → Email notification

When a purchase request is added to SharePoint, send an email containing its item name, cost, business reason, creator, and creation time.

Before you begin

Complete Lab 3.1: Create the SharePoint list →. Use your assigned Power Automate environment, an account with access to the list, and your training Outlook mailbox.

Connector versus connection

The SharePoint connector provides triggers and actions for SharePoint. A connection signs in with an account so the flow can access the permitted site and list. The Office 365 Outlook connector provides the email action, using its own connection.

STEP 01

Create an automated cloud flow

  1. In Power Automate, select Create → Automated cloud flow.
  2. Name it New Purchase Request.
  3. Search for and select SharePoint When an item is created.
  4. Select Create. Sign in to the SharePoint connection if prompted.

Select the trigger for an item being created, rather than created or modified. Our requirement is to notify about new requests.

Create New Purchase Request with the SharePoint When an item is created trigger.
Create New Purchase Request with the SharePoint When an item is created trigger. · Select the image to enlarge.
STEP 02

Point the trigger at the list

  1. Open the trigger’s Parameters.
  2. For Site Address, select the site used in Lab 3.1.
  3. For List Name, select Purchase-Request.

The initial red messages indicate required fields that still need values. Select your own training site, rather than copying the trainer’s site URL.

The trigger requires Site Address and List Name.
The trigger requires Site Address and List Name. · Select the image to enlarge.
Select the training site and Purchase-Request list.
Select the training site and Purchase-Request list. · Select the image to enlarge.
STEP 03

Send an email using the new item

  1. Add an action below the trigger.
  2. Choose Office 365 Outlook → Send an email (V2), as in the instant-flow labs.
  3. Set To to your own training mailbox.
  4. Write the body labels and insert the matching SharePoint values from Dynamic content.

Square brackets here indicate dynamic content tokens: select the values from the panel instead of typing the brackets.

The trigger also supplies data

When an item is created provides the fields of that new request. We can use them immediately in the email. We do not need Get item or Get items for this notification.

SharePoint trigger values are available in dynamic content.
SharePoint trigger values are available in dynamic content. · Select the image to enlarge.
Insert the request fields into the email body.
Insert the request fields into the email body. · Select the image to enlarge.
STEP 04

Include the creator, time, and a useful subject

Add the Created By Email and Created tokens to the body. These describe who added the list item and when it was created. You can use dynamic content in the subject too.

The screenshots show these values in a sentence. Separate lines are another clear way to present them. Keep spaces around tokens when combining them with text.

Add the creator email and creation timestamp.
Add the creator email and creation timestamp. · Select the image to enlarge.
Dynamic content can also make the subject specific to the request.
Dynamic content can also make the subject specific to the request. · Select the image to enlarge.
STEP 05

Save and start a test session

  1. Select Save and correct any configuration errors.
  2. Select Test → Manually → Test.
  3. Wait for the message asking you to perform the starting action.
Manual testing does not change the trigger

“Manually” starts the test session. The flow still waits for its SharePoint event: a new item being created. There is no Run flow form for entering purchase details here.

Reuse the Manually test choice introduced in the earlier lab.
Reuse the Manually test choice introduced in the earlier lab. · Select the image to enlarge.
The test session is waiting for the starting action.
The test session is waiting for the starting action. · Select the image to enlarge.
STEP 06

Create a new request while the test waits

Keep the test session open. In another browser tab, open Purchase-Request, select New, enter the following details, and select Save.

Return to the Power Automate test session. Allow a short time for SharePoint to be detected and the flow to run.

Use a new item

The sample record from Lab 3.1 already existed before this test. Add a new record now. Editing the old record does not satisfy When an item is created.

Save a new purchase request to trigger the waiting flow.
Save a new purchase request to trigger the waiting flow. · Select the image to enlarge.
STEP 07

Verify the run and the email

In the test result, check for green success indicators on both When an item is created and Send an email (V2). Open your Outlook training mailbox and check that the email matches the new SharePoint item.

Check presentation as well as delivery

The sample received email joins the creator email and timestamp together. Add a space, the word “on,” or separate lines between those tokens, save, and create another request to verify the improvement.

The raw Created value shown ends in Z, indicating UTC. We will cover readable date and time formatting later in Expressions & data.

Both the SharePoint trigger and Outlook email action succeeded.
Both the SharePoint trigger and Outlook email action succeeded. · Select the image to enlarge.
The received email contains the new item values and creation metadata.
The received email contains the new item values and creation metadata. · Select the image to enlarge.

If something does not work

No run
Check the selected site and list, save the flow, and create a new item after starting the test. Allow time for detection.
No list
Check your SharePoint connection account and its permission to access the assigned site and list.
No email
Inspect the email action’s status, check the recipient address, and check Junk Email.
SECTION 03 COMPLETE

The event starts it. The item supplies the data.

  • You created a structured SharePoint list.
  • You connected a SharePoint event to an Outlook action.
  • You used request fields and metadata as dynamic content.
  • You tested by creating a new item and verified the run and email.

Next: work through several requests with a loop, then use a condition to decide what happens for each request.