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 / Understanding the Deep...
Power Apps
Answered

Understanding the Deep Dive: Click-Through PowerApps Analytics Demo? (Patch + Connect)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello PA community, 

 

I'm attempting to implement the following features found in the analytics tutorial for PowerApps:

 

https://powerusers.microsoft.com/t5/PowerApps-Community-Blog/Deep-Dive-Click-Through-PowerApps-Analytics/ba-p/107820

 

However, our team has been hitting a few issues. For starters the data only patches when we use the template provided by the instructor. Creating our own SharePoint Lists/Tables or importing our own Excel spreadsheets do not work. 

 

Secondly, our team is noticing that the Patch function works intermittently. For a few days, our team was able to track successfully in SharePoint and then it stopped tracking. So we began testing in OneDrive, which was working succesfully for a few days then it stopped. 

 

Thanks

 

Categories:
I have the same question (0)
  • Shanescows Profile Picture
    2,218 Most Valuable Professional on at

    Can you give a more concrete example of your code and what is failing? We are happy to help but need more info. 🙂 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you so very much. We are attempting to track (2) data points: 

     

    1. Does user access the first screen

    2. Does user access the second screen

     

    On the initial screen we have OnVisible:

    Collect(xxx_Analytics, {UserName:User().FullName},{UserEmail:User().Email},{LoginDate:Today()},{LoginTime:Text(Now())} )

     

    On the second screen we have OnVisible:

    Patch(xxx_Analytics,Last(xxx_Analytics),{DetailScreen1:"Y"})

    Analytics_1.jpg
    Analytics_2.jpg
  • Shanescows Profile Picture
    2,218 Most Valuable Professional on at

    Okay. I just recreated your app and it works. So what is happening with you? Does 1 work and then 2 fails? Or Does 2 work and update the wrong record because 1 didn't work?

     

    Excel is your data source?  Is more than one user using your app at a time? 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you. 

     

    Both 1 & 2 worked (intermittingly) in a SharePoint list and in a Excel spreadsheet via OneDrive.

     

    The first few days we were able to track users actions by importing the Excel spreadsheet (provided by instructor) into SharePoint. However it stopped working after a few days, so we transitioned the spreadsheet/table to OneDrive; where it worked for a couple of days and then it has stopped. 

     

    We've only tracked a few users as of right now (we are still in testing).

     

    When we launch the app in a few weeks, we will need to track 100-175 users per day. 

  • Shanescows Profile Picture
    2,218 Most Valuable Professional on at

    Take a look at this video by @ThatAPIGuy https://www.youtube.com/watch?v=OM-rlhKJFTA 

     

    It might help. I would be careful with you current solution to the problem. If you have 100 people in the app Last(record) isn't going to necessarily be the one the user created. So chaos will ensue. You are going to need a different approach. Maybe create a sessionID when the app starts and use that to track the record in Excel? 

  • Verified answer
    seadude Profile Picture
    1,855 on at

    If you're going the "session ID" route with excel sheets, mr. dang has a solid video on this: https://www.youtube.com/watch?v=lIELJHaSWVE.

     

    Good luck

  • Verified answer
    ThatAPIGuy Profile Picture
    925 on at

    @Shanescows

     

    I have tried doing this with my colleague to clarify the confusion - We opened the app at the same time and clicked thorugh different screens and the datasource had collected the corresponding data for both. This means PowerApps recognizes each session with a sessionID internally and using the Last(record) recognizes the last record created in that specific session. So you don't need to create a separate session ID of your own necessarily.

     

    Hope that makes sense. Someone else had the same question in our webinar as well.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you PA community (and pardon our delay in responding)!

     

    We were able to reach out to the PA support team and identified the issue as having the wrong column type. We originally had the LoginDate/LoginTime columns as Single line of text; when it needed to be Date and Time

     

    Thank you again for all your feedback and support...we are able to track the necessary data points for our stakeholders. 

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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard