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

Notifications

Announcements

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,297 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,297 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard