0

我有tgi实体:销售订单和与产品相关的n:n。我必须从报告中提取与当前销售订单相关的所有产品。 当我试试这个:如何从报表服务获取n:n关系

<fetch distinct="false" no-lock="false" mapping="logical" > 
    <entity name="salesorder" enableprefiltering="1"> 
    <link-entity name="new_product_salesorder" from="salesorderid" to="salesorderid"> 
     <attribute name='productid'/> 
     <link-entity name="product" from="productid" to="productid"> 
      <attribute name="name" alias="product_name"/> 
      <attribute name="stockvolume" alias="product_amount"/> 
      <attribute name="price" alias="product_price"/> 
      <attribute name="currentcost" alias="product_cost"/> 
     </link-entity> 
    </link-entity> 
    </entity> 
</fetch> 

没有错误,dut数据没有得到。 有没有人问题?

回答

0

我建议尝试使用CRM中的高级查找功能首先构建查询,直到获得一些数据,然后将其导出到FetchXml。