web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,917

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,161 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,025 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans