<?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 ArcGIS Server - output send message in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-output-send-message/m-p/54892#M2023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am running a geoprocessing script from JavaScript. The script s a python script and does several things, some are not gis related.&amp;nbsp; If I run into an error, I'd like to send the error message back to the user - or even send a message if it was successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, in ArcCatalog, Toolbox - tool properties -&amp;gt; Parameters.&lt;/P&gt;&lt;P&gt;I have set a parameter of "result" as a string, Type = Derived, Direction = Output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I do to make the resulting message come back to this&amp;nbsp; service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made a very simple python script as an example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def helloworld(a, b):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; z =&amp;nbsp; "Hello " + a + " and " + b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; print "Inside: " + z&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; return z&lt;/P&gt;&lt;P&gt;import mod_hello&lt;/P&gt;&lt;P&gt;z = mod_hello.helloworld("Tom", "Carol Ann")&lt;/P&gt;&lt;P&gt;print "outside: " + z&lt;/P&gt;&lt;P&gt;result = z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get the geoprocessing service to see "Hello Tom and Carol Ann" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Oct 2014 16:18:13 GMT</pubDate>
    <dc:creator>DorothyMortenson</dc:creator>
    <dc:date>2014-10-13T16:18:13Z</dc:date>
    <item>
      <title>ArcGIS Server - output send message</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-output-send-message/m-p/54892#M2023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am running a geoprocessing script from JavaScript. The script s a python script and does several things, some are not gis related.&amp;nbsp; If I run into an error, I'd like to send the error message back to the user - or even send a message if it was successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, in ArcCatalog, Toolbox - tool properties -&amp;gt; Parameters.&lt;/P&gt;&lt;P&gt;I have set a parameter of "result" as a string, Type = Derived, Direction = Output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I do to make the resulting message come back to this&amp;nbsp; service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made a very simple python script as an example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def helloworld(a, b):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; z =&amp;nbsp; "Hello " + a + " and " + b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; print "Inside: " + z&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; return z&lt;/P&gt;&lt;P&gt;import mod_hello&lt;/P&gt;&lt;P&gt;z = mod_hello.helloworld("Tom", "Carol Ann")&lt;/P&gt;&lt;P&gt;print "outside: " + z&lt;/P&gt;&lt;P&gt;result = z&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get the geoprocessing service to see "Hello Tom and Carol Ann" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 16:18:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-output-send-message/m-p/54892#M2023</guid>
      <dc:creator>DorothyMortenson</dc:creator>
      <dc:date>2014-10-13T16:18:13Z</dc:date>
    </item>
  </channel>
</rss>

