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, ...
Answered

Is function insertDatabase() ignore standard FO validateWrite()

(0) ShareShare
ReportReport
Posted on by 596

Hi,

Would like to know, if someone when insert data to a table, but using function insertDatabase(), does this really skip validateWrite() of the standard table ?

I found some case in my developer using this kind of code, from a recordlist like this : 

RecordInsertList netDeferredLineList = new RecordInsertList(tableNum(RevRecDeferredLine));
.
.
. 

Thanks,

  • GirishS Profile Picture
    27,843 Moderator on at

    Hi Lars Volt,

    I think it will call the validateWrite method event if you use insertDatabase of RecordInsertList.

    It will call the validateWrite method also.

    Thanks,

    Girish S.

  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    I think it never calls. Because after making list it doesn't contain again such provision. This is why we will first call validate write and then add to list. Please check below.

    www.schweda.net/blog_ax.php

  • GirishS Profile Picture
    27,843 Moderator on at

    Also, when there is an insert method is overridden at table level then it will insert records one by one as normal insert does. So, in that case also validateWrite method will be called.

    Thanks,

    Girish S.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at

    Hi Lars, I think it doesn't call the ValidateWrite method and generally I add validateWrite before insertDatabase. You can verify it by debugging one of the code your developers wrote.

    community.dynamics.com/.../recordinserlist-class-for-optimized-insert-operation

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 430 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 368

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 364 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans