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 Platform Community / Forums / Power Apps / Timer job in gallery n...
Power Apps
Suggested Answer

Timer job in gallery not triggering properly. Works for some records and doesn't work for some.

(0) ShareShare
ReportReport
Posted on by 116
I have a timer job in the Gallery which runs every 12000 milliseconds. Repeat and Autostart set to true and Autopause set to false.
 
OnTimer End i have below patch function where i set the boolean column BC to true. My datasource has more than 2000 records. May i know how to ensure that this patch function runs without getting into delegation issues.  Currently this patch function works for some records and doesn't work for some. 
 
OnTimerEnd code
If(
    ThisItem.'Request Status' = "Approved" && (ThisItem.FCR= false || ThisItem.FCR= Blank()) && (ThisItem.BC= false || ThisItem.BC= Blank()),
    Patch(
        'Data Source',
        LookUp(
            'Data Source',
            ID = ThisItem.ID && ID > 3000
        ),
        {BC: true}
    )
)
I have the same question (0)
  • Suggested answer
    BCBuizer Profile Picture
    22,798 Super User 2026 Season 1 on at
     
    A gallery has built in pagination, which means it will only load the first 100 records from the data source. Only if you sroll down and reach the end of the gallery, it will load the next 100 records, and so forth. This may be the reason your app is not behaving as you expect it to.
     
    May I ask about your use case though? You seem to want to implement some sort of business logic, but I don't think using a timer control in a gallery in Power Apps is the right thing to do that. In case you are using SharePoint as a data source, consider using a Power Automate cloud flow, to be triggered when an item is modified, with some trigger conditions to be the same as the logic in you Power Fx formulat, to do the trick. 
     
    This will make updates much faster, reliable, monitorable, and will take away the workload from Power Apps, improving the performance.
     
     
    If this reply helped you in any way, please give it a Like 💜 and in case it resolved your issue, please mark it as the Verified Answer ✅.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 387

#3
timl Profile Picture

timl 344 Super User 2026 Season 1

Last 30 days Overall leaderboard