﻿<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>
  <entity name = 'llp_insurancepolicy'>
    <order attribute='llp_customerid' descending='false' />
    <filter type='and'>
      <condition attribute='llp_insurancepolicyid' operator='eq' value='${policyID}' />
    </filter>
    <link-entity name='contact' from='contactid' to='llp_customerid' visible='false' link-type='outer' alias='contact'>
      <attribute name='telephone1' />
    </link-entity>
  </entity>
</fetch>
