Site icon Joanne C Klein

Microsoft Flow: Condition syntax for SharePoint columns

Reading Time: 3 minutes

Are you a Power User working with SharePoint in Office 365? Do you plan on using a SharePoint list or library with Microsoft Flow? If so, read on! In this post, I’ll show condition syntax for common SharePoint column types when building a Microsoft Flow. To demonstrate this, I’ll show five frequently used column types and how to use them in a condition – something you’ll find yourself routinely needing to do.

Although this information is available thru other reference material, I wanted all examples in one place for a quick reference.

Check out my other post, Microsoft Flow: Update SharePoint columns, where I demonstrate how to update each of these 5 SharePoint column types in a Microsoft Flow.

Here are the site column names I’ll use and their column types:

The examples show the advanced mode condition and use the Workflow Definition Language. You can get to the advanced mode by clicking Edit in advanced mode while editing the condition in Microsoft Flow (image). In most cases, you can start in basic mode and the advanced formula is automatically created for you, however its important to understand the syntax being used behind-the-scenes and to assist in troubleshooting.

If you need to enter an expression, click Add dynamic content and then Expression to create the expression. (often required when working with dates)

 


ExampleChoiceColumn condition:


ExampleDateColumn condition:

Note: The ExampleDateColumn is defined as a Date only column in this example. Ensure all expressions are formatted to the correct date format for your comparisons to work. In these examples, I’m using yyyy-MM-dd. Eg. 2018-02-17


ExampleLookupColumn condition:


ExampleManagedMetadataColumn condition:

 


ExampleYesNoColumn condition:


I hope you found this post helpful. 🙂

Thanks for reading.

-JCK


Credit: Photo by Scott Webb on Unsplash

 

Exit mobile version