Power Automate: chunk Function
Splits a string or array into pieces of a fixed size. The last chunk is often shorter.
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.
Splits a string or array into pieces of a fixed size. The last chunk is often shorter.
Sums the values that meet one condition. A mismatched sum range is silently reshaped, not flagged.
Fires when a message is posted in any chat the connected user is in. Returns IDs only, not content.
Counts the cells in a range that meet one condition. Text matching ignores case.
Convert a solution flow from a direct connection to a connection reference and unlock the new designer.
Returns the year of a date as a number between 1900 and 9999. Empty dates return 1899.
Delaying dependency updates by a few days blocks most supply chain attacks. Cooldowns in uv and pip.
Returns an array of emails from a mailbox folder. Filter fields only scan the first 250 emails.
Converts a timestamp between two time zones, daylight saving included. Output drops the zone marker.
Sums the values that meet several conditions at once. All conditions combine with AND, not OR.
Starts a workflow instantly when an HTTP request hits its URL. Test and production URLs behave differently.
Exports an Outlook email as a binary EML file by Message ID. Attachments are included inside the file.