title: Using Linked-Entity in addCustomFilter
body: <p>At this moment I know how to use the addCustomFilter in combination with addPreSearch (and the remove variants). All this works perfectly when passing a filterXml like:</p>
  
  <pre><code>&lt;filter type="and"&gt;
    &lt;condition attribute="name" operator="eq" value="test123" /&gt;
  &lt;/filter&gt;
  </code></pre>
  
  <p>But I just can't figure out how to use linked-entities in the addCustomFilter and whether it is actually possible. I've tried the following:</p>
  
  <pre><code>&lt;link-entity name="account" from="accountid" to="parentaccountid"&gt;
    &lt;filter type="and"&gt;
      &lt;condition attribute="name" operator="eq" value="test123" /&gt;
    &lt;/filter&gt;
  &lt;/link-entity&gt;
  </code></pre>
  
  <p>It is still the same filter but it is now placed on the parent account of the account. With this filterXml I want to get all the accounts that have the account 'test123' as the parent account.</p>
  
  <p>The problem is that the filter doesn't work in the addCustomFilter but it does return results in the AdvancedFind.</p>
  
  <p>Is there a way to use linked-entities in the addCustomFilter method, if so what am I doing wrong?</p>