Skip to main content
Community site session details

Community site session details

Session Id : kowZ1FZrMAReH5yqWjTK3v
Power Automate - Building Flows
Answered

Do not send mail if SharePoint field is empty

Like (0) ShareShare
ReportReport
Posted on 11 Aug 2020 14:35:06 by 384

Hi all,

I have built an approval workflow and I am stuck checking if a field from Sharepoint is not empty (if not, a mail should be send out)

I tried with Condition:

Frankie70_0-1597156455494.png

But it fails. Is the syntax correct?

  • Verified answer
    v-litu-msft Profile Picture
    on 12 Aug 2020 at 07:58:27
    Re: Do not send mail if SharePoint field is empty

    Hi @Frankie70,

     

    The Outcome should be dynamic content:

    Annotation 2020-08-12 151747.jpg

    And you could refer to the following screenshot to learn how to use empty() function:

    Annotation 2020-08-12 151748.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Frankie70 Profile Picture
    384 on 11 Aug 2020 at 17:37:47
    Re: Do not send mail if SharePoint field is empty

    Hi @edgonzales 

    thanks for your help.

    No, this flow is quite new...

    I changed it to "Outcome" but when I click on Approve or reject in the mail, it always is rejected.

     

    Frankie70_1-1597167451950.png

     

    The syntax of my other issue is:

    Frankie70_0-1597167409321.png

     

  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on 11 Aug 2020 at 17:19:40
    Re: Do not send mail if SharePoint field is empty

    @Frankie70 

    Is this an older flow?  Where you have Response for the condition, you should probably have Outcome.

     

    If your other field is an array, then empty() should work.  Let's take a look at the syntax of your expression next.

     

    -Ed

  • Frankie70 Profile Picture
    384 on 11 Aug 2020 at 15:36:30
    Re: Do not send mail if SharePoint field is empty

    Hi @edgonzales 

    the field is of type "multiple lines of text" so an arry.

    The function empty() does not work either.

     

    For some reason I have an issue before that now, and I am puzzled why...

    Frankie70_0-1597160061279.png

    Where is the problem here?

    Frankie70_1-1597160118342.png

    At start it worked all perfectly...all of a sudden, if throws this error. Any idea?

  • Ed Gonzales Profile Picture
    4,531 Most Valuable Professional on 11 Aug 2020 at 15:07:17
    Re: Do not send mail if SharePoint field is empty

    @Frankie70 

    Hi there.  You should be able to look at past runs to see what is being sent fro SharePoint for that field.  Depending on what type of field it is, there may be something in there, just not data.  Take a look at the empty() function and see if that might be more applicable to your situation.

     

    Either way, keep us posted.  Good luck!

    -Ed

     

    If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!