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

Community site session details

Session Id : YMZbSihrZjV6Bizffj5zFi
Power Apps - Building Power Apps
Answered

update a sharelist twice with help of powerapp

Like (0) ShareShare
ReportReport
Posted on 31 Mar 2021 02:31:48 by

I am trying to develop an attendance tracker in the power-app connected to SharePoint list (user, log in & log out time).

since the user would be updating the app twice( once during login  & another during log out), 2 different list are created. cannot find a way to combine in one list. can someone help?

 

 

login function - Patch('Online Attendance',Defaults('Online Attendance'),{'Log in':Text(Now(),DateTimeFormat.ShortDateTime)} 

logout function - Patch('Online Attendance',Defaults('Online Attendance'),{'Log out':Text(Now(),DateTimeFormat.ShortDateTime)}

  • Community Power Platform Member Profile Picture
    on 31 Mar 2021 at 17:13:41
    Re: update a sharelist twice with help of powerapp

    Hi @v-xiaochen-msft ,

    There is an issue, suppose I "log in" via app & then I close the app, later when I reopen the app & try to use "log out" button the SharePoint list doesn't update. 

    but if I use log in & log out at the same time (without closing the app), the list is updated perfectly.

    i guess the app deletes the variable we created, once we close the app. any other way of doing this?

  • Community Power Platform Member Profile Picture
    on 31 Mar 2021 at 06:30:03
    Re: update a sharelist twice with help of powerapp

    works perfect 🙂 thank you so much

  • Verified answer
    v-xiaochen-msft Profile Picture
    on 31 Mar 2021 at 06:17:42
    Re: update a sharelist twice with help of powerapp

    Hi @Anonymous ,

     

    Please try this:

    login function - Set(Thevar,Patch('Online Attendance',Defaults('Online Attendance'),{'Log in':Text(Now(),DateTimeFormat.ShortDateTime)} ))

    logout function - Patch('Online Attendance',Thevar,{'Log out':Text(Now(),DateTimeFormat.ShortDateTime)})

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete