Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Where we use Rec.modify() in AL language code & what is the purpose of Rec.modify()

Posted on by 153
Hi Guys,
 
Where we use Rec.modify() in AL language code & what is the purpose of Rec.modify(), Rec.modify(true), Rec.modify(False).
  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 58,880 Super User 2024 Season 2 on at
    Where we use Rec.modify() in AL language code & what is the purpose of Rec.modify()
    If you have assigned or validated any of the fields and update them in Database then we will use modify.
     
    Ex: 
     
    Cust.get('XYZ');
    Cust.Name := 'abc';
     
    Above name will not be changed untill you add Cust. modify(); at the end.
     
    modify(true) will call the OnModify trigger if that table.
    modify() and modify(false) will not call the OnModify trigger.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans