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 / Use Power App Button t...
Power Apps
Answered

Use Power App Button to update specific SharePoint Online list column

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I created a SPO List to use as a data source for a Time Clock power app - data source is called "Time Entry". My unique identifier is the Title column where I combined current user and now() data. I also have a Shift Start column, Break Start, Break End and Shift End. The "Start Shift" button is working perfectly to create the new row. However, I've tried using multiple combinations of patch and lookup without successfully updating the break start, break end and shift end columns of the existing row. I am attempting to do this via button push in the app. Here are some examples of things I've tried so far. Hoping someone might be able to help! 

 

Patch('Time Entry', default('Time Entry'), LookUp('Time Entry',Title = DataCardValue10.Text), {Now()})

LookUp('Time Entry',Title = DataCardValue10.Text); Patch('Time Entry', Defaults('Time Entry'),{'Break Start': Now()})LookUp('Time Entry',"Title" = DataCardValue11.Text,{'Break Start':Now()})

Patch('Time Entry', LookUp('Time Entry',"Title" = DataCardValue9.Text), {'Break Start':Now()})

 

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @josjohns 

    The only real valid formula you have there is:

        Patch('Time Entry', LookUp('Time Entry',"Title" = DataCardValue9.Text), {'Break Start':Now()})

    Except, it should be:

        Patch('Time Entry', LookUp('Time Entry', Title = DataCardValue9.Text), {'Break Start':Now()})

     

    So, with that one, what issue are you having?

     

  • josjohns Profile Picture
    Microsoft Employee on at

    @RandyHayes , you are awesome! Guess I was close, but not quite there. Looks like I need to better understand the difference between "Title" and Title. Your suggestion works perfectly, thank you!! Much appreciated!!!

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @josjohns 

    No problem!

    Yes, if you put double quotes around anything in PowerApps formulas, it will be seen as just Text.

    If you put single quotes around anything, it will treat it as a reference to something - like a column or a control.

    However, you would only need single quotes around anything that has special characters in it (like the space), so your data source, Time Entry has a space, so you would need to reference that as 'Time Entry', but for the columns in the datasource...just reference by their name (unless they have a space - and then single quote them).

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 883

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 477

Last 30 days Overall leaderboard