Liferay 7.2 - What is classNameId in DDMStructureLocalServiceUtilLiferay 7.2 - What is classNameId in DDMStructureLocalServiceUtilhttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1172032972024-03-28T19:58:06Z2024-03-28T19:58:06ZRE: Liferay 7.2 - What is classNameId in DDMStructureLocalServiceUtilFabio Carvalhohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1172061352019-09-18T17:41:06Z2019-09-18T17:41:06Z<html><head></head><body>Thanks Mohammed,<br><br>I was trying to add a structure to DDMRecordSet, so I ended up with:<br><pre><code>ClassNameLocalServiceUtil.getClassNameId(DDLRecordSet.class)</code></pre></body></html>Fabio Carvalho2019-09-18T17:41:06ZRE: Liferay 7.2 - What is classNameId in DDMStructureLocalServiceUtilMohammed Yasinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1172057672019-09-18T17:10:53Z2019-09-18T17:10:53Z<html><head></head><body>Hi, <br>You can pass classnameId of those class for which you want to add ddmstructure ,<br>Ex<br>If you want to add DDMStructure for JournalAritcle then you will pass classnameId of Journal article<br>If you want to add DDMStructure for DDMFormInstance then you can pass classnameId of DDMFormInstance<br>Now to get classnameId you can either use <br><pre><code>&nbsp; ClassNameLocalServiceUtil.getClassNameId(DDMFormInstance.class)&nbsp; &nbsp; or&nbsp; &nbsp; &nbsp;
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;PortalUtil.getClassNameId(DDMFormInstance.class);</code></pre>You can refer <a href="https://proliferay.com/concept-of-classpk-in-liferay/">this </a>for more understanding</body></html>Mohammed Yasin2019-09-18T17:10:53ZLiferay 7.2 - What is classNameId in DDMStructureLocalServiceUtilFabio Carvalhohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1172032962019-09-18T15:58:14Z2019-09-18T15:58:14Z<html><head></head><body>Hi,<br><br>I am trying to add DDMStructures programmatically. For this I am using the following method:<br><pre><code>DDMStructureLocalServiceUtil.addStructure(
&nbsp; &nbsp; theme.getUserId(),&nbsp;
&nbsp; &nbsp; theme.getScopeGroupId(),&nbsp;
&nbsp;&nbsp; &nbsp;DDMStructureConstants.DEFAULT_PARENT_STRUCTURE_ID,&nbsp;
&nbsp; &nbsp; classNameId, //What is this?
&nbsp; &nbsp; null,&nbsp;
&nbsp; &nbsp; nameMap,&nbsp;
&nbsp; &nbsp; descriptionMap,&nbsp;
&nbsp; &nbsp; ddmForm,&nbsp;
&nbsp; &nbsp; ddmFormLayout,&nbsp;
&nbsp; &nbsp; StorageType.JSON.getValue(),&nbsp;
&nbsp; &nbsp; DDMStructureConstants.TYPE_DEFAULT,
&nbsp; &nbsp; context
);</code></pre><br>But I h