Power Automate
SECTION 02 · LAB 2.2 · PART 2

One flow.
Different requests.

Let the person running the flow supply the purchase details. Use those answers in the email instead of typing a fixed request into the action.

Guided practice · Inputs & dynamic content
BUILD ON PART 1

The flow stays. The information changes.

Keep your manual trigger and Outlook email action. Add three input fields, connect them to the email body, and send a new request for solar panels.

Before you begin

Complete Part 1: Send a purchase request →. In the training environment provided by your IT team, open My flows, select the flow you built, and select Edit.

Where does the data come from?

In this lab, the person running the flow supplies the data. Excel and SharePoint are not needed yet. Later, we will explore how a data source can supply these values.

STEP 01

Add inputs to the manual trigger

  1. Select Manually trigger a flow in the designer.
  2. In Parameters, select Add an input.
  3. Choose Text for the item name.
  4. Repeat Add an input to add a Number for the estimated cost and another Text input for the business reason.

The input type controls what kind of information the person will enter. A number input fits the cost; text inputs fit the item name and explanation.

Choose the type of user input on the manual trigger.
Choose the type of user input on the manual trigger. · Select the image to enlarge.
STEP 02

Give each input a clear name

Set the names and help text as follows. The help text guides the person filling in the run form.

TypeInput nameSuggested help text
Textitem nameplease add the Item name
NumberEstimated costplease write cost as number without currency symbol
TextBusiness reasonadd reason/s for business review

The screenshot shows narrow name boxes, so some labels appear shortened. The dynamic content panel in the next step shows the complete names.

The manual trigger has two text inputs and one number input.
The manual trigger has two text inputs and one number input. · Select the image to enlarge.
STEP 03

Find the trigger values in dynamic content

  1. Open Send an email (V2).
  2. In Body, remove the fixed value External monitor, leaving the label Item:.
  3. Place the cursor after the label and open Dynamic content using the lightning-bolt button.
  4. Under Manually trigger a flow, select item name.
What is dynamic content?

A value supplied by the trigger or an earlier action that you can use in a later step. Here, the email receives the item name entered by the person running the flow.

Select the input from the panel rather than typing its name into the email. Other trigger values may also appear in the panel; choose the three inputs you created.

The dynamic content panel lists item name, Estimated cost, and Business reason.
The dynamic content panel lists item name, Estimated cost, and Business reason. · Select the image to enlarge.
STEP 04

Replace the remaining fixed values

  1. Replace 850 after Estimated cost with the Estimated cost dynamic content value.
  2. Replace the fixed business explanation with the Business reason dynamic content value.
  3. Keep To set to your own training mailbox and keep the existing fixed subject.
  4. Select Save.

Your body should contain the three blue dynamic content tokens shown below. The labels remain fixed; the tokens receive new values each time the flow runs.

A token is a placeholder for a value

The email will contain “Solar Panel,” for example, rather than the words “item name.” The token is replaced with the answer supplied for that run.

The email body uses dynamic content tokens for the three request details.
The email body uses dynamic content tokens for the three request details. · Select the image to enlarge.
STEP 05

Run with a different purchase request

  1. Select Test → Manually → Test.
  2. Confirm the Outlook connection if prompted and continue to the run form.
  3. Enter the sample values below.
  4. Select Run flow.

Enter the cost as a number without a currency symbol. The screenshot still shows the old flow name, External monitor; we will improve that name in the final step.

The run form collects new request details before starting the flow.
The run form collects new request details before starting the flow. · Select the image to enlarge.
STEP 06

Check that the email uses your answers

Open your Outlook training mailbox and find the new purchase request email. Verify that it contains Solar Panel, 10000, and the business reason entered in the run form.

Compare it with the External monitor email from Part 1. The trigger and email action still do the same jobs, but this email uses information supplied for this run.

Try another run

Run the flow again with a different item and cost. You should not need to edit the email action to send a different request.

The received email contains the Solar Panel details supplied in the run form.
The received email contains the Solar Panel details supplied in the run form. · Select the image to enlarge.
STEP 07

Rename the flow to match its purpose

The name External monitor described our first example. Now the flow can send requests for many items, so a more useful name is Send a purchase request.

  1. Return to My flows and open the flow’s details page.
  2. In the Details card, select Edit.
  3. Change the flow name to Send a purchase request and save the change.
  4. Check the updated name on the details page.
You can rename a flow as it develops

Choose a name that describes what the flow does. Renaming the flow changes its name; it does not rewrite the email subject, change its inputs, or change its actions.

The details page also shows the run history. In the screenshot, both test runs succeeded.

The flow is renamed Send a purchase request, with successful test runs visible in its history.
The flow is renamed Send a purchase request, with successful test runs visible in its history. · Select the image to enlarge.
SUCCESS CHECK

One reusable purchase request flow.

  • The manual trigger asks for an item name, estimated cost, and business reason.
  • The email body uses the three input values as dynamic content.
  • New runs can send different request details without editing the flow.
  • The name describes its purpose: Send a purchase request.

If something does not work

Missing input
Check the manual trigger has all three named inputs, then save and reopen the test form.
Old details
Check that you replaced the fixed values in the email body with dynamic content tokens and saved before testing.
Wrong value
Check each token matches its label: item name, Estimated cost, and Business reason.
What if the details already exist somewhere?

Entering the values manually works for individual requests. Next, we can explore reading request details from Excel or SharePoint—and what happens when there is more than one row or item.