cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sam12
Level: Powered On

Flow condition for when field in a SharePoint List is not empty

I am trying to replicate this worfklow (from SharePoint Designer 2007) in Flow:

SP 2007 Workflow.PNG

I need a conditon where the Flow only runs when the Assigned Designer field is not empty/blank. I have created this condition in Flow, however it doesn't seem to be working as I expect:

Flow.PNG

Is anyone able to help please?

Thanks

2 REPLIES 2
Willemijn
Level 8

Re: Flow condition for when field in a SharePoint List is not empty

Hi! 

 

It's the trigger in Flow what makes it run or not. I think for your Flow it's when an item is created or updated? So when your item is new, or is updated (depending on what trigger you've chosen).

 

You can choose to end the Flow in the if yes outcome of your condition. But it won't prevent the Flow from running.

To my knowledge this is not possible unless exporting it and changing the json code (but don't know how future proof this would be, see this blogpost about that: https://sergeluca.wordpress.com/2018/04/11/trigger-your-flow-only-when-a-document-is-created-from-a-... )

Super User
Super User

Re: Flow condition for when field in a SharePoint List is not empty

Hi @Sam12 

 

I have the solution for you!

 

In the first field put the expression like above, changing the FieldName if it is not correct

Anotação 2019-04-05 212155.jpg

 

empty(triggerBody()?['Assigned Designer'])

If you don't know the FieldName use this trick:

  1. Open the expression panel
  2. Type an 'a'
  3. Click in DynamicField panel
  4. Choose the DynamicField (Assigned Designer)
  5. Remove the 'a' typed

 

In the second field open the Expression panel and type 'true' then Ok

Anotação 2019-04-05 212155.jpg

 

 

Best Regards,

Gustavo Moraes

Community Super User
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. And give me a kudo to make me more happy!


Did I answer your question? Mark my post as a solution!

Gustavo Moraes, o astronauta brasileiro do Flow!


Helpful resources

Announcements
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fourthImage

Australia Summit

Travel to Melbourne and network with thousands of peers!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 236 members 4,000 guests
Please welcome our newest community members: