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 / On button click, check...
Power Apps
Answered

On button click, check if there are blank values in SharePoint list

(0) ShareShare
ReportReport
Posted on by 178

I'm working on an app which should check if there are any blank values when I click a button.

I have two SharePoint lists: 'Deliveries' and 'Pallets_1'.

There is a gallery item that is selected, and on the new screen, only the selected delivery is shown - from here, I can create X number of pallets (created in 'Pallets_1'), which needs to have the measurements "Height", "Length" and "Width".

 

When clicking "Complete", it should check if all measurements in the pallets linked to the same Title as 'Deliveries' have any data in them - if not, then an alert will display; if all measurements have data, then it will patch (the patch function is already working).

 

Trying my hand at pseudocode:

 

Match the Title in Deliveries with the Title in Pallets_1
Then look at all pallets with the same Title, and check if the measurements are blank - if blank, notify the user that there are inputs missing

 

 

If I'm not providing enough information, please let me know which information is needed.

Categories:
I have the same question (0)
  • Verified answer
    victorcp Profile Picture
    2,350 Moderator on at

    Try this:

    If(

     IsEmpty(

      Filter(

       Deliveries,

       Title = <Title from Pallets_1>,

       IsBlank(<Height_Field>) || IsBlank(<Length_Field>) || IsBlank(<Width_Field>)

       )

      ),

     Notify(<Alert>),

     Patch(...)

    )

  • Gochix Profile Picture
    1,937 Moderator on at

    Written without checks. Please try :

     

    With({
    Matching:Filter(Deliveries,Title = Pallets_1.Title)
    },
    If(Filter(Matching,Length = Blank()),Notify("Error",NotificationType.Information,5000))
    )

     
    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    This will do it:

    With({
    Matching:Filter(Deliveries,Title = Pallets_1.Title)
    },
    If(Filter(Matching,Length = Blank()),Notify("Error",NotificationType.Error))
    )

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

  • AlexTheKidd Profile Picture
    178 on at

    Tried the snippet from both @phipps0218 and @Gochix , and both shows the following issues (ignore delegation warning):

    AlexTheKidd_1-1661942080261.png

    -----

    AlexTheKidd_2-1661942099669.png

     

  • Verified answer
    Gochix Profile Picture
    1,937 Moderator on at

    You can try the solution @victorcp provided :

    If(
    
     IsEmpty(
    
     Filter(
    
     Deliveries,
    
     Title in Pallets_1.Title,
    
     IsBlank(<Height_Field>) || IsBlank(<Length_Field>) || IsBlank(<Width_Field>)
    
     )
    
     ),
    
     Notify(<Alert>),
    
     Patch(...)
    
    )


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • AlexTheKidd Profile Picture
    178 on at

    You are correct! I tried it at first, but didn't work - I must've missed something when I first tried it. Thanks to @victorcp, and @Gochix for pushing me to try it! This community is absolutely amazing!!

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
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard