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 :
Small and medium business | Business Central, N...
Suggested Answer

Continue to next element in record loop

(0) ShareShare
ReportReport
Posted on by 40

Hey,

Is it possible to skip a record in a loop? For example in a C# loop you can run continue and the loop skips the current element. Does BC support something like this?

Would be nice :)

Kind Regards,

Dominic

I have the same question (0)
  • Suggested answer
    Rbansode Profile Picture
    5 on at

    Hi Dominic,

    If the loop you're in is from a report, in the "OnAfterGetRecord" trigger, you can use the "CurrReport.SKIP".

    If you are using it in any other place, you can simply set the condition that you want to skip on as a filter and iterate as you usually would.

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!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 566 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 347 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 327 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans