Set options to poll for data
Most monitor events work by polling the application for new data.
To launch the dialog for polling options, click Runs when: New data from the Options menu on any event polling card such as New Email for the Gmail connector.
For polling monitors, there are three options that can be chosen for when to run the flow.
|New Data (default)||
Sets your flow to run once for each new item. For example, if your flow starts with a Salesforce - Monitor New event, then it will check Salesforce every 15 minutes (or another period of time you set it to) to see if new records have been added. If three new records were added since the last check, the flow runs three separate times (once for each new record). If no new records were added, the flow doesn't run at all.
|No New Data||
Allows you to trigger based on no records being found that match the event and criteria you specify. For example, you could set your flow to check Salesforce every morning at 9am to see if there are new leads since the previous check. The No new data option tells the flow to run when no new items is itself a trigger to start a flow.
Your flow will run every time it checks the application. For example, if you are checking every hour for new rows in a spreadsheet, the flow will run exactly once every hour. Instead of getting data for a single row (as it does for the "New Data" option), a flow gets a list that includes data for all of the new rows. If there were no new rows, the list is an empty list. This allows you the most flexibility to decide what actions to take, all in a single flow. For example, you could take different actions based on the number of rows added that hour, including what to do if there are none.
Each flow keeps track of when it last checked the application independent from other flows. You can have multiple flows looking at the same events: one that checks every 15 minutes for new items, another that runs if there are no new items during the previous 24 hours, and another that runs at the end of every week to gets all of the new items for that week.
Webhook monitors may also offer more than one option. For example, the Smartsheet - Monitor New Rows event card notifies the flow as soon as a smartsheet is saved with new rows. In the default monitor setting, the flow runs once for each new row. But you can also opt for list mode which runs the flow just once and passes a list of all new rows.