web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Check if they are blan...
Power Apps
Unanswered

Check if they are blank or empty filters when running a PowerApps flow

(0) ShareShare
ReportReport
Posted on by 9

I have a button in PowerApps that starts a flow to extract data from a list and send it to an email. The button starts the flow and provides data to the "Get Items" filter. This is the code: 

 

ExportarTareas.Run("

substringof('"& FiltroLotis.Value &"', Licitaci_x00f3_n)

and substringof('"& FiltroLic.Value &"', Title)

and substringof('"& FiltroAdjudicasio.Value &"', Adjudicatario)

and Desierto_x002f_Adjudicado eq '"& FiltroEstado.Selected.Value &"'

and Avisos eq '"& FiltroAlertas.Selected.Value &"'

";

    User().Email

)

 

This is based on a great video by Reza Dorrani: https://www.youtube.com/watch?v=UZdngrwWsqA&t=1078s

 

The problem is that I have introduced several filters that, if empty, return 0 records. How can I check if they are blank or empty and not use them? I don't know how to build the logic, but I understand that it should be something like this:

 

ExportTareas.Run("@if(not(empty(substringof('"& FiltroLic.Value &"', Title))), substringof('"& FiltroLic.Value &"', Title))");;

 

this is not admited in powerapps, but I think its just a syntax problem, cause I'm really new in this.

 

 

Sorry if I'm posting in the wrong side. Please. help me! Thank you"

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard