Alert Relay icon

Alert Relay Documentation

Guidance for building Alert Relay flows, choosing the right action, and understanding SharePoint version-history comparisons.

Creating Your First Alert Email

Create a Power Automate flow that sends a formatted email when someone creates or changes an item in a SharePoint list.

This is the quickest way to try Alert Relay. The completed flow has three steps:

  1. SharePoint detects that an item was created or modified.
  2. Alert Relay identifies what changed and generates the alert content.
  3. Outlook sends the generated subject and HTML body as an email.

Before you start

You need:

  • a Microsoft 365 account that can create Power Automate flows
  • access to the SharePoint site and list you want to monitor
  • permission to create an Alert Relay connection in your Power Platform environment
  • an email address that you can use for the first test

For an easy first test, use a SharePoint list with a Title column and one or two editable columns, such as Status, Due Date, or Assigned To.

Create the flow

1. Add the SharePoint trigger

In Power Automate, create an automated cloud flow and add the SharePoint trigger When an item is created or modified.

Configure:

  • Site Address: Select the SharePoint site that contains your list.
  • List Name: Select the list you want to monitor.

2. Add the Alert Relay action

Add the Alert Relay action Get Item or File Changes as Alert HTML.

If Power Automate asks for a connection, sign in with the Microsoft 365 account that can access the selected SharePoint site and list. Your organisation might require an administrator to approve the connection.

Configure:

  • Site URL: Select the same site used by the SharePoint trigger.
  • List or Library: Select the same list used by the trigger.
  • Item ID: Select ID from the SharePoint trigger's dynamic content.
  • Compare From: Select Trigger Window Start Token from the SharePoint trigger's dynamic content.

Using Trigger Window Start Token aligns the comparison with the SharePoint trigger window. To compare against a version, date, or another baseline instead, see Choose a comparison baseline.

You can leave the advanced inputs at their default values for this first flow.

Configured Get Item or File Changes as Alert HTML action within a three-step Power Automate flow.

The Alert Relay action configured between the SharePoint trigger and the email action.

3. Add the email action

Add the Office 365 Outlook action Send an email (V2) after the Alert Relay action.

Configure:

  • To: Enter the email address that should receive the test alert.
  • Subject: Select Generated Alert Subject from the Alert Relay action's dynamic content.
  • Body: Select HTML Body from the Alert Relay action's dynamic content.

The Alert Relay body is already formatted as HTML. You do not need to build an HTML table or compare the SharePoint fields yourself.

Send an email (V2) configured with Generated Alert Subject and HTML Body from Alert Relay.

Alert Relay's generated subject and HTML body mapped into the Outlook email action.

4. Save or publish the flow

Make the completed flow available to run:

  • For a standard cloud flow, select Save.
  • For a solution-aware cloud flow that uses drafts and versioning, select Publish. Save draft preserves your work but does not make that draft active at runtime.

Resolve any errors reported by the flow checker. Then confirm that the latest changes are saved or published and that the flow is turned on.

Your completed flow should contain:

  1. When an item is created or modified
  2. Get Item or File Changes as Alert HTML
  3. Send an email (V2)

Test a new item

  1. Create an item in the SharePoint list.
  2. Wait for the flow to run.
  3. Open the flow's run history and confirm that all three steps succeeded.
  4. Open the email and confirm that it describes the item as added and shows its initial values.

Alert Relay returns Is New Item as true for a result that should be treated as a new-item alert. The generated subject and HTML use added-item wording.

Test an update

  1. Edit the same SharePoint item.
  2. Change several related fields and save the item.
  3. Wait for the flow to run again.
  4. Confirm that the new email identifies the item as changed and shows the previous and current values where available.

Generated alert email showing several changed fields for an operational request.

A generated alert showing assessment changes to the request's risk rating, status, estimated cost, and assessment notes.

If a site or list does not appear in the Alert Relay action

If the SharePoint site is missing from the Site URL picker, or the list is missing from the List or Library picker in Get Item or File Changes as Alert HTML, confirm that:

  • the Alert Relay connection uses the expected Microsoft 365 account
  • that account can open the SharePoint site and list
  • Site URL is selected before List or Library
  • the correct Power Platform environment is open

You can also enter a site URL, exact list title, or list GUID as a custom value when the designer allows it.

If the email does not look right

Open the flow's run history and check:

  • the SharePoint trigger supplied the expected ID and Trigger Window Start Token
  • the Alert Relay action succeeded and returned Generated Alert Subject and HTML Body
  • the email action used those Alert Relay outputs rather than similarly named SharePoint values
  • the email body was not converted to plain text by a different email action or later flow step

For more diagnostic steps, see Troubleshooting.

Next steps