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 Automate / If condition for patch...
Power Automate
Unanswered

If condition for patch not working

(0) ShareShare
ReportReport
Posted on by 159 Season of Giving Solutions 2025

Hi,

I was trying to create a condition where it will check one of the datacard. If blank, It should not run the patch function. My formula below always evaluates to true even if the datacard text field is blank. Am i using the correct formula?

 

If(!IsBlank(Trim(DataCardValue6.Text)),Patch('table',Defaults('table'),{ Title: Form1.LastSubmit.Title },{ Notes: Form1.LastSubmit.Notes }),false);
Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @powerdevkris 

    Your expression seems has no error , and i test it in my side it works good.

    Can you try to put this on the Button On-Select to test the return from your code:

    !IsBlank( Trim( DataCardValue1.Text) )
    vyueyunmsft_0-1715303408477.png

     

    You can also try to use these code to judge:

    Len( Trim( DataCardValue1.Text))=0
    Not( IsBlank( Trim( DataCardValue1.Text)))
     

    Best Regards,

    Yueyun Zhang

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 247 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 164 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 138 Super User 2026 Season 2

Last 30 days Overall leaderboard