To create an empty array in a Power Automate formula, use the formula `json('[]')`. This can be useful when working with a third-party service that returns an array of objects, but sometimes returns `null` instead of an empty array. Instead of using an `if` action, you can use the `coalesce` function with the formula `json('[]')` as a fallback. This ensures that if the output is `null`, it will be replaced with an empty array, preventing the loop from being executed.
Login now to access my digest by 365.Training