web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    RE: Continue to next element in record loop

    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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,689 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,631

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,212

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans