locked
FetchXML: Problem with <link-entity> RRS feed

  • Question

  • I need these data fields: accountid, new_productid and new_product2id. Fields new_productid and new_product2id are into other custom entities with many to many relationships with account.
    This is the code:
    <fetch mapping='logical'>
      <entity name='account'>
    		<attribute name = 'accountid'/>
    		<filter type='and'>
    			<condition attribute = 'accountid' operator='eq' value='xxx'/>
    		</filter>
    		<link-entity name='new_product' to='accountid'>
    			<attribute name='new_productid'/>
    		</link-entity>
    		<link-entity name='new_product2' to='accountid'>
    			<attribute name='new_product2id'/>
    		</link-entity>
    	</entity>
     </fetch>
    
    What's missing/wrong?
    Thanks
    Thursday, March 24, 2011 4:57 PM

Answers

All replies