In the first part of this blog series on Microsoft Flow, we provided an overview on high level architecture details. Now let’s get into some of the details regarding Triggers and Actions.
Triggers define what gets the Flow running
Called from PowerApps
Flow Button (triggered from App)
Selected SharePoint item or Document, shown in Flow menu
Actions allow the flow to interact with other systems using Connectors. Standard connectors come with a standard O365 subscription. Premium connectors are available from many vendors and may require some additional cost.
You can also create Custom Connectors.
- Describe REST interface using Postman or OpenAPI
- Can provides Actions and Triggers
- Can be implemented as Azure Functions
- Action has a default “name” which can be changed with “Rename”
- Add a comment – Add a user defined comment
- Settings – Adjust some advanced settings
- Configure Run After
- Peek at the underlying logic apps code
- Delete the action
- View/add connections used by the action
- The action name should describe what the action is doing from a business perspective.
- The name is used as the name of the result object returned by the action (JSON) so it is important to set this early before the action results are used.
- Once the actions results are referenced by dynamic content the “rename” option will be disabled and the name cannot be changed
- Set advanced properties for an action. Some actions may have different properties available
- Timeout – can set timeout on asynchronous actions (i.e. Approval)
- Adjust retry policy
- Tracked properties
o Add property to Action JSON object results
Configure “Run After”
- Used to handle errors and timeouts by actions
- This will be covered more in error handling section
View / Add connection used by the Action:
- Shows connections used by the action and allows adding new connections
- Connections for the entire flow are shown in the portal (Flow->Details->Connection Section “See All” link). Covered more in Security section.
Looking to learn more about Office 365 in the cloud? Watch this on-demand webcast to learn all about the modern O365 environment. Discover what’s new with SharePoint, Teams, PowerApps, Microsoft Flow and how to migrate your traditional SharePoint and Apps to the modern environment, as well as other best practices from our team’s experiences to help you get the most out of Office 365.