This session was presented at the SharePoint Saturday NYC on July 28th, 2018. This session covers how to get started building expressions in Microsoft Flow.
3. THANK YOU
EVENT SPONSORS
We appreciate you supporting the
New York SharePoint Community!
• Diamond, Platinum, Gold, & Silver
have tables scattered throughout
• Please visit them and inquire about
their products & services
• To be eligible for prizes make sure to
get your bingo card stamped by ALL
sponsors
• Raffle at the end of the day and you
must be present to win!
4. EVALS / PRIZES
Bring all items to the 6th Info Desk
• Bingo Cards = how you win prizes at
the end of the event
• The cards must be stamped by ALL the
Sponsors by the last session (4pm)
• Fill out the speakers evaluation
(located in the front of the rooms)
• Fill out the event evaluations
And more …
Surface Go
Xbox One X
5. ABOUT ME
• 8+ yeas in SharePoint
• SharePoint Citizen Developer
• Microsoft Flow Evangelist
• Active Flow Community Member
• Blogger
6. AGENDA
• Expressions Overview
• Types of Expressions
• How Expressions Work
• Where Expressions Can Be Used
• Data Types
• Expression Functions
• Actions Replaced by Expressions
• Limitations
• Demos
faustocapellan.com
6
8. EXPRESSIONS OVERVIEW
• Set of functions that can be used for many different things
• Manipulate strings
• Convert data types
• Perform logical functions
• Retrieve and manipulate date and time
• Perform math function
• Flow leverages the Azure Logic Apps Workflow Definition Language
faustocapellan.com
8
11. HOW EXPRESSIONS WORK
• Expressions are executed the same way as math operations: from
inside out
addDays(timestamp, days, format)
addDays(startOfMonth(utcNow()), -1, ‘MM-dd-yyyy’)
faustocapellan.com
11
Parameter 1 Parameter 2 Parameter 3
15. DATA TYPES
• String
Represent alphanumeric data such as letters, numbers, spaces, symbols, punctuation marks
• Integer
Whole numbers without decimal. Can be either positive, negative, or zero
• Float
Decimal number
• Boolean
Represents two values: true or false
faustocapellan.com
15
16. DATA TYPES (Continued…)
• Arrays
Represent a collection of elements, each selected by one or more indices (identifying keys)
that can be computed at runtime during the execution of a program
• Dictionaries
Represent a collection of key and value, and provides a mapping of the set of keys with their
values. Every key in a Dictionary must be unique and cannot be null
• Forms
Contain elements called controls - textbox, dropdown, radio button - and each control
manages a specific data type. These controls are used to display information to the user or
receive information from the user
faustocapellan.com
16
17. EXPRESSION FUNCTIONS
• String Functions
Can be used to manipulate strings, such as concatenate strings, replace a string within a
string, and convert strings to upper or lowercase
• Collection Functions
Operate over collections and generally apply to Arrays, Strings, and sometimes Dictionaries
• Logical Functions
Can be used to evaluate any type of logic within Flow, such as If and Equals
faustocapellan.com
17
18. EXPRESSION FUNCTIONS (Continued…)
• Conversion Functions
Can be used to convert data between each of the native types, such as String, Integer, Float,
Boolean, Arrays, Dictionaries, and Forms
• Math Functions
Can be used to do calculations for either type of numbers: integers or floats
• Date and Time Functions
Can be used to retrieve and format date and time, convert time zones, add days, and get
future and past time
faustocapellan.com
18
19. EXPRESSION FUNCTIONS (Continued…)
• Workflow Functions
Get information about the workflow itself at runtime, such as name, type, id, location, and run
• URI Parsing Functions
Provide the ability to parse URLs. From a given URL, you can select hostname, path, port,
scheme, and query segments
• Manipulation Functions
Apply to XML and JSON objects. Some are used to return the first non-null object passed in
an argument, while others are used to add, set, or remove properties from an object
faustocapellan.com
19
20. ACTIONS REPLACED BY EXPRESSIONS
• Expressions that can be used to replace some actions
if(expression, valueIfTrue, valueIfFalse)
first(collection)
last(collection)
faustocapellan.com
20
22. LIMITATIONS
• Expression Evaluation Limit
• A Flow expression can evaluate up to 131,072 characters
• Max Number of Characters Per Expression
• Flow allows a maximum of 8,192 characters per expression
faustocapellan.com
22
24. SUMMARY
Expressions Overview
Types of Expressions
How Expressions Work
Where Expressions Can Be Used
Data Types
Expression Functions
Actions Replaced By Expressions
Limitations
Demos
faustocapellan.com
24