cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sam12
Helper II
Helper II

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
Resolver III
Resolver III

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-... )

gamoraes
Memorable Member
Memorable Member

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,910)