==================
Lookup formula with table.field syntax
==================

table 50000 "Test Table"
{
    fields
    {
        field(1; "Field1"; Code[20])
        {
            CalcFormula = Lookup(Contact."E-Mail" WHERE("No." = FIELD("Contact No.")));
        }
    }
}

---

(source_file
  (table_declaration
    (table_keyword)
    object_id: (integer)
    object_name: (quoted_identifier)
    (fields_section
      (fields_keyword)
      (field_declaration
        id: (integer)
        name: (quoted_identifier)
        type: (type_specification
          (code_type
            length: (integer)))
        (property
          name: (property_name)
          value: (lookup_formula
            target: (calc_field_reference
              (identifier)
              (quoted_identifier))
            (where_clause
              (where_conditions
                (where_condition
                  field: (quoted_identifier)
                  value: (quoted_identifier))))))))))
