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 :
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,

I have the same question (0)
  • GirishS Profile Picture
    27,825 Moderator on at
    RE: Is function insertDatabase() ignore standard FO validateWrite()

    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
    RE: Is function insertDatabase() ignore standard FO validateWrite()

    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,825 Moderator on at
    RE: Is function insertDatabase() ignore standard FO validateWrite()

    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,563 Moderator on at
    RE: Is function insertDatabase() ignore standard FO validateWrite()

    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

Responsible AI policies

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

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 756 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 678

#3
Martin Dráb Profile Picture

Martin Dráb 526 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans