Show
A trigger is an event that starts a cloud flow. For example, if you want to get a notification in Microsoft Teams when someone sends you an email, in this case you receiving an email is the trigger that starts this flow. Power Automate offers connectors to services such as SharePoint and Outlook. Most connectors offer prebuilt triggers that you can use to start your flows. Here's a partial look at the triggers that Office 365 Outlook connector provides by default. Choose the right triggerTriggers can be started instantly or manually, on a schedule, or automatically when an external event (such as when an email arrives) occurs. Triggers for instant/manual flowsIf you'd like to run a cloud flow with a tap of a button on your mobile device, to remind your team to join the daily team meeting, create an instant flow (button flow). You can trigger these flows manually from any device. Learn more about instant flows. Triggers for scheduled flowsIf you'd like to run a cloud flow on a schedule, for example, to send a weekly project report, create a scheduled flow. In scheduled flows, you can choose when (date and time) and frequency (monthly/daily/hourly, etc.). Triggers for automated flowsIf you'd like to create a cloud flow that performs tasks automatically after an event occurs, for example, a cloud flow that notifies you by email when someone tweets with a keyword you specify, create an automated flow. Add a trigger to an existing flow
Important The trigger must be the first step of the flow. Licensing for premium connectorsYou need a standalone Power Apps license or Power Automate license to access all premium, on-premises, and custom connectors. Microsoft 365 plan licensees can use standard connectors but cannot use premium connectors. Here's a screenshot that displays some of the premium connectors that are available in Power Automate. Follow these steps to find your license.
Customize a trigger by adding conditionsSometimes, you may need to customize a trigger so that it fires only when certain conditions are met. For example, you may be using SharePoint's When an item is created or modified trigger in Power Automate. This trigger fires for every change to SharePoint items but you might want the flow to only trigger when an item is created or the status is marked as Approved. While you can filter other events by adding conditions to the flow, the flow still runs and the calls are counted as an API request, causing you to reach your API request limits faster. To avoid it, you can write expressions in trigger conditions, avoiding a run if the condition in trigger isn't met. You may also need to secure the trigger inputs and outputs in the run history of a cloud flow. To do this, you can turn on the secure input or secure output setting in the trigger.
Here are a few tips and tricks for troubleshooting issues with triggers. Identify specific flow runOnce you build and deploy your flows, you might need to debug specific flow runs to confirm that your flow ran as expected. By default, the flow owner can look at the Start, Duration, and Status columns in the run history view in Power Automate to help them identify the flow run they are interested in debugging. The owner can also expand the troubleshooting section to identify the specific run in which they are interested, however, for flows that run frequently, this can be time-consuming. To make it more efficient to identify flow runs when debugging, Power Automate provides the ability for flow owners to configure the list of columns that's displayed on the run history page for each flow run. These columns map to the trigger outputs for your flow. When you display the columns you want, you save time since you will see the relevant columns by default on the run history view. Follow these steps to add one or more columns to your run history view.
Tip You can also configure the list of columns that's displayed via the All runs view. My trigger doesn’t fire
Once the problem is resolved, modify the flow, save it, and then change it back and save again. The flow becomes aware that it's configuration changed, and tries to register its trigger again. Verify connectionsWith the default settings, users only need to login to a connection once. They can then use that connection until it's revoked by an admin. A possible scenario is that the password for the connection can expire or there might be a policy in your organization which sets the connector’s login token expiration after a specific amount of time. Token lifetime policies have been configured on Azure Active Directory. For more information, check this Azure article or this support article. To verify if your connections are broken:
Verify if the flow uses a premium connector trigger
A standalone Power Apps or Power Automate license is required to access all premium, on-premises, and custom connectors. You can purchase new licenses at any time. Check your license typeTo view the type of license that you have:
Verify if trigger check is skippedYou just completed an event (for example, added a new list item or sent an email, etc.) that should have triggered the flow, but the flow didn’t run. Go to My flows in the navigation pane, and then select the flow. In the 28-day run history, select All runs. If you are expecting the flow to run but it didn’t run, see if it shows the trigger check was skipped at that time. If the trigger check was skipped, the trigger condition wasn’t met for the flow to trigger. Verify the inputs and trigger conditions of the flow to see you are using the latest configuration to trigger the flow. Verify inputs and trigger conditionsSometimes, the inputs and trigger conditions may cause failures. Follow these steps to verfiy your inputs and conditions.
Check permissionsVerify that you have access to the folders, sites, or mailboxes that are used in the trigger. For example, to be able to send email from a shared inbox via Power Automate, you need permissions to send an email via the shared inbox. Test sending an email from that shared mailbox in Outlook. Verify if admin mode is turned onIf an environment’s admin mode is turned on, all background processes, including flows will be turned off, causing the flow to not trigger. Follow these steps to disable the admin mode.
If everything looks good but your flow is still not triggering, verify if your flow triggers after every step. Try these steps
My trigger is firing for old eventsThere are two types of triggers—polling triggers or Webhook triggers. If you turned off your flow and then turned it back on, depending on your trigger type, your old triggers may be processed. A polling trigger periodically makes a call to your service to look for new data, whereas a Webhook trigger responds to a push of new data from the service. See the following table to understand how your flow responds when it's turned back on.
To determine the type of trigger that's used in your flow:
Confirm you've set the start time to make sure it runs only at that time. There's a delay before my trigger firesIf the trigger is a polling trigger, it wakes up periodically to check if any new events have occurred. The wake-up time depends on the license plan on which the flow runs. For example, your flows may run every 15 minutes if you’re on the Free license plan. On the Free plan, if a cloud flow is triggered less than 15 minutes after its last run, it’s queued until 15 minutes have elapsed. And, if your license is the Flow for Office 365 plan (from your Enterprise license E3, E5, etc.) or the Flow for Dynamics 365 plan, your flow won't run again until five minutes have elapsed. So, it may be a few minutes between the time the triggering event occurs and the time the flow begins. To check the trigger wake up frequency:
If it is taking much longer than expected for your flow to trigger, the two likeliest reasons are:
Dynamics 365 connector trigger issuesThere's a delay - Dynamics 365 connector triggers can take up to 2 hours to run. This connector is deprecated and our recommendation is to migrate your flows to use Microsoft Dataverse. My flow is not listed - The Power Automate menu only lists flows that begin with the When a row is added, modified or deleted trigger and contain at least one trigger or action that references that table. Flows that contain other types of triggers (automatic, scheduled, etc.) will not be listed in Dynamics 365. You can also access these flows in the Power Platform admin center:
Important You must enable Power Automate before you can find these flows. Power Apps apps trigger issuesUnable to rename actions in a cloud flow – This is a known issue for flows that use Power Apps triggers. As a work around to rename actions, remove the trigger. Rename the actions and add your Power Apps trigger and configure variables wherever needed. Once a Power Apps app is published, make copies of the flows used by the Power Apps app to make any updates. Any update to a cloud flow that's referenced by a published Power Apps app can break existing users. Do not delete or turn off existing flows until all users have been upgraded to the new published version of the Power Apps app. SharePoint triggers, for example When a file is created or modified will not fire if a file is added/updated in a subfolder. If you need the flow to trigger on subfolders, create multiple flows. My flow triggers multiple timesVerify that you don’t have copies of the flow active in different environments that are triggering based on same condition. Use trigger conditions to customize triggers to reduce the number of times it triggers. You can try one of the following:
My flows don't trigger after I change the environment URLTo resolve this issue, edit each flow and save it. The triggers should start firing again. |