<?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[Passing parameters to Script via Object Tools]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I was wondering if it's possible to pass parameters to a "Server Script" called via Object Tools (and reference them inside the actual script).<br />
I know I can pass an input field as %(inputfield), but while I can make this work with an Agent Command, I seem to have trouble with Server Script types. Has anyone done this and give me some pointers?</p>
<p dir="auto">Thanks</p>
]]></description><link>https://forum.netxms.org/topic/5105/passing-parameters-to-script-via-object-tools</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 15:21:56 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5105.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Jun 2017 12:59:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Passing parameters to Script via Object Tools on Mon, 12 Jun 2017 13:11:20 GMT]]></title><description><![CDATA[<p dir="auto">Well, ignore me. Looks like I hit a bit of caching that caused me grief here.<br />
It's still the same principle as with Agent Commands.</p>
<pre><code>&lt;script&gt; %(inputfield1) %(inputfield2) ...
</code></pre>
<p dir="auto">and reference as $1, $2, etc. inside the script.</p>
<p dir="auto">All works. <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.netxms.org/post/22494</link><guid isPermaLink="true">https://forum.netxms.org/post/22494</guid><dc:creator><![CDATA[Tursiops]]></dc:creator><pubDate>Mon, 12 Jun 2017 13:11:20 GMT</pubDate></item></channel></rss>