can you please explain how Lookup() works in Business Central AL Code?
I am trying to understand the following code:-
CalcFormula = Lookup(/Sales Shipment Header/./Shipment Date/ where(/No./ = field(/Last Shipping No./)));
According to my understanding,
This function will return Shipment Date. but how it is able to filter? I am not able to understand /where/ part.
one thing I am sure of ,the two fields inside where will have same datatype, one is from sales shipment header and other one will from Sales Header table as this code is from SalesHeader.dal
Can someone please explain me this?