Skip to content

Instantly share code, notes, and snippets.

@ztirom

ztirom/ax_recordinsertlist Secret

Created Nov 30, 2018
Embed
What would you like to do?
AX Insert vs RecordInsertList #2
public static void insertWithList(int rows)
{
BulkInsertTable bulkInsertTable;
RecordInsertList insertList = new RecordInsertList(bulkInsertTable.TableId);
for (var i = 0; i < rows; i++)
{
bulkInsertTable.Id = i;
bulkInsertTable.StringValue = strFmt("Value - %1", i);
insertList.add(bulkInsertTable);
}
insertList.insertDatabase();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment