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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,710)