﻿<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>
  <entity name = 'lead'>
    <attribute name='leadid' />
    <attribute name='emailaddress1' />
    <order attribute='createdon' descending='true' />
    <filter type='and'>
      <condition attribute='emailaddress1' operator='eq' value='${email}' />
    </filter>
  </entity>
</fetch>