AL Tips
A collection of 2 posts
AL Tips
TryFunction in AL - Catch Errors Without Killing the Whole Run
The TryFunction attribute turns a procedure into a Boolean-returning method that swallows errors instead of stopping execution, so your code can react and continue.
· Christian Schou Køster
AL Tips
SetAutoCalcFields vs CalcFields - Stop Calling CalcFields in a Loop
Calling CalcFields inside a repeat loop fires one SQL query per record. SetAutoCalcFields folds the FlowField calculation into the original query instead.
· Christian Schou Køster