[英]Retrieve accepted offers from last week in Taleo
I have a Taleo Client Connect export which retrieves offers from Taleo Recruiting 17.4. 我有一个Taleo Client Connect导出功能,可从Taleo Recruiting 17.4中检索报价。 I want to filter my results to only include offers that were accepted within the past seven days. 我想过滤搜索结果,使其仅包括过去7天内接受的报价。
My filter works if I manually specify a date in the XML data, but I can't figure out how to calculate last week's date at runtime. 如果我在XML数据中手动指定一个日期,那么我的过滤器将起作用,但是我不知道如何在运行时计算上周的日期。
<quer:filtering xmlns:quer="http://www.taleo.com/ws/integration/query">
<quer:greaterThan>
<quer:field path="AcceptedDate"/>
<quer:date>2019-02-22</quer:date> <!--Should equal [CURRENT_DATE]-[7_DAYS]-->
</quer:greaterThan>
</quer:filtering>
How can I export offers that were accepted within the past week using Taleo Connect Client? 如何导出过去一周内使用Taleo Connect Client接受的报价?
Full export : 全部出口 :
<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>
<quer:field path="AcceptedDate"/>
</quer:projection>
<quer:projection>
<quer:field path="Application,Candidate,Number"/>
</quer:projection>
<quer:projection>
<quer:field path="Application,Requisition,ContestNumber"/>
</quer:projection>
</quer:projections>
<quer:projectionFilterings/>
<quer:filterings>
<quer:filtering>
<quer:greaterThan>
<quer:field path="AcceptedDate"/>
<quer:date>2019-02-22</quer:date> <!--Should equal [CURRENT_DATE]-[7_DAYS]-->
</quer:greaterThan>
</quer:filtering>
</quer:filterings>
<quer:sortings/>
<quer:sortingFilterings/>
<quer:groupings/>
<quer:joinings/>
</quer:query>
Try this complex filter: 试试这个复杂的过滤器:
<quer:filtering xmlns:quer="http://www.taleo.com/ws/integration/query">
<quer:greaterThan>
<quer:field path="AcceptedDate"/>
<quer:castAsDate>
<quer:addDays>
<quer:date type="now"/>
<quer:integer>-7</quer:integer>
</quer:addDays>
</quer:castAsDate>
</quer:greaterThan>
</quer:filtering>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.