<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using where to get more association types in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/using-where-to-get-more-association-types/m-p/116689#M32328</link>
    <description>&lt;P&gt;Thank you for the answer but it's not true. I have custom association in content model like&lt;/P&gt;&lt;PRE&gt;&amp;lt;child-association name="my:type1"&amp;gt;
    &amp;lt;title&amp;gt;My Type&amp;lt;/title&amp;gt;
    &amp;lt;source&amp;gt;
        &amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;
        &amp;lt;many&amp;gt;true&amp;lt;/many&amp;gt;
    &amp;lt;/source&amp;gt;
    &amp;lt;target&amp;gt;
        &amp;lt;class&amp;gt;cm:content&amp;lt;/class&amp;gt;
        &amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;
        &amp;lt;many&amp;gt;true&amp;lt;/many&amp;gt;
    &amp;lt;/target&amp;gt;
&amp;lt;/child-association&amp;gt;&lt;/PRE&gt;&lt;P&gt;I need to get results for two associations, &lt;STRONG&gt;my:type1 or my:type2&lt;/STRONG&gt; in one request using where condition.&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2020 10:02:09 GMT</pubDate>
    <dc:creator>MartinTichovsky</dc:creator>
    <dc:date>2020-05-27T10:02:09Z</dc:date>
    <item>
      <title>Using where to get more association types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-where-to-get-more-association-types/m-p/116687#M32326</link>
      <description>&lt;P&gt;Hello, i would like to ask, how can i use WHERE in Alfresco API&lt;/P&gt;&lt;PRE&gt;GET /nodes/{nodeId}/secondary-children&lt;/PRE&gt;&lt;P&gt;using WHERE and more than one assocType, for example like&lt;/P&gt;&lt;PRE&gt;where=(assocType='my:type1') or (assocType='my:type2')&lt;/PRE&gt;&lt;P&gt;If i use AND or OR in WHERE param, result is the same. I't there some possibility how to get two different associations using WHERE? Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 11:53:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-where-to-get-more-association-types/m-p/116687#M32326</guid>
      <dc:creator>MartinTichovsky</dc:creator>
      <dc:date>2020-05-26T11:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using where to get more association types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-where-to-get-more-association-types/m-p/116688#M32327</link>
      <description>&lt;P&gt;I don't know if I get you.&lt;/P&gt;
&lt;P&gt;AFAIK a secondary child can be only from assoc type &lt;STRONG&gt;cm:contains&lt;/STRONG&gt; and &lt;STRONG&gt;primary=false&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Did you define custom secondary associations?&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 06:58:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-where-to-get-more-association-types/m-p/116688#M32327</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2020-05-27T06:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using where to get more association types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-where-to-get-more-association-types/m-p/116689#M32328</link>
      <description>&lt;P&gt;Thank you for the answer but it's not true. I have custom association in content model like&lt;/P&gt;&lt;PRE&gt;&amp;lt;child-association name="my:type1"&amp;gt;
    &amp;lt;title&amp;gt;My Type&amp;lt;/title&amp;gt;
    &amp;lt;source&amp;gt;
        &amp;lt;mandatory&amp;gt;true&amp;lt;/mandatory&amp;gt;
        &amp;lt;many&amp;gt;true&amp;lt;/many&amp;gt;
    &amp;lt;/source&amp;gt;
    &amp;lt;target&amp;gt;
        &amp;lt;class&amp;gt;cm:content&amp;lt;/class&amp;gt;
        &amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;
        &amp;lt;many&amp;gt;true&amp;lt;/many&amp;gt;
    &amp;lt;/target&amp;gt;
&amp;lt;/child-association&amp;gt;&lt;/PRE&gt;&lt;P&gt;I need to get results for two associations, &lt;STRONG&gt;my:type1 or my:type2&lt;/STRONG&gt; in one request using where condition.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 10:02:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-where-to-get-more-association-types/m-p/116689#M32328</guid>
      <dc:creator>MartinTichovsky</dc:creator>
      <dc:date>2020-05-27T10:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using where to get more association types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-where-to-get-more-association-types/m-p/116690#M32329</link>
      <description>&lt;P&gt;Those are not secondary associations. They are &lt;EM&gt;source&lt;/EM&gt; and &lt;EM&gt;target&lt;/EM&gt; associations.&lt;/P&gt;
&lt;P&gt;You need to use these other REST API calls:&lt;/P&gt;
&lt;PRE&gt;GET /nodes/{nodeId}/sources
GET /nodes/{nodeId}/targets&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 May 2020 10:16:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-where-to-get-more-association-types/m-p/116690#M32329</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2020-05-27T10:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using where to get more association types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-where-to-get-more-association-types/m-p/116691#M32330</link>
      <description>&lt;P&gt;Are you sure? And what about this&amp;nbsp;&lt;A href="https://api-explorer.alfresco.com/api-explorer/#!/nodes/listSecondaryChildren" target="_blank" rel="noopener nofollow noreferrer"&gt;https://api-explorer.alfresco.com/api-explorer/#!/nodes/listSecondaryChildren&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 10:59:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-where-to-get-more-association-types/m-p/116691#M32330</guid>
      <dc:creator>MartinTichovsky</dc:creator>
      <dc:date>2020-05-27T10:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using where to get more association types</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/using-where-to-get-more-association-types/m-p/116692#M32331</link>
      <description>&lt;P&gt;As I said before that REST API invocation handles the &lt;STRONG&gt;cm:contains&lt;/STRONG&gt; &lt;EM&gt;secondary&lt;/EM&gt; associations.&lt;/P&gt;
&lt;P&gt;But if you are not sure, let's wait for someone else that may have deeper knowledge of the API than me.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 11:29:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/using-where-to-get-more-association-types/m-p/116692#M32331</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2020-05-27T11:29:30Z</dc:date>
    </item>
  </channel>
</rss>

