Power Automate: Initialize variable Action
Declares a variable. Required first step before any other variable action.
Here I share the best practices I use for the Power Platform tools, drawn from my own experience and plenty of learning from other people's mistakes so I don't repeat them. None of this is set in stone, so adjust it to fit how you work. Consistency matters, especially when several people share a platform. I see it constantly: SharePoint sites with mismatched naming, lists with convoluted names, and flows nobody can follow. When you agree on rules, everyone always knows what something means, and onboarding a new person becomes far easier. Even if you never adopt my conventions, at least write your own down. And even if you work alone, building your own reference makes you think, and you will often spot places where things could be better. That reflection is half the value.
Declares a variable. Required first step before any other variable action.
Rounds a number to a given number of decimal places.
Returns true when any expression is true.
Converts booleans, integers, floats, and arrays to text. Arrays become JSON; null becomes empty.
Compares two values. Case-sensitive for strings, cross-type for ints and booleans.
Returns true when a date-time falls on today.
Checks if a string ends with specific text. Case-insensitive, space-sensitive, strings only.
Converts a value to an integer by rounding down.
Returns true when the first value is greater than the second.
Converts a date to 100-nanosecond intervals since year 0001.
Generates a GUID, or converts a string into a GUID.
Fires when a SharePoint file is created. Returns metadata only, not content.