Whenever you need to get a value1|value2|value4..value10|… field filter from a provided record variable, then the GetSelectionFilter method from the SelectionFilterManagement codeunit is your friend. However, using this function has one drawback, as you can read in the Remarks section:
Posted inDynamics NAV & BC Tips & tricks