{"id":615,"date":"2018-06-29T14:03:13","date_gmt":"2018-06-29T19:03:13","guid":{"rendered":"https:\/\/linux.asberry.org\/blog_tech\/?p=615"},"modified":"2024-05-14T09:13:49","modified_gmt":"2024-05-14T14:13:49","slug":"tcc-sub-includedin-subquery","status":"publish","type":"post","link":"https:\/\/asberry.org\/blog_tech\/?p=615","title":{"rendered":"TCC &#8211; Sub IncludedIn SubQuery"},"content":{"rendered":"<p>I never thought that this would work but it seems to run just fine, putting it here for future reference. This returns candidates numbers that have an application to a requisition that&#8217;s posted, used for a T-XML candidate attachment export.<\/p>\n<pre class=\"brush: xml; light: false; title: ; toolbar: true; notranslate\" title=\"\">\r\n&lt;quer:filtering xmlns:quer=&quot;http:\/\/www.taleo.com\/ws\/integration\/query&quot;&gt;\r\n  &lt;quer:includedIn&gt;\r\n    &lt;quer:field path=&quot;Number&quot;\/&gt;\r\n    &lt;quer:query projectedClass=&quot;Application&quot; alias=&quot;sqMotives&quot; preventDuplicates=&quot;true&quot; pagingsize=&quot;1&quot;&gt;\r\n      &lt;quer:subQueries\/&gt;\r\n      &lt;quer:projections&gt;\r\n        &lt;quer:projection&gt;\r\n          &lt;quer:field path=&quot;Candidate,Number&quot;\/&gt;\r\n        &lt;\/quer:projection&gt;\r\n      &lt;\/quer:projections&gt;\r\n      &lt;quer:filterings&gt;\r\n        &lt;quer:filtering&gt;\r\n          &lt;quer:includedIn&gt;\r\n            &lt;quer:field path=&quot;Applications,Requisition,Number&quot;\/&gt;\r\n            &lt;quer:query projectedClass=&quot;SourcingRequest&quot; alias=&quot;sqMotives&quot; preventDuplicates=&quot;true&quot; pagingsize=&quot;1&quot;&gt;\r\n              &lt;quer:subQueries\/&gt;\r\n              &lt;quer:projections&gt;\r\n                &lt;quer:projection&gt;\r\n                  &lt;quer:field path=&quot;Requisition,Number&quot;\/&gt;\r\n                &lt;\/quer:projection&gt;\r\n              &lt;\/quer:projections&gt;\r\n              &lt;quer:filterings&gt;\r\n                &lt;quer:filtering&gt;\r\n                  &lt;quer:equal&gt;\r\n                    &lt;quer:field path=&quot;SourcingRequestStatus,Number&quot;\/&gt;\r\n                    &lt;quer:string&gt;2&lt;\/quer:string&gt;\r\n                  &lt;\/quer:equal&gt;\r\n                &lt;\/quer:filtering&gt;\r\n              &lt;\/quer:filterings&gt;\r\n            &lt;\/quer:query&gt;\r\n          &lt;\/quer:includedIn&gt;\r\n        &lt;\/quer:filtering&gt;\r\n      &lt;\/quer:filterings&gt;\r\n    &lt;\/quer:query&gt;\r\n  &lt;\/quer:includedIn&gt;\r\n&lt;\/quer:filtering&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I never thought that this would work but it seems to run just fine, putting it here for future reference. This returns candidates numbers that have an application to a requisition that&#8217;s posted, used for a T-XML candidate attachment export. &lt;quer:filtering xmlns:quer=&quot;http:\/\/www.taleo.com\/ws\/integration\/query&quot;&gt; &lt;quer:includedIn&gt; &lt;quer:field path=&quot;Number&quot;\/&gt; &lt;quer:query projectedClass=&quot;Application&quot; alias=&quot;sqMotives&quot; preventDuplicates=&quot;true&quot; pagingsize=&quot;1&quot;&gt; &lt;quer:subQueries\/&gt; &lt;quer:projections&gt; &lt;quer:projection&gt; &lt;quer:field path=&quot;Candidate,Number&quot;\/&gt; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-615","post","type-post","status-publish","format-standard","hentry","category-tcc","author-aron"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4bBkH-9V","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=615"}],"version-history":[{"count":2,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/615\/revisions"}],"predecessor-version":[{"id":618,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/615\/revisions\/618"}],"wp:attachment":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}