cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Collector
Kudo Collector

Check if a field is blank in SharePoint

Hi,

I need some help with my flow. I am trying to check if a column or metadata in a library is empty or not.

 

We have document library wherein when they upload a new file, they need to enter an info in the required columns. But it seems with SharePoint, they are not forced to enter those required fields and the file will still be uploaded. So instead, we created a flow to send an email to the uploader if the required fields is empty. I am trying to use expressions in the conditions to check if the required field is empty.

 

Here's the screenshot of my flow for the condition.

Capture.PNG

If the field is empty, I encounter this error on my flow. Attaching the screenshot.

 

 error.PNG

Thanks in advance for any help and ideas to solve this!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Check if a field is blank in SharePoint

Hi @julieann,

 

Please remove the Equals(, '') function.

Here use Empty() is enough to check if the field has no value.

Change the formula in your condition as below:

@Empty(body('Get_file_properites')['Key_x0020_Control'])

Doing this should make it work.

Regards,

Michael

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

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Check if a field is blank in SharePoint

Hi @julieann,

 

Please remove the Equals(, '') function.

Here use Empty() is enough to check if the field has no value.

Change the formula in your condition as below:

@Empty(body('Get_file_properites')['Key_x0020_Control'])

Doing this should make it work.

Regards,

Michael

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

View solution in original post

Highlighted
Kudo Collector
Kudo Collector

Re: Check if a field is blank in SharePoint

Thanks for the reply.

Tried to edit the flow as you suggested. But I'm still having the same error

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Users online (6,426)