Writing an AL extension and need to call a proc that finds all sales lines of Type "Item", How do I pass the constant "Item".
I'm calling from a subscription on a Sales Header, so i can pass rec."Document Type" for the Doc Type, but can't figure out how to pass LineType of Item
Can someone point me in the right direction
Here's my proc definition:
local procedure DeleteLines(var DocNo: code; var DocType: Option; var ItemType: Option; FilterString: Text)
Here's my call:
DeleteLines(rec."No.", rec."Document Type", [b]'ITEM'[/b], 'FLOC | FCOM | FRES | FLIFT');