Flow - character replace pattern with chunk()


The blog post by John Liu explores innovative approaches to handling string character replacement using Microsoft Power Automate. During a restless morning, Liu shares two clever Flow ideas. The main focus is on replacing HTML special characters safely without loops or variables. Traditional methods such as chaining multiple `replace()` functions become complicated quickly, hence Liu proposes an alternative solution using `chunk()`, `Select()`, and `coalesce()` functions. This approach involves breaking a string into a character array, mapping characters with conditional replacements, and then rejoining them. This method enhances readability, predictability, safety, and scalability, offering a mini parsing engine capability within Power Automate. Liu emphasizes the transformative potential of treating `Select` as a mapping function to turn strings into arrays, transform them, and join them back together.


Article 3w

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time