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 Apps
Unanswered

pub/sub messaging

(0) ShareShare
ReportReport
Posted on by 22

I want to push data updates from a data source out to instances of an app without the users having to "refresh" the data and without having to resort to recurring refreshes on a timer. Essentially, the idea is to have several users on a particular app at the same time and have changes made by one user to the database transmitted to all of the other users. My understanding is that this would be something like pub/sub messaging done with AngularJS. Does anyone know if powerapps can do this?

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @kenwestover1 

    You may want to check how Pieter Veenstra did it.  He used a timer but with a twist. https://sharepains.com/2019/11/06/auto-refresh-data-in-power-apps/ 

     

  • kenwestover1 Profile Picture
    22 on at

    Thanks, but hoping to do better than a timed auto refresh.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @kenwestover1 

    I don't work with multiple users so I don't have the actual experience but if you use a collection as the data source like in the article, whenever a user modifies the source, if you did a ClearCollect() immediately, would the change propagate to the other users of your app? 

  • kenwestover1 Profile Picture
    22 on at

    It would, but this solution adds latency and network traffic to the system. That's why I'm looking for a sub/pub solution that only updates the data when there is a state change.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @kenwestover1 

    In my last post, I wasn't referring to a timer.  Just to trigger a  ClearCollect() whenever a user modified a datasource.   I was wondering if by doing this, and the gallery Items property was the collection, whether doing this would automatically update the gallery for all the users on the app.

  • kenwestover1 Profile Picture
    22 on at

    Right - but if user 1 changes the data, how do I trigger the clearcollect for user 2?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @kenwestover1 

    I am working in the dark here because I don't have multiple users on my apps.  I am assuming that once the ClearCollect() occurs, it is immediately reflected throughout the app everywhere that collection occurs.  This may or may not be correct.  Perhaps one of the other commentators  can say if this is the case.  

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
11manish Profile Picture

11manish 409 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard