How to become a Power Automate/Flow hero with Doctor Flow aka "Serge Luca" (Session online SPSWarsaw - 2020). Power Platform, Power Automate tips and tricks.
4. Here is our experience after 3 years
and 13 enterprise Power Platform projects…
Agenda
Make IT happy
Know the limitations
Maintainability
Reusability
Master Approvals
Use AI
Learn PowerApps
Learn Power BI
Microsoft Graph
Code fast & scalable
Manage throttling
CDS
5. Watch my Ignite 2019 Orlando sessions
BRK3159
“Become a flow super-hero” (= Flow Advanced-Part 2)
BRK3152
“Energize mission critical enterprise business processes with
Microsoft Flow: patterns, tips and tricks” (= Flow Advanced -Part 1)
6. Office Apps & services MVP
Business Applications MVP
O365 Architect
@sergeluca
Power Platform Associates, Brussels
Office365
Flow
Dev
Architecture
Bullshit
Doctor Flow aka “Serge Luca”
9. Make IT
Happy
Understand
the platform Secure Monitor Alert
Nurturing a
Community
Support &
Operations
Covered by the CoE
(Center of Excellence)
Reduce Risks
Power Platform Governance
12. They must
create a
Maker/Service
Account
Make IT
Happy
You give
them your
packages
(.Zip) or
Solutions
They must
authorize your
connectors in
the DLP policy
They must
give you
environments
25. Key Flow
Limitations
No State Machine
Code Reusability
Loops
500 250
actions/flow
Flow Approval
duration : 30 days
Flow duration : 30
days
No guest access
ALM/devops weak
Cannot resume
flow
API Calls limitation
Controller Pattern
5.000 iterations in Do until and 5.000 in Apply to
Each (Premium gives 100.000 in Apply to each)
Create nested flows or raise a support ticket
Use the CDS trigger : “when a record is
updated” (Premium) or Use the Controller
Pattern
Controller Pattern
Requires 1 Office 365 license for each guest
Power Platform Azure Devops Components or
export/unzip/rezip
In the roadmap
500 calls/5 minutes/user + limitation/24h
depending on the license (2.000 calls/user for
O365 license)
30. Boss validates the final document
Secretary Office validates style
Advisors validate content
User Publishes a new “legal” document
State
Machine
State Machine Case 1. Publish a legal document
31. State
Machine
An employee submits a travel expense
The expense must be approved by a First Line
Manager
If the line manager doesn’t react, it must be
escalated to the Big Boss
State Machine Case 2. Submit a travel expense
40. Controller
Launcher flow
Line ManagerVirtual Boss Boss
Normal flow
Service flow
User x
• Approved
• Rejected
• I don’t know
• Timeout
• Cancelled
Listen to reaction
Create
approval
(don’t wait)
Create
approval
(don’t wait)
New Generation
41. New use case
An employee submits a travel expense
The expense must be approved by a First Line
Manager
If the line manager doesn’t react, it must be
escalated to the Big Boss
Minimize the number of human approvals
State Machine Case 2. Submit a travel expense
43. Flow Controller
Pattern and AI Controller
Launcher flow
Line ManagerVirtual Boss Boss
timeout
approved
rejected
timeout
approved
rejected
approved
rejected
I don’t know
Normal flow
Service flow
Case: Approve a travel expense
48. Elevation of
Privilege
Pattern 1
You need a premium
licence for every user
or 1 per flow licence
for the whole
company
Flow Service
Account
Flow Service
Account
PowerApps
Premium
Alex
49. Messages
Elevation of
Privilege
Pattern 2
You need a premium
licence for every user
or 1 per flow licence
for the whole
company
Flow Service
Account
Flow Service
Account
PowerApps
Premium
Alex
50. New use case
An employee submits a travel expense
The expense must be approved by a First Line
Manager
If the line manager doesn’t react, it must be
escalated to the Big Boss
Minimize the number of human approvals
Do not approve if we reach the max monthly
corporate expense
State Machine Case 2. Submit a travel expense
53. Conclusions : there is more than that…
• Learn & share
• Make IT happy
• Know the limitations
• Maintainability
• Reusability
• Master Approvals
• Use AI
• Learn PowerApps
• Learn Power BI
• Microsoft Graph
• Code fast & scalable
• UI Flows
• Adaptive Cards
• Power Apps Portal
• Common Data Service
• Microsoft Forms
• Azure Functions
• Services Bus
• Azure Event Grid
• Azure API Management
• SQL Azure
• …
Open source picture: https://unsplash.com/photos/j9PpIy_x4EE
Usage of service now
Strat after 6’
Get my timesheet: https://emea.flow.microsoft.com/manage/environments/Default-892b3446-d5f0-489e-a68d-605c1613aead/flows/edd198fb-15bb-4fce-96f9-25473cc9ce5e
End of demo: 11’ 10’ 10’ 10’
Open gettimesheet maintainable:
Show documentation compose
talk about deployment
Try and catch
Show scope
Show if_debug
Most of the time this is not important
When user interaction is involved this is important :
PowerApps calls flows
Automated flow : ex: create a global counter
End of demo 15’ 15’ 14’ 13’
In error demo, show that the condition block does not fail if value is null, but the switch does (the status is a choice field)
End of demo : 17’ , 19’, 18’ 17’ 16’
End of slide : 21’ 22’ ,21;20’ (16)
End of this : 26 27’
End of : 32’,30’,32’,29
Todo : CDS diagram : how to cancel
Controller pattern video 1 : https://www.youtube.com/watch?v=e8Nuswofodw
Controller pattern video 2 :
https://www.youtube.com/watch?v=qSYMC20aDiE
34’ 36’ 35’ 32
Powerquery <> oData
Refresh dataset and query a dataset + reusing the result
https://www.youtube.com/watch?v=Sn3XvkIGBOs&t=401s