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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Looping through recordInsertList

(0) ShareShare
ReportReport
Posted on by 1,552
Hi,
 
if we have recordInsertList filled..is there a way to loop through it and take the values? Is there sth like listEnumerator to use?
I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at
    Hi JuniorAx,
     
    There is a method named toString method - Call this method and check whether it's returning the list values.
    If not, then there is no method available in RecordInsertList to loop through the records.
    You need to create your own List type variable and insert into it, while adding the records to RecordInsertList using add method.
    Later you can use the ListEnumerator to loop through all the records.
     
    Thanks,
    Girish S.
  • Suggested answer
    Martin Dráb Profile Picture
    238,738 Most Valuable Professional on at
    If you need such a thing, your design must be wrong. If you explain your business requirements to us, we can help with designing a technical solution that can actually do the job.
     
    You seem to think that the purpose of RecordInsertList is to store a list of records in memory, but that's not the case. You can use other classes for that, such as List or RecordSortedList, or to utilize a temporary table. RecordInsertList is used for inserting records on batches. For example, let's say you added 950 records there (and didn't call insertDatabase() yet. You may find that 900 records were already insert to DB (in nine batches of 100 records) and only 50 are waiting to be inserted. You can't find all those 95o records in the RecordInsertList object.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 577 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 309

#3
Diego Mancassola Profile Picture

Diego Mancassola 259

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans