cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Olivier
Advocate V
Advocate V

Best practices for near realtime clients synchronization

Hi all,

If a client updates some parameters that we want reflected as soon as possible to all clients, the client performing the update needs to use the Patch command for every update to the parameter(s) obviously, but beyond that what is the best way to notify other clients that they need to retrieve the updated parameter?  Is there a better way than to have the updating client directly connect with the clients that need to update?

Thanks,

 

Olivier

1 ACCEPTED SOLUTION

Accepted Solutions
mr-dang
Community Champion
Community Champion

Ohhh Okay, I think this might be a job for Flow.

 

I set up Push notifications to appear whenever my app is opened. You could setup a Push notification to your phone whenever a record is written. I have not played with it much outside of that, but I imagine that you could setup a kind of Flow that would detect changes and perform an action.

Microsoft Employee
@8bitclassroom

View solution in original post

4 REPLIES 4
mr-dang
Community Champion
Community Champion

@hpkeong recommended to me in the past to use a repeating timer that did Refresh(datasource) at a reasonable interval.

 

Set Timer1 properties to:

Timer1.Repeat: true
Timer1.AutoStart: true
Timer1.Start: true
Timer1.OnTimerEnd: Refresh(datasource)
Timer1.Duration: [the amount of seconds you want it to refresh * 1000 to put it in milliseconds]

Outside of refreshing, I don't know how to notify other users that changes have been made.

Microsoft Employee
@8bitclassroom

Thank you mr-dang, I was hoping that there would be a better solution than that, but I understand that without a server scheme where, for some critical parameters, all clients could be "pinged" to reload, there is not much we can do.

I was wondering if there was a recommended way to set-up our own server infrastructure that would take care of that "notification channel" and still be compatible with PowerApps...

Thanks,

 

Olivier

mr-dang
Community Champion
Community Champion

Ohhh Okay, I think this might be a job for Flow.

 

I set up Push notifications to appear whenever my app is opened. You could setup a Push notification to your phone whenever a record is written. I have not played with it much outside of that, but I imagine that you could setup a kind of Flow that would detect changes and perform an action.

Microsoft Employee
@8bitclassroom

View solution in original post

That would make sense, I haven't done much with Flow either, but at least this is something that would still stay within the MS framework and could work.

I'll consider this question answered,

Thanks

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, 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!

Top Solution Authors
Top Kudoed Authors
Users online (1,669)