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 / Create event when clic...
Power Apps
Answered

Create event when click on button to save on SharePoint list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

iv'e created powerapps from sharepoint online list that contains alot of feilds and i need to do the following

 - i added a button on the edit form and i need when i clicked on the button to insers time of this action to textbox and after save the value in sharepoint 

your help will be very important

ahramadan

Categories:
I have the same question (0)
  • Meneghino Profile Picture
    6,949 on at

    hi @Anonymous

     

    this can be done by somthing like the following:

     

    1) Setting the OnSelect property of the button to:

    UpdateContext({CurrentTime: Now()}); Patch(MySharePointList, Defaults(MySharePointList), {MyTimeColumn: CurrentTime})

    2) Set the text box's Text property to:

    CurrentTime

    That's it.  Please have a look at the documentation for details on each function

    https://powerapps.microsoft.com/en-us/tutorials/formula-reference/

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you a lot Meneghion, this s helps me so far, but how i can update the value when i click the button i don't want to add new row in the list.  for example:

    when i open the item from powerapps i click on the item that i need to update the time for it so i added the button on the DetailScreen1, so the action will be here when i click the button i need to update the time value for this item in the list.

    really appreciate your help.

    Thanks,

  • Verified answer
    Meneghino Profile Picture
    6,949 on at

    hi @Anonymous

    than the OnSelect should be something like this:

    UpdateContext({CurrentTime: Now()}); Patch(MySharePointList, GalleryXYZ.Selected, {MyTimeColumn: CurrentTime})

    Where GalleryXYZ is the gallery where you click on the item to be updated

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you, that was what i need exactly!

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 294 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 169

Last 30 days Overall leaderboard