简体   繁体   English

Taleo 客户端连接复杂查询

[英]Taleo Client Connect Complex Query

I'm building an export from requisitions from of Taleo using TCC (on windows);我正在使用 TCC(在 Windows 上)从 Taleo 的申请中建立一个出口; and want a boolean field to indicate if the job is an Evergreen one.并想要一个 boolean 字段来指示该工作是否是常青工作。 Using the example in the TCC documentation guide i have been trying to find the right syntax for this query.使用 TCC 文档指南中的示例,我一直在尝试为该查询找到正确的语法。 The TCC editor insits this is invalid (as is posting the example straight from the documentation . Do you have any suggestions on where i am going wrong? TCC 编辑器认为这是无效的(就像直接从文档中发布示例一样。您对我哪里出错有任何建议吗?

<query alias="testGreatherThan" projectedClass="Requisition">
    <projections>
        <projection>
            <quer:string>true</quer:string>
        </projection>
    </projections>
    <filterings>
        <filtering>
            <greaterThan>
                <field path="JobInformation,Evergreen Req Number"/>
                <integer>1</integer>
            </greaterThan>
        </filtering>
    </filterings>
</query>

Here is an example:这是一个例子:

<quer:query productCode="RC1704" model="http://www.taleo.com/ws/tee800/2009/01" alias="testGreatherThan" projectedClass="Requisition" locale="en" mode="CSV" xmlns:quer="http://www.taleo.com/ws/integration/query">
<quer:projections>
    <quer:projection>
        <quer:field path="ContestNumber"/>
    </quer:projection>
    <quer:projection alias="isEvergreen">
        <quer:decode>
            <quer:field path="JobInformation,Evergreen_20Req_20Number"/>
            <quer:string/>
            <quer:string>false</quer:string>
            <quer:string>true</quer:string>
        </quer:decode>
    </quer:projection>
</quer:projections>
<quer:filterings>
    <quer:filtering>
        <quer:equal>
            <quer:field path="State,Description"/>
            <quer:string>Sourcing</quer:string>
        </quer:equal>
    </quer:filtering>
</quer:filterings>

A few things to note:需要注意的几点:

  • You need to have product integration pack 17.4 available (RC1704) to be able to open the script with TCC您需要有可用的产品集成包 17.4 (RC1704) 才能使用 TCC 打开脚本
  • The script will export all requisitions having the "Sourcing" status, the second column will be a true/false flag.该脚本将导出所有具有“采购”状态的申请,第二列将是一个真/假标志。 I used a "decode" function to generate it.我使用“解码” function 来生成它。 If there is a value in "Evergreen Req Number", the flag will be set to true and it will be set to false otherwise如果“Evergreen Req Number”中有值,则标志将设置为 true,否则将设置为 false
  • Note that special characters need to be escaped when editing a TCC script with a text editor.请注意,使用文本编辑器编辑 TCC 脚本时需要转义特殊字符。 You need to use an underscore (_) followed by the hexadecimal value of the character.您需要使用下划线 (_) 后跟字符的十六进制值。 If the field name is "Evergreen Req Number" you must escape the spaces: Evergreen_20Req_20Number.如果字段名称是“Evergreen Req Number”,则必须转义空格:Evergreen_20Req_20Number。 It is done automatically when editing a script in TCC.在 TCC 中编辑脚本时会自动完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM