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 Apps
Unanswered

Button not working

(0) ShareShare
ReportReport
Posted on by 96

Hi As part of my formula on my screen, when i press a button to send an email, i am also wanting to clear a column in sharepoint when i leave the screen, so i have put this below in the formula to patch the column to be blank but does not seem to working,

 

Not sure why it is not working

 

Patch('QHSE questions',{'Audit Complete':Blank()})

Categories:
I have the same question (0)
  • timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    @kORINNERB 

    The call to Patch requires us to specify the record to update as the second argument. This is missing in your formula, which explains why it doesn't work.

    https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/functions/function-patch

     

  • kORINNERB Profile Picture
    96 on at

    Hi

     

    I have tried following the advice but still seem to have an issue , ammended the formula below but still doesnt change?

     

    Patch('QHSE questions',Defaults('QHSE questions'),{'Audit Complete':Blank()})

     

    Also i want to set all items in that column to blank, not a specific record, is this the right formula to use?

  • zmorek Profile Picture
    3,272 on at

    You'll use UpdateIf to update multiple items with that result.

     

    UpdateIf('QHSE questions', true, {'Audit Complete': Blank()})

     

    That should set all values in that column to blank. 

  • kORINNERB Profile Picture
    96 on at

    thank you, i have tried the formula but it is not working for me, i checked the sharepint list and the column still has items in it.

     

     

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @kORINNERB ,

     

    Please open this setting.

    vxiaochenmsft_0-1631586130894.png

    vxiaochenmsft_1-1631586145811.png

    vxiaochenmsft_2-1631586156047.png

     

    Best Regards,

    Wearsky

     

     

     

  • bhartiA Profile Picture
    2 on at

    Hi @kORINNERB 

     

    You can use  UpdateIf function, where you can use ID=Value(ThisItem.ID). 

     

    Hope it will work for you. 

     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard