﻿<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'>
  <entity name='incident'>
    <attribute name='incidentid'/>
    <attribute name='llp_claimnumber'/>
    <attribute name='title'/>
    <attribute name='llp_causedescription'/>
    <attribute name='createdon'/>
    <attribute name='statuscode'/>
    <order attribute='createdon' descending='true'/>
    <filter type='and'>
      <condition attribute='llp_claimnumber' operator='eq' value='${claimNr}'/>
    </filter>
    <link-entity name='account' from='accountid' to='customerid' visible='false' link-type='outer' alias='provider'>
      <attribute name='name' />
    </link-entity>
  </entity>
</fetch>