I just got back from Ignite 2019 and I asked one of the experts if I could do this and he said he thought it was possible. I've not been able to figure it out in the past three days. It may sound crazy, but I would like to refresh the data-source in my app only if a new item is added to my SharePoint Event List. Cache build-up from constant refresh to check for new items is crashing the iPad. I tried to use Flow to create a "When new item is created" and then use "Respond back to PowerApps", but that seems to form some kind of reoccurring loop. The "Respond back to PowerApps" must only work if the Flow is called from PowerApps.
At this point I'm just reaching out to see if this is possible and if not, I can just move on to another solution.
Solved! Go to Solution.
The loop will be in flow, I think you need to create three loops in order to meet your goals.
Basic design of the flow:
trigger from powerapps --> [Loop: Apply to each]Find the last row of the Sp list and get its ID# and set this as variable1--> Do a loop until (condition for 1 day for testing, 30days is the max)->Inside the loop-> create a 10 mins delay-> Find the last row of the Sp list and get its ID# , do a compare of this ID# to variable1_> if ID# greater than variable1, send back a powerapps variable and set it to true, else do nothing -> go back to the do until loop again
Link for find the last ID (last row) of the sharepoint list, you also need to change the default for 100 items to 5000 max when scan thru the sp list in the setting of the apply to each loop.
Here is a sample to set variable from powerapps->flow->powerapps
https://flow.microsoft.com/en-us/blog/return-data-to-powerapps/
Hope this help.
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
200 | |
171 | |
62 | |
32 | |
31 |
User | Count |
---|---|
339 | |
269 | |
105 | |
71 | |
56 |