<?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: Post to secundaryObjectTypeIds using CMIS http in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122164#M33498</link>
    <description>&lt;P&gt;Before adding a value for a property in a secondary type (called &lt;EM&gt;aspect&lt;/EM&gt; in Alfresco), you need to add the secondary type itself.&lt;/P&gt;
&lt;P&gt;The property &lt;STRONG&gt;cmis:secondaryObjectTypeIds&lt;/STRONG&gt; includes a list with all the supported secondary types, so I guess that you need to get the original list and then add the value you need (magda:recipientEmail) to the list for the property in the POST request.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Oct 2021 12:38:20 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2021-10-15T12:38:20Z</dc:date>
    <item>
      <title>Post to secundaryObjectTypeIds using CMIS http</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122163#M33497</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to upload documents with Talend. I can set the ObjectTypeIds with a POST but I have no clue how to access the cmis:secondaryObjectTypeIds. I keep getting&lt;/P&gt;&lt;PRE&gt;{
    "exception": "invalidArgument",
    "message": "magda:customerFirstName is unknown!",
}&lt;/PRE&gt;&lt;P&gt;This is what I post as a test&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1157i19A962E17B3C394E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;These are the properties in CMIS Workbench&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 724px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1159i9D5134BA27DFEB03/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to populate them?&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 12:17:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122163#M33497</guid>
      <dc:creator>JayQueue</dc:creator>
      <dc:date>2021-10-15T12:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Post to secundaryObjectTypeIds using CMIS http</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122164#M33498</link>
      <description>&lt;P&gt;Before adding a value for a property in a secondary type (called &lt;EM&gt;aspect&lt;/EM&gt; in Alfresco), you need to add the secondary type itself.&lt;/P&gt;
&lt;P&gt;The property &lt;STRONG&gt;cmis:secondaryObjectTypeIds&lt;/STRONG&gt; includes a list with all the supported secondary types, so I guess that you need to get the original list and then add the value you need (magda:recipientEmail) to the list for the property in the POST request.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 12:38:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122164#M33498</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2021-10-15T12:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Post to secundaryObjectTypeIds using CMIS http</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122165#M33499</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/5487"&gt;@angelborroy&lt;/A&gt;&amp;nbsp;(Was just using your postman file after reading your blog)&lt;/P&gt;&lt;P&gt;This is what I see in CMIS Workbench&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1163iDC04C1179CC8A253/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I see that the Object Type ID is also D:magda:invoice which I use when I upload.&lt;/P&gt;&lt;P&gt;I tried this in Postman&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1160i4327F4C7FD2D1E66/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;But still ObjectNotFound&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 12:58:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122165#M33499</guid>
      <dc:creator>JayQueue</dc:creator>
      <dc:date>2021-10-15T12:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Post to secundaryObjectTypeIds using CMIS http</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122166#M33500</link>
      <description>&lt;P&gt;Try using "P:magda:recipientEmail" instead of "magda:recipientEmail" in the property value.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 13:36:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122166#M33500</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2021-10-15T13:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Post to secundaryObjectTypeIds using CMIS http</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122167#M33501</link>
      <description>&lt;P&gt;"Worked" since I'm getting a different error message now.&lt;/P&gt;&lt;PRE&gt;"message": "Constraint violation: 09180164 Found 4 integrity violations:
Mandatory aspect not set: 
Node: workspace://SpacesStore/7949ebf7-3bd9-4618-8703-b3394ba54e2b
Type: {http://www.domain.be/model/content/magda/1.0}invoice   &lt;BR /&gt;Aspect: {http://www.domain.be/model/content/magda/1.0}customer&lt;BR /&gt;Mandatory aspect not set: &lt;BR /&gt;Node: workspace://SpacesStore/7949ebf7-3bd9-4618-8703-b3394ba54e2b   &lt;BR /&gt;Type: {http://www.domain.be/model/content/magda/1.0}invoice   &lt;BR /&gt;Aspect: {http://www.domain.be/model/content/magda/1.0}recipient&lt;BR /&gt;Mandatory aspect not set:    
Node: workspace://SpacesStore/7949ebf7-3bd9-4618-8703-b3394ba54e2b   
Type: {http://www.domain.be/model/content/magda/1.0}invoice
Aspect: {http://www.domain.be/model/content/magda/1.0}payment
Mandatory aspect not set:
Node: workspace://SpacesStore/7949ebf7-3bd9-4618-8703-b3394ba54e2b
Type: {http://www.domain.be/model/content/magda/1.0}invoice
Aspect: {http://www.domain.be/model/content/magda/1.0}delivery",&lt;/PRE&gt;&lt;P&gt;I tried to add the aspects with no luck&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 992px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1161i915E0ED8438C2FAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then I tried like this&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 795px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1162i296D06AE73D33B3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But then I get&lt;/P&gt;&lt;PRE&gt;exception": "invalidArgument",
    "message": "magda:customerFirstName is unknown!",&lt;/PRE&gt;&lt;P&gt;How do I add multiple aspects?&lt;/P&gt;&lt;P&gt;Edit: Reading about this on&amp;nbsp;&lt;A href="https://docs.alfresco.com/content-services/6.1/develop/reference/cmis-ref/#browserbinding" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/content-services/6.1/develop/reference/cmis-ref/#browserbinding&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 07:15:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122167#M33501</guid>
      <dc:creator>JayQueue</dc:creator>
      <dc:date>2021-10-18T07:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Post to secundaryObjectTypeIds using CMIS http</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122168#M33502</link>
      <description>&lt;P&gt;Aspects are represented as arrays.&lt;/P&gt;
&lt;P&gt;Try this approach:&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 08:35:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122168#M33502</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2021-10-18T08:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Post to secundaryObjectTypeIds using CMIS http</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122169#M33503</link>
      <description>&lt;P&gt;Success!&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried that as well but was using the postman-echo.com&amp;nbsp;&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/P&gt;&lt;P&gt;Thank you! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 08:39:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/post-to-secundaryobjecttypeids-using-cmis-http/m-p/122169#M33503</guid>
      <dc:creator>JayQueue</dc:creator>
      <dc:date>2021-10-18T08:39:29Z</dc:date>
    </item>
  </channel>
</rss>

