Xml 如何在Taleo Connect客户端中使用常量字符串作为投影?

Xml 如何在Taleo Connect客户端中使用常量字符串作为投影?,xml,taleo,taleo-connect-client,Xml,Taleo,Taleo Connect Client,我使用Taleo Connect Client 17.4创建了一个导出,该导出从Taleo Enterprise 17.5.1检索报价列表 OfferNumber FirstName LastName 101 Leesa Rathe 102 Annabela Purser 103 Mattie Pietesch 104 Saw Febvre 我

我使用Taleo Connect Client 17.4创建了一个导出,该导出从Taleo Enterprise 17.5.1检索报价列表

OfferNumber    FirstName    LastName
101            Leesa        Rathe
102            Annabela     Purser
103            Mattie       Pietesch
104            Saw          Febvre
我想修改我的导出以添加一个“applicationType”列,该列具有一个常量预定义值“Candidate”

我尝试过使用复杂的投影
候选者
,以及用函数投影连接两个字符串,但每次服务器都返回工作流执行错误

如何使导出查询在Taleo Connect Client中返回具有常量字符串值的列?

导出查询:

<quer:query productCode="RC1704" model="http://www.taleo.com/ws/tee800/2009/01" projectedClass="Offer" locale="en" mode="CSV-ENTITY" csvheader="true" largegraph="true" preventDuplicates="false" xmlns:quer="http://www.taleo.com/ws/integration/query">
  <quer:subQueries/>
  <quer:projections>
    <quer:projection alias="OfferNumber">
      <quer:field path="Number"/>
    </quer:projection>
    <quer:projection alias="FirstName">
      <quer:field path="Application,Candidate,FirstName"/>
    </quer:projection>
    <quer:projection alias="LastName">
      <quer:field path="Application,Candidate,LastName"/>
    </quer:projection>
  </quer:projections>
  <quer:projectionFilterings/>
  <quer:filterings/>
  <quer:sortings/>
  <quer:sortingFilterings/>
  <quer:groupings/>
  <quer:joinings/>
</quer:query>

如果您将导出模式更改为CSV,您应该能够使用
候选者

<quer:query productCode="RC1704" model="http://www.taleo.com/ws/tee800/2009/01" projectedClass="Offer" locale="en" mode="CSV" csvheader="true" largegraph="true" preventDuplicates="false" 
    xmlns:quer="http://www.taleo.com/ws/integration/query">
    <quer:subQueries/>
    <quer:projections>
        <quer:projection alias="OfferNumber">
            <quer:field path="Number"/>
        </quer:projection>
        <quer:projection alias="FirstName">
            <quer:field path="Application,Candidate,FirstName"/>
        </quer:projection>
        <quer:projection alias="LastName">
            <quer:field path="Application,Candidate,LastName"/>
        </quer:projection>
        <quer:projection alias="ApplicantType">
            <quer:string>Candidate</quer:string>
        </quer:projection>
    </quer:projections>
    <quer:projectionFilterings/>
    <quer:filterings/>
    <quer:sortings/>
    <quer:sortingFilterings/>
    <quer:groupings/>
    <quer:joinings/>
</quer:query>

候选人

请注意,导出模式为“CSV”,而不是CSV实体。这可能是导致错误的原因。

将导出模式更改为
CSV
(在TCC中标记为“CSV报告”)修复了错误。
CSV
CSV实体
之间的区别是什么?CSV就像SQL脚本一样工作,这是99%的情况下您想要的。CSV实体将以不同方式威胁数据,并提供有关数据语言的信息。导出可以使用不同语言的值时,将沿数据提取区域设置,例如:“en=data”。
<quer:query productCode="RC1704" model="http://www.taleo.com/ws/tee800/2009/01" projectedClass="Offer" locale="en" mode="CSV" csvheader="true" largegraph="true" preventDuplicates="false" 
    xmlns:quer="http://www.taleo.com/ws/integration/query">
    <quer:subQueries/>
    <quer:projections>
        <quer:projection alias="OfferNumber">
            <quer:field path="Number"/>
        </quer:projection>
        <quer:projection alias="FirstName">
            <quer:field path="Application,Candidate,FirstName"/>
        </quer:projection>
        <quer:projection alias="LastName">
            <quer:field path="Application,Candidate,LastName"/>
        </quer:projection>
        <quer:projection alias="ApplicantType">
            <quer:string>Candidate</quer:string>
        </quer:projection>
    </quer:projections>
    <quer:projectionFilterings/>
    <quer:filterings/>
    <quer:sortings/>
    <quer:sortingFilterings/>
    <quer:groupings/>
    <quer:joinings/>
</quer:query>