<?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: Add New Custom Properties in Custom Model in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/add-new-custom-properties-in-custom-model/m-p/112371#M31329</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76998"&gt;@goranche89&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great that you accepted the solution - thanks!&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
    <pubDate>Wed, 02 Sep 2020 13:14:32 GMT</pubDate>
    <dc:creator>EddieMay</dc:creator>
    <dc:date>2020-09-02T13:14:32Z</dc:date>
    <item>
      <title>Add New Custom Properties in Custom Model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-new-custom-properties-in-custom-model/m-p/112369#M31327</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I've created custom model with PortCmis and C#, with some custom aspects. Now I want to add some more custom aspects to that model. I've tried something like this:&lt;BR /&gt;&lt;BR /&gt;var modelObject = session.GetObject("here-is-custom-model-id");&lt;/P&gt;&lt;P&gt;var aspectsTemp = modelObject.GetPropertyValue("cmis:secondaryObjectTypeIds");&lt;/P&gt;&lt;P&gt;IList aspects = (IList)aspectsTemp;&lt;BR /&gt;aspects.Add("P:goran:fourthAspect");&lt;/P&gt;&lt;P&gt;IDictionary&amp;lt;string, object&amp;gt; props = new Dictionary&amp;lt;string, object&amp;gt;();&lt;BR /&gt;props["cmis:secondaryObjectTypeIds"] = aspects;&lt;/P&gt;&lt;P&gt;modelObject.UpdateProperties(props, true);&lt;/P&gt;&lt;P&gt;But I'm getting this error: "Invalid secondary type id P:goran:fourthAspect".&lt;BR /&gt;Is there any solution how to add new custom aspect to previously created custom model?&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 07:37:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-new-custom-properties-in-custom-model/m-p/112369#M31327</guid>
      <dc:creator>goranche89</dc:creator>
      <dc:date>2020-09-01T07:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add New Custom Properties in Custom Model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-new-custom-properties-in-custom-model/m-p/112370#M31328</link>
      <description>&lt;P&gt;You need&amp;nbsp; to&amp;nbsp;&lt;FONT&gt;retrieve content&lt;/FONT&gt; of the model document&amp;nbsp; which is an xml .operate the xml (add aspect definition under&amp;nbsp;&lt;FONT&gt;aspects&lt;/FONT&gt; sub elements)&amp;nbsp; and save the xml content back to the model node.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 08:24:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-new-custom-properties-in-custom-model/m-p/112370#M31328</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-09-01T08:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Add New Custom Properties in Custom Model</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/add-new-custom-properties-in-custom-model/m-p/112371#M31329</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76998"&gt;@goranche89&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great that you accepted the solution - thanks!&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 13:14:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/add-new-custom-properties-in-custom-model/m-p/112371#M31329</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-09-02T13:14:32Z</dc:date>
    </item>
  </channel>
</rss>

