You can use the if() function and . The if() function takes three parameters:
If you want to specifically check if the value is not null, you would need to use the not() and equals() function in your expression.
if(not(equals(dynamicContent, null)), 'String Value Here', '')
If you want to check if the value is either null or an empty string—use the expression below:
if(not(empty(dynamicContent)), 'String Value Here', '')
You might be interested in this YT Tutorial:
7 Functions You Need to Know | ⚡️Expression Essentials: Part 1⚡️
Do you find writing expressions hard? Can’t seem to access dynamic content to insert into an expression? Are you super confused when it comes to nesting functions?
In this Power Automate tutorial I’m going to cover 7 functions you need to know when getting started with expressions.
1️⃣ empty()
2️⃣ coalesce()
3️⃣ equals()
4️⃣ if()
5️⃣ concat()
6️⃣ length()
7️⃣ split()
I cover how to use these functions in expressions and I’ll also cover common mistakes when it comes to writing expressions and show you a few tips and tricks along the way.
As a beginner or even an intermediate flow builder—expressions can seem a bit complex at first, I’m going to try to simplify it for you. If you want to level up your flows by writing expressions—watch the tutorial!
IN THIS VIDEO:
✅ What is an Expression?
✅ What is a Function?
✅ What Does Wrapping a Function Mean?
✅ How Do I Insert an Expression?
✅ How to Use a Compose action
✅ How to Navigate the Expression Builder with Arrow Keys
✅ How to use the Expression Tooltip
✅ Common Mistakes When Writing Expressions
✅ How to differentiate a null from an empty string
✅ How to Get Dynamic Content When it’s Not Listed
✅ How to Use a Get Item Action to Verify Dynamic Content Output
✅ How to Convert Strings to Lower Case
✅ How to Troubleshoot the if() Function