SlideShare a Scribd company logo
Power Automation: Best practices, tips and tricks
by Sandro Pereira
DIAMOND
COMMUNITY
• Head of Integration @DevScope
• Microsoft Azure MVP
• sandro.pereira@devscope.net
• linkedin.com/in/sandropereira
• @sandro_asp
• https://blog.sandro-pereira.com/
• Public speaker
• Father
• Book author: “BizTalk Mapping Patterns
and Best Practices”
+351 223 751 350
www.devscope.net
Sandro Pereira
this house have kids'…
Dynamics 365
Office 365
Standalone Apps
Microsoft
Power Platform
Common Data Service for Apps
Data Connectors
fast development….
Azure
this is our fight #tech4covid19
CHVNGE
how are my flows?
are they reliable?
what may be wrong?
1 Power Automate
was rebrand…
Microsoft
Flow

Power
Automate

Power Automate
flow naming
convention…
2
Use descriptive names
 Improves readability
 Transfer knowledge
You can always rename your flows without
impacting what is running
You can use all types of characters
DVS ADM – Inventory – Change water bottle 4 Floor
DVS ADM – Inventory – Change water bottle 3 Floor
POC CLIENT_NAME – Check if user exists
DVS CSI – Survey Process
DVS TimeReport App – Create Time Report
DVS TimeReport App – Get Budgets by project
DVS TimeReport App – Get Project by name
3 actions naming
convention…
Use descriptive names
 Improves readability
 Transfer knowledge
You can now rename actions that have
dependencies… directly
The name cannot contain any control characters or
any of the following symbols: '"<", ">", "%", "&", "",
"?", "/"'.
What do you see wrong?
What can we improve?
Most of the triggersdon’t allow you to
change the name
Outlook or Forms triggers allows
Never renameactionnames without
fixing all the connectors…
especially if they have a dependencyon
the action,you are renaming
You can alwaysrename the actions even
the ones that have dependenciesdirectly
withoutany impact.
4
Everyone can read the comments
 Improves readability
 Transfer knowledge
Save yourself and teammates from future
frustration
Every expression should have a comment
add comments…
20201010 -  Collabdays 2020 - Sandro Pereira - Power Automates: best practices, tips and tricks
5 copy to my
clipboard…
Easy way to Duplicate Actions or Scope
Avoid reproducing settings over and over again
Copy once, paste many times
The clipboardcontentis availableduring
the lifetimeof your browser session…
…you can even copy and paste into
different Power Automate flows.
If you refreshthe browser (F5) your
clipboardcontent will go away!
6
Managing individual actions introduces
complexity
 Scopes allow us to group actions together
 Manage actions as a single unit instead of
disparate items
using scopes…
scope… is a region
scope… is a try-catch-finally
7 error handling…
configure run
after settings
Power Automate default response to errors from
connectors is pretty simple – exit the workflow
with failure right there - but it also allows you to
have the:
 The ability to set action(s) after a failure
 Or define retry policies
20201010 -  Collabdays 2020 - Sandro Pereira - Power Automates: best practices, tips and tricks
20201010 -  Collabdays 2020 - Sandro Pereira - Power Automates: best practices, tips and tricks
Specify interval in ISO 8601 format.
Examples:
• "PT20S"--parsesas"20seconds"
• "PT15M" --parsesas"15minutes"(whereaminuteis60seconds)
• "PT10H" --parsesas"10hours"(whereanhouris3600seconds)
• "P2D" --parsesas"2days"(whereadayis24hoursor86400seconds)
• "P2DT3H4M" --parsesas"2days,3hoursand4minutes"
8
You should analyze the run history from time to
time and learn from failures… or mistakes
 Flow failure is critical!
 If it is failing due to expected behavior, then
you must redesign your flow, so it doesn't
end up in a failure status
Learn from
failures…
C# developer’s implement
defensive code…
… with not in Power Automate?
first(body('Exec_SP_-_GetLastExecutionTime')?['resultsets']?['Table1'])?['LastRun']
empty(body('Exec_SP_-_GetLastExecutionTime')?['resultsets']?['Table1'])
9 expressions
nightmare…
Basic operations that you can use inside flow
actions or conditions
 Like getting the current time, adding
numbers together, manipulating strings or
Parsing XML
 They are part of the engine
body('Execute_SP_-_Get_BZT_lock_error_details')
Name of the actions with the
space replace by underscore
body('Execute_SP_-_Get_BZT_lock_error_details')?['ResultSets']?['Table1'][0]?['ErrorDescription’]
concat(div(sub(ticks(utcNow()), ticks(item()?['Created'])), 10000000), ' segundo(s)')
int(div(add(add(int(variables('ContentClear')), int(variables('GoodCommunicator'))) ,
add(int(variables('EnjoySession')), int(variables('MetExpectation')))),4))
int(
div(
add(
add(
int(variables('ContentClear')),
int(variables('GoodCommunicator’))
) ,
add(
int(variables('EnjoySession')),
int(variables('MetExpectation’))
)
)
,4
)
)
10
Flow Designer performs design-time checks
against your flow for design issues
 Prescriptive guidance on how to fix
 Errors put into focus to save your time and
frustration
flow checker…
20201010 -  Collabdays 2020 - Sandro Pereira - Power Automates: best practices, tips and tricks
11 send a copy…
Share a flow, without sharing a connection
 Avoid connection/data leakage
 Copy becomes disconnected from the
original
 Efficient and effective
You are sharing the flow template
20201010 -  Collabdays 2020 - Sandro Pereira - Power Automates: best practices, tips and tricks
12
Share a flow between your team or company
 Be aware of connection/data leakage
 Work as a team
You are sharing the flow process
Share with other
users or security
groups…
20201010 -  Collabdays 2020 - Sandro Pereira - Power Automates: best practices, tips and tricks
20201010 -  Collabdays 2020 - Sandro Pereira - Power Automates: best practices, tips and tricks
DIAMOND
COMMUNITY
Thanks!
DevScope
+351 223 751 350
 support@devscope.net
 https://pt.linkedin.com/company/devscope
 @DevScope
 www.devscope.net
Sandro Pereira
 sandro.pereira@devscope.net
 linkedin.com/in/sandropereira
 @sandro_asp
 https://blog.sandro-pereira.com/
20201010 -  Collabdays 2020 - Sandro Pereira - Power Automates: best practices, tips and tricks

More Related Content

PDF
Programming Sessions KU Leuven - Session 03
PPT
Wp7 mockup 5 run local model
PDF
Modular programming in qbasic
PDF
Power Automate training in Hyderabad.....
PPTX
Power Automate training near in Hyderabad
PDF
Power Automate training near in Hyderabad
PPTX
Power Automate training near in Hyderabad
Programming Sessions KU Leuven - Session 03
Wp7 mockup 5 run local model
Modular programming in qbasic
Power Automate training in Hyderabad.....
Power Automate training near in Hyderabad
Power Automate training near in Hyderabad
Power Automate training near in Hyderabad

Similar to 20201010 - Collabdays 2020 - Sandro Pereira - Power Automates: best practices, tips and tricks (20)

PDF
Power Automate training education in Hyderabad
PPTX
Power Automate training education in Hyderabad
PPTX
Power Automate training in Hyderabad....
PDF
Power automate a workflow automation platform
PPTX
UiPath Development Best Practices.pptx
PPTX
Power Automate/ Flow patterns tips and tricks after 3 years with Doctor Flow
PPTX
Ensuring Secure and Efficient Automation: Power Automate Compliance Review an...
PDF
Introduction to UI flows - Office 365 Nashville 2020
PDF
Error Handling in Power Automateeee .pdf
PPTX
Empowering Your Workflow Automation with Power Automate
PPTX
Power Automate
PPTX
Design mission-critical enterprise applications with Power Automate and Docto...
PDF
South Coast Summit 2021 - 12 months of power automate pain
PDF
Next level data operations using Power Automate magic
PDF
Microsoft Power Automate Questions and Answers
DOC
10 best-practices-for-new-robotic-process-automation-rpa-developer-220f7ccdf33
PPTX
F1_Design Mission Critical Enterprise Applications with Power Automate and Do...
PPTX
Optimizing Power Automate cloud flows: Techniques for maximum efficiency
PPTX
Salesforce Flows Architecture Best Practices
PDF
Workflowvs vs Flow 365 Saturday Amsterdam
Power Automate training education in Hyderabad
Power Automate training education in Hyderabad
Power Automate training in Hyderabad....
Power automate a workflow automation platform
UiPath Development Best Practices.pptx
Power Automate/ Flow patterns tips and tricks after 3 years with Doctor Flow
Ensuring Secure and Efficient Automation: Power Automate Compliance Review an...
Introduction to UI flows - Office 365 Nashville 2020
Error Handling in Power Automateeee .pdf
Empowering Your Workflow Automation with Power Automate
Power Automate
Design mission-critical enterprise applications with Power Automate and Docto...
South Coast Summit 2021 - 12 months of power automate pain
Next level data operations using Power Automate magic
Microsoft Power Automate Questions and Answers
10 best-practices-for-new-robotic-process-automation-rpa-developer-220f7ccdf33
F1_Design Mission Critical Enterprise Applications with Power Automate and Do...
Optimizing Power Automate cloud flows: Techniques for maximum efficiency
Salesforce Flows Architecture Best Practices
Workflowvs vs Flow 365 Saturday Amsterdam
Ad

More from Sandro Pereira (20)

PPTX
Integrate 2020 - Sandro Pereira - BizTalk Server 2020 migration path
PPTX
ACSUG June 2020 - Azure Logic Apps: Best practices, tips and tricks
PPTX
Global Azure 2020 - Sandro Pereira - Logic apps: Best practices tips and tricks
PPTX
2019 06-25 - integrate 2019 US/UK - Sandro Pereira - BizTalk Server Fast and ...
PPTX
2018 06-05 - integrate 2018 - Sandro Pereira - BizTalk Server notes from the ...
PPTX
Integrate 2017 US - Sandro Pereira - BizTalk Server Fast and Loud
PPTX
Sandro Pereira - BizTalk Server Fast and Loud
PPTX
HOW CAN POWERAPPS AND MICROSOFT FLOW ALLOWS YOUR POWER USERS TO QUICKLY BUILD...
PPTX
BizTalk Server Deep Dive Tips and Tricks For Developers and Admins at TUGA IT
PPTX
BizTalk Mapping Patterns and Best Practices at BizTalk User Group Sweden in G...
PPTX
API Management: Rise of the Planet of the Apps (2016 09-26 - Porto.Data)
PPTX
2015-12-02 - WebCamp - Microsoft Azure Logic Apps
PPTX
BizTalk & SQL: Together for Developers & Admins
PPTX
Introduction to Microsoft Azure App Service (Logic and API Apps)
PPTX
How to process Flat Files documents (TXT, CSV …) in BizTalk Server
PPTX
BizTalk Server Deep Dive Tips & Tricks for Developers and Admins
PPTX
Integration Tales: Logic & API apps to the rescue!
PPTX
BizTalk: Server, Services and Apps
PPTX
SQLSaturday #341 porto - Introduction to Microsoft Azure BizTalk Services
PPTX
Lixsql port enterprise integration
Integrate 2020 - Sandro Pereira - BizTalk Server 2020 migration path
ACSUG June 2020 - Azure Logic Apps: Best practices, tips and tricks
Global Azure 2020 - Sandro Pereira - Logic apps: Best practices tips and tricks
2019 06-25 - integrate 2019 US/UK - Sandro Pereira - BizTalk Server Fast and ...
2018 06-05 - integrate 2018 - Sandro Pereira - BizTalk Server notes from the ...
Integrate 2017 US - Sandro Pereira - BizTalk Server Fast and Loud
Sandro Pereira - BizTalk Server Fast and Loud
HOW CAN POWERAPPS AND MICROSOFT FLOW ALLOWS YOUR POWER USERS TO QUICKLY BUILD...
BizTalk Server Deep Dive Tips and Tricks For Developers and Admins at TUGA IT
BizTalk Mapping Patterns and Best Practices at BizTalk User Group Sweden in G...
API Management: Rise of the Planet of the Apps (2016 09-26 - Porto.Data)
2015-12-02 - WebCamp - Microsoft Azure Logic Apps
BizTalk & SQL: Together for Developers & Admins
Introduction to Microsoft Azure App Service (Logic and API Apps)
How to process Flat Files documents (TXT, CSV …) in BizTalk Server
BizTalk Server Deep Dive Tips & Tricks for Developers and Admins
Integration Tales: Logic & API apps to the rescue!
BizTalk: Server, Services and Apps
SQLSaturday #341 porto - Introduction to Microsoft Azure BizTalk Services
Lixsql port enterprise integration
Ad

Recently uploaded (20)

PDF
project resource management chapter-09.pdf
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
A Presentation on Artificial Intelligence
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Getting Started with Data Integration: FME Form 101
PDF
Encapsulation theory and applications.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
A novel scalable deep ensemble learning framework for big data classification...
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PPTX
A Presentation on Touch Screen Technology
PDF
Mushroom cultivation and it's methods.pdf
project resource management chapter-09.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
Programs and apps: productivity, graphics, security and other tools
Assigned Numbers - 2025 - Bluetooth® Document
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Digital-Transformation-Roadmap-for-Companies.pptx
Enhancing emotion recognition model for a student engagement use case through...
Unlocking AI with Model Context Protocol (MCP)
A Presentation on Artificial Intelligence
DP Operators-handbook-extract for the Mautical Institute
Getting Started with Data Integration: FME Form 101
Encapsulation theory and applications.pdf
A comparative study of natural language inference in Swahili using monolingua...
A novel scalable deep ensemble learning framework for big data classification...
OMC Textile Division Presentation 2021.pptx
Zenith AI: Advanced Artificial Intelligence
Group 1 Presentation -Planning and Decision Making .pptx
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
A Presentation on Touch Screen Technology
Mushroom cultivation and it's methods.pdf

20201010 - Collabdays 2020 - Sandro Pereira - Power Automates: best practices, tips and tricks

Editor's Notes

  • #4: Interested in all things integration – which of course includes MS Flow