Notes make things easier

Completed

When you look at the convertToUtc expression you wrote earlier, you might notice that you need to scroll to see the whole formula in the function bar. A common technique to make reviewing your expression easier is to use notes and paste the whole formula into the note.

Screenshot of pasting the formula into the comment.

To add a note, select the ellipse to show the menu. Then select Add a note.

Screenshot of selecting the ellipsis to reveal the the "Add a comment" option.

In this box, you can type any text you want. This can be text or just a copy and paste of the expression used in your action.

Screenshot of the comment field showing the entire expression.

Defining text

When you use text in a Power Automate expression, you'll use the single quote (') at the beginning and end of each string. For example, if you wanted to combine the string “Today is” and the output from our expression above that returns a date in an expression, you would use the Concat function and your syntax would be:

concat('Today is ',outputs('Compose'))

Screenshot of the concat function syntax.

These little details will help you become more effective when working with expressions. One of the great things about expressions is that they're consistent. As you learn about one function you can often apply those learnings to the next function, rapidly speeding up your learning.