我有一个用Taleo客户端17.4创建的导出,它从TaleoEnterprise17.5.1检索报价列表。
OfferNumber FirstName LastName
101 Leesa Rathe
102 Annabela Purser
103 Mattie Pietesch
104 Saw Febvre我想修改我的导出,以添加一个"ApplicantType“列,该列的值为”候选人“。
OfferNumber FirstName LastName ApplicantType
101 Leesa Rathe Candidate
102 Annabela Purser Candidate
103 Mattie Pietesch Candidate
104 Saw Febvre Candidate我尝试使用一个复杂的投影<quer:string>Candidate</quer:string>,以及连接两个字符串和一个函数投影,但是每次服务器返回一个工作流执行错误。
如何使导出查询在Taleo客户端中返回一个具有常量字符串值的列?
导出查询:
<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>发布于 2018-08-30 15:07:10
如果将导出模式更改为CSV,则应该能够使用<quer:string>Candidate</quer:string>。
<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-实体。这可能是导致你的错误的原因。
https://stackoverflow.com/questions/52085331
复制相似问题