Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
06.04.2019
#
2019
#
Enterprise Flow Advanced: tips,
pitfalls, patterns,…
Doctor Flow aka “serge Luca”
06.04.2019
#
Sponsors and Partners
Office Apps & services MVP
Business Applications MVP
O365 Architect
@sergeluca
ShareQL Brussels
Office365
Flow
Dev
Archite...
Our workshops
ShareQL.com
@sergeluca
https://myignite.techcommunity.microsoft.com/sessions/66476
Microsoft
flow and
developers
Create REST
Services
(like Azure
functions)
Create
Custom
Connectors
Call REST
APIs from
Flow
Integrate
Flow in their
Appl...
Demo:
Calling
the Graph API
Requires P1
Demo:
Custom Connector
Requires P1
Patterns
and
limitations
State machine pattern or Controller patternNo State Machine
No custom task
forms
Max 5,000 iterations in Do until –> Creat...
Why State
Machine ?
State Machine and
> 30 days
« Flow Controller
Pattern »
Controller
Launcher flow
SecretaryAdvisor Boss
escalate
timeout
ap...
Implementations Messages
(Service
Bus)
Database
(SQL Azure)
Http &
Request
(Requires
P1 license !)
Requires P1
Started from
Excel
Started from SP
New Expense
from App
Trigger : Excel for a
selected row
Trigger :
SharePoint for a
sele...
Demo:
Approval escalation
Approval analytics
Controller pattern
Machine Learning
Requires P1
• the url might change, we want to use a stable vanity url like
https://flowdemo.azure-api.net
• you might need to protect...
Returns max
2048 records
Returns max
5000 records
or 100.000 if
P1 licence
$skiptoken=Page=TRUE%26p_ID=3000&top=5000
Demo:
Manage errors
Demo:
Manage parallelism
Adapt retry policy
Reduce flow concurrency
Use several connectors
Error HTTP 429 : « I’m too busy » come later (in 10 sec)...
202 ACCEPTED
The request has been accepted for
processing, but the processing has not been
completed.
Long Call Duration
P...
Demo:
Manage Long calls
Office 365
audit log
Webhook
1
2
Microsoft
flow and
PowerBI
FLOW
DATA ALERTS
DATA SOURCES
POWER B
I
SCHEDULED REFRESH
STREAMING DATA
LIVE
POWERQUERY
Requires P1
Data On premises
REFR...
Conclusions
Keep your
forms Simple
Trigger
properties
Accounts Management Environments
Business
logic in Flow
In variables Owners :
AD...
Flow can
complement
PowerShell
Be carefull with
P1
…Or run
Powershell via
Azure
Automation
runbooks/hybrid
You can avoid
i...
06.04.2019
#
2019
#
Thank you !
Doctor Flow:  Enterprise Flows best practices - patterns (SharePoint Saturday Warswaw 2019)
Upcoming SlideShare
Loading in …5
×

Doctor Flow: Enterprise Flows best practices - patterns (SharePoint Saturday Warswaw 2019)

224 views

Published on

Doctor flow aka "serge Luca" SharePoint Saturday 2019 presentation

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Doctor Flow: Enterprise Flows best practices - patterns (SharePoint Saturday Warswaw 2019)

  1. 1. 06.04.2019 # 2019 # Enterprise Flow Advanced: tips, pitfalls, patterns,… Doctor Flow aka “serge Luca”
  2. 2. 06.04.2019 # Sponsors and Partners
  3. 3. Office Apps & services MVP Business Applications MVP O365 Architect @sergeluca ShareQL Brussels Office365 Flow Dev Architecture Bullshit Doctor Flow aka “Serge Luca”
  4. 4. Our workshops ShareQL.com @sergeluca
  5. 5. https://myignite.techcommunity.microsoft.com/sessions/66476
  6. 6. Microsoft flow and developers
  7. 7. Create REST Services (like Azure functions) Create Custom Connectors Call REST APIs from Flow Integrate Flow in their Applications Developers Activities Requires P1Requires P1
  8. 8. Demo: Calling the Graph API Requires P1
  9. 9. Demo: Custom Connector Requires P1
  10. 10. Patterns and limitations
  11. 11. State machine pattern or Controller patternNo State Machine No custom task forms Max 5,000 iterations in Do until –> Create embedded loops Max 5,000 iterations in For each (100,000 in Plan 1) Loops Create nested flows or raise a ticket250 actions/flow Flow Approval duration : 30 days Flow duration : 30 days No guest access Controller pattern In the roadmap for Flow & PowerApps ALM/devops weak I could tell you, but then I would have to kill you… Custom approval actions
  12. 12. Why State Machine ?
  13. 13. State Machine and > 30 days « Flow Controller Pattern » Controller Launcher flow SecretaryAdvisor Boss escalate timeout approved rejected in vacation timeout approved rejected redirect in vacation timeout approved rejected escalate Normal flow Service flow
  14. 14. Implementations Messages (Service Bus) Database (SQL Azure) Http & Request (Requires P1 license !) Requires P1
  15. 15. Started from Excel Started from SP New Expense from App Trigger : Excel for a selected row Trigger : SharePoint for a selected row Existing Expense from App Trigger : SharePoint : when an item is created Proxy Flows Service Flow
  16. 16. Demo: Approval escalation Approval analytics Controller pattern Machine Learning
  17. 17. Requires P1
  18. 18. • the url might change, we want to use a stable vanity url like https://flowdemo.azure-api.net • you might need to protect it : authentication • throttling • restricting the callers to some specific network locations • ….
  19. 19. Returns max 2048 records
  20. 20. Returns max 5000 records or 100.000 if P1 licence $skiptoken=Page=TRUE%26p_ID=3000&top=5000
  21. 21. Demo: Manage errors
  22. 22. Demo: Manage parallelism
  23. 23. Adapt retry policy Reduce flow concurrency Use several connectors Error HTTP 429 : « I’m too busy » come later (in 10 sec) Flow throttled by the Service (like SharePoint) and by the Connector (600 calls/min)
  24. 24. 202 ACCEPTED The request has been accepted for processing, but the processing has not been completed. Long Call Duration Pattern Requires P1
  25. 25. Demo: Manage Long calls
  26. 26. Office 365 audit log Webhook 1 2
  27. 27. Microsoft flow and PowerBI
  28. 28. FLOW DATA ALERTS DATA SOURCES POWER B I SCHEDULED REFRESH STREAMING DATA LIVE POWERQUERY Requires P1 Data On premises REFRESH DATASET (april 2019)
  29. 29. Conclusions
  30. 30. Keep your forms Simple Trigger properties Accounts Management Environments Business logic in Flow In variables Owners : ADD Groups Connectors : Services Accounts (except personal flows) PowerShell Flow Management connector Use several DLP
  31. 31. Flow can complement PowerShell Be carefull with P1 …Or run Powershell via Azure Automation runbooks/hybrid You can avoid it (split flows and use service accounts) Integrate with Azure DevOps …I don’t want to kill you https://docs.microsoft.com/en-us/business-applications-release- notes/April19/microsoft-flow/ And much much more… This is just the beginning !
  32. 32. 06.04.2019 # 2019 # Thank you !

×