cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Check users using PowerApps simultaneously

Is there a way to check who all are currently using a particular PowerApps right now ?

 

Basically I need to show who all are online in that PowerApp so that they can collaborate with each other

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @Anonymous :

   Could you tell me:

  • Do you want to create a list in a canvas app to show users who are currently using this app?

   In theory, there is currently no tool that can directly implement this function.My idea is to detect user login and logout time and upload it to a cloud service, so that all users can access the change list, and filter the users who are currently online based on the current time.But there is another difficulty, that is, Canvas app does not support OnEnd event.

   So my final plan is to use a timer to submit the user's current status (email address, current time) every three minutes. Then detect users who are online within three minutes. (You can customize the submission interval and filtering logic).I've made a test for your reference:

1\My data source(SharePoint List)-Online

Title-Single Line of Text

UserEmail-Single Line of Text

LastOnlineTime-Date and Time (Include Time)

1\Add a timer control

AutoStart

true

Duration

180000 /*Loop in 3m*/

OnTimerStart

Set(TheMail,User().Email);
Set(CurrentTime,Now());
If(
   IsBlank(LookUp(OnLine,UserEmail=TheMail)),
   Patch(OnLine,Defaults(OnLine),{Title:Now(),UserEmail:TheMail,LastOnlineTime:Now()}),
   Patch(OnLine,LookUp(OnLine,UserEmail=TheMail),{LastOnlineTime:Now()})
)

 Repeat

true

Visible

false

If your app has multiple screens, I suggest adding the same timer control to each screen.

2\Add a gallery and set it's Items property to

Filter(OnLine,DateDiff(CurrentTime,LastOnlineTime,Minutes)<3 && DateDiff(CurrentTime,LastOnlineTime,Minutes)>-3)

Through this gallery, you can get a list of all users online within 3 minutes.

Best Regards,

Bof

 

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @Anonymous :

   Could you tell me:

  • Do you want to create a list in a canvas app to show users who are currently using this app?

   In theory, there is currently no tool that can directly implement this function.My idea is to detect user login and logout time and upload it to a cloud service, so that all users can access the change list, and filter the users who are currently online based on the current time.But there is another difficulty, that is, Canvas app does not support OnEnd event.

   So my final plan is to use a timer to submit the user's current status (email address, current time) every three minutes. Then detect users who are online within three minutes. (You can customize the submission interval and filtering logic).I've made a test for your reference:

1\My data source(SharePoint List)-Online

Title-Single Line of Text

UserEmail-Single Line of Text

LastOnlineTime-Date and Time (Include Time)

1\Add a timer control

AutoStart

true

Duration

180000 /*Loop in 3m*/

OnTimerStart

Set(TheMail,User().Email);
Set(CurrentTime,Now());
If(
   IsBlank(LookUp(OnLine,UserEmail=TheMail)),
   Patch(OnLine,Defaults(OnLine),{Title:Now(),UserEmail:TheMail,LastOnlineTime:Now()}),
   Patch(OnLine,LookUp(OnLine,UserEmail=TheMail),{LastOnlineTime:Now()})
)

 Repeat

true

Visible

false

If your app has multiple screens, I suggest adding the same timer control to each screen.

2\Add a gallery and set it's Items property to

Filter(OnLine,DateDiff(CurrentTime,LastOnlineTime,Minutes)<3 && DateDiff(CurrentTime,LastOnlineTime,Minutes)>-3)

Through this gallery, you can get a list of all users online within 3 minutes.

Best Regards,

Bof

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,327)