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.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,562)