Is it possible to use Flow to trigger a "reload" of a datasource in a PowerApp( refresh Gallery), or change a boolean flag? (anything that can be used as an event)
I know how to use the timers, I use them already, but in this case, I do not want to refresh my Gallery from the datasource every minute. Yet, there might be a new record from another process in my data source, and I would like to refresh within a minute when that happens. If Flow could somehow be used, I can trigger a flow from that other process...
Thanks for the help.
Do you want to use a flow to refresh the App when a new item is created in the data source?
It seems that currently there is no trigger/action could be used to meet your needs. May I suggest you submit an idea at PowerApps Ideas Forum, so it might be considered as a future release:
Hi Olivier, I just found this function; Office365.OnNewEmail()
It is included here: https://powerapps.microsoft.com/en-us/tutorials/connection-office365-outlook/
However, cannot do anything with it yet, maybe someone else knows how...
If it could work as advertised, then you could trigger an event in PowerApps with a new email?
This could be interesting if effectively it does force re-evaluation of the formula when a new e-mail is available. It seems to me that since you actually filtered this with the "First" function, it returns a collection of all "new" emails (the ones that haven't been read) at the time the function is evaluated (when the text box is loaded in your case?). This would be similar to the Now() function that returns the current date-time value, but doesn't re-evaluate on every time change.
I think at this time that the best way to handle this is via a semaphore (boolean value in a very simple connection) that is read via a timer function, and if true triggers the refresh of the collection / datasource, and resets the semaphore to false. The process that changes the data source is responsible to set the semaphore to true (it doesn't need to check if the semaphore is false, if the semaphore was already true, then a refresh request was already pending).
This requires "polling", but the polling of a single value. I don't like it, but I think this is the only viable option at this time.
I was wondering if you have ever come across a better solution to this issue?
It is now 2019 and I don't believe any functionality for triggering a refresh of a PowerApp gallery based on new server data has become available as far as I can tell?
Sorry for reanimating an old thread like this..
Check out the News & Announcements to learn more.
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.