<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to create DCI using NetXMS Java API version 2.1-M3]]></title><description><![CDATA[<p dir="auto">Prior 2.1-M3, It was possible to create Data Collection Item in nxshell like this:</p>
<pre><code>template_id = session.findObjectByName("Some_template").getObjectId()
config = session.openDataCollectionConfiguration(template_id)
DCIid = config.createItem()
DCI = template_config.findItem(DCIid)
</code></pre>
<p dir="auto">Now, <strong>createItem</strong> method requires <strong>DataCollectionObject</strong> instance. Moreover, <strong>DataCollectionObject</strong> constructor is protected and requires an <strong>id</strong> parameter.<br />
How can I create DCI using this method or what is the right way to create DCI in template using nxshell?</p>
]]></description><link>https://forum.netxms.org/topic/5057/how-to-create-dci-using-netxms-java-api-version-2.1-m3</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:08:33 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5057.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 15 May 2017 08:32:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to create DCI using NetXMS Java API version 2.1-M3 on Tue, 16 May 2017 09:50:55 GMT]]></title><description><![CDATA[<p dir="auto">Thank you, Victor!</p>
]]></description><link>https://forum.netxms.org/post/22343</link><guid isPermaLink="true">https://forum.netxms.org/post/22343</guid><dc:creator><![CDATA[cyril]]></dc:creator><pubDate>Tue, 16 May 2017 09:50:55 GMT</pubDate></item><item><title><![CDATA[Reply to How to create DCI using NetXMS Java API version 2.1-M3 on Mon, 15 May 2017 19:22:14 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">DataCollectionObject is a base class for DataCollectionItem and DataCollectionTable. You should create new DataCollectionItem object and pass it to createItem. Pass 0 is ID for new DCI.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/22320</link><guid isPermaLink="true">https://forum.netxms.org/post/22320</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Mon, 15 May 2017 19:22:14 GMT</pubDate></item></channel></rss>