CRM在SSRS中获取XML

时间:2016-03-13 04:52:05

标签: xml ssrs-2008 dynamics-crm-2011 dynamics-crm fetch

我只是通过复制一行并将名称替换为CRM中的字段名称,将同一实体中的字段添加到我的获取XML代码中。然而,当我预览报告时<TR><CR>正在我的报告上显示我需要的价值。展示:John Doe <TR><CR>如何在不使用<TR><CR>的情况下向报表中添加字段获取XML在我预览时出现?我简单地说: &#34; new_ofmonthstostrip&#34;到下面的代码

    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="new_loan">
    <attribute name="new_loanid" />
    <attribute name="new_balance" />
    <attribute name="new_principalbalance" />



    <attribute name="new_titlereserve" />
    <attribute name="new_contractreserve" />
    <attribute name="new_dealerguarantee" />

    <attribute name="new_uaiaccountnumber" />
    <attribute name="new_borrowerfirstname" />
    <attribute name="new_borrowerlastname" />
    <attribute name="new_dealerguarantee" />
    <attribute name="new_dealerstocknumber" />

    <attribute name="dc_musemodifiedbalance" />
    <attribute name="dc_musemodifiedfrequency" />
    <attribute name="dc_musemodifiedpayment" />

    <attribute name="dc_mmodifiedbalance" />
    <attribute name="dc_mmodifiedpaymentfrequency" />
    <attribute name="dc_mmodifiedpaymentamount" />


    <filter type="and">
      <filter type="or">
        <condition attribute="new_loanstatus" operator="eq" value="2" />
        <condition attribute="new_loanstatus" operator="eq" value="3" />
      </filter>
    </filter>
    <link-entity name="quote" from="quoteid" to="new_proposalid" alias="aa">
      <attribute name="quotenumber" />
     <attribute name = "new_ofmonthstostrip"/>
      <attribute name="new_reservearpercent" />
      <attribute name="new_reservear" />
      <attribute name="new_biddingon" />
      <attribute name="new_closingbid" />
      <attribute name="new_bonuspoolpercent" />
      <attribute name="new_reservearpercent" />
      <filter type="and">
        <condition attribute="quoteid" operator="eq" value="@QuoteId" />
    </filter>
      <link-entity name="opportunity" from="opportunityid" to="opportunityid" alias="ab">
        <attribute name="new_biddingon" />

      </link-entity>
    </link-entity>
  </entity>
</fetch>

2 个答案:

答案 0 :(得分:1)

在添加new_ofmonthstostrip属性时,您可能不小心删除了此字段的属性名称标记。你也

<link-entity name="quote" from="quoteid" to="new_proposalid" alias="aa">
      <attribute name="quotenumber" />
      new_ofmonthstostrip
      <attribute name="new_reservearpercent" />

将其更改为:

<link-entity name="quote" from="quoteid" to="new_proposalid" alias="aa">
      <attribute name="quotenumber" />
      <attribute name = "new_ofmonthstostrip" />
      <attribute name="new_reservearpercent" />

答案 1 :(得分:0)

在报告的项目代码中删除.dat文件。当您更改报表的某些内容并再次运行它时,VS倾向于使用旧数据。相当于某种“缓存”内存。

另一件事是总是尝试在crm本身中运行它。在crm上运行时,结果更加可靠。