Hi
Is there a way to track who is using your App or at least opening it? It would be helpful to know how useful it is within your organization and the amount of traffic your app is experiencing on a daily basis. Let me know if you have any ideas on where to find this information or how to start tracking it using functions.
Thank you!
Solved! Go to Solution.
Hi @PAB,
Your formula:
Collect(Login, {Name: User().FullName},{Email: User().Email}, {Duration: Timer1.Duration})
would result in three different records each with one column filled in:
In order to get all 3 pieces of data in one record, you need to keep them between one set of curly brackets:
Collect(Login, {Name: User().FullName, Email: User().Email, Duration: Timer1.Duration/1000} )
I recommend switching from Collect to Patch when you are writing back to a connected datasource:
Patch(Login, Defaults(Login), {Name: User().FullName, Email: User().Email, Duration: Timer1.Duration/1000} )
Next, you may want to add on more time to an existing record. Use a condition to tell PowerApps to write data to an existing record. It gets more complicated from there, which is why I quit trying to make this feature 🙂
Hi
You can add a Label and bind it to UserName of the one who sign in to the Apps.
Make the Label Invisible, and you may then add a Timer, with
- OnTimerStart, Save it to a DS.
- At the same time, you may record the timer duration on howl long the user spend by triggering OnTimerEnd
This is possible with some efforts of doing it though I haven't try it.
I used to do it for WHO use the apps, but not the duration (but possible, with Timer)
Have a nice day and hope it works.
I tried something similar to @hpkeong since I wanted users to have only one instance open.
The problem I encountered with this approach is that it's only as good as the datasource can be refreshed in the app to bring you the most current information. In other words, one instance of the app must be able to communicate in real-time with any other instance of the app.
Unfortunately in my testing, even though CDS is the fastest connection, Refresh has a noticeable delay of at least 30s that makes real-time detection like this scheme unviable in v2.0.610. I have not yet tested the speed in v2.0.630.
So I have it where I am recording the Name and Email of who uses it to a collection but when I try to add the duration of the timer it does not work.
The following is the working collection of Name and Email:
Collect(Login, {Name: User().FullName},{Email: User().Email})
The following does not work:
Collect(Login, {Name: User().FullName},{Email: User().Email}, {Duration: Timer1.Duration})
Any advice on how to fix this and make it collect the duration of the timer as well.
Thank you for all your help!
Hi @PAB,
Your formula:
Collect(Login, {Name: User().FullName},{Email: User().Email}, {Duration: Timer1.Duration})
would result in three different records each with one column filled in:
In order to get all 3 pieces of data in one record, you need to keep them between one set of curly brackets:
Collect(Login, {Name: User().FullName, Email: User().Email, Duration: Timer1.Duration/1000} )
I recommend switching from Collect to Patch when you are writing back to a connected datasource:
Patch(Login, Defaults(Login), {Name: User().FullName, Email: User().Email, Duration: Timer1.Duration/1000} )
Next, you may want to add on more time to an existing record. Use a condition to tell PowerApps to write data to an existing record. It gets more complicated from there, which is why I quit trying to make this feature 🙂
Hi,
I want to track how long user uses the whole app.
-May I know how to trigger Timer1 to start? Can I use App OnStart function?
- How to end the Timer1 when the user closes the App?
Pls advise. Thanks
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
257 | |
122 | |
85 | |
75 | |
72 |