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'/>
    		<link-entity name='new_product' to='accountid'>
    			<attribute name='new_productid'/>
    		<link-entity name='new_product2' to='accountid'>
    			<attribute name='new_product2id'/>
    What's missing/wrong?
    Thursday, March 24, 2011 4:57 PM


All replies