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
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,031)