<?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: Additional Service for web map printing that creates a file with specific name in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6312#M580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, FC Basson.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We already have a geoprocessing service, we can see the parameter "Output_File" in the ArcGIS REST Services Directory page for the print service.&lt;/P&gt;&lt;P&gt;How to use it? Do we use "extraParameters"?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/printparameters-amd.html#extraparameters" title="https://developers.arcgis.com/javascript/3/jsapi/printparameters-amd.html#extraparameters"&gt;PrintParameters | API Reference | ArcGIS API for JavaScript 3.19&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried to use it like&lt;/P&gt;&lt;P&gt;params.extraParameters = [{ "Output_File": "Test123.pdf"}];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2017 21:40:08 GMT</pubDate>
    <dc:creator>PitersonPaulgek</dc:creator>
    <dc:date>2017-02-21T21:40:08Z</dc:date>
    <item>
      <title>Additional Service for web map printing that creates a file with specific name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6306#M574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We try to find way to create a file with specific name ("Test123.pdf") using additional service for printing on ArcGIS Server.&lt;/P&gt;&lt;P&gt;ArcGIS Server 10.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 04:22:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6306#M574</guid>
      <dc:creator>PitersonPaulgek</dc:creator>
      <dc:date>2017-02-21T04:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Additional Service for web map printing that creates a file with specific name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6307#M575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want the file to be stored with that filename in the service directory or should the file be named like that for download for the user?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 06:43:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6307#M575</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2017-02-21T06:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Additional Service for web map printing that creates a file with specific name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6308#M576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response, FC Basson.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We want the service saves the file on the server in directory &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\arcgisserver\directories\arcgisjobs\OUR_EXPORT_SERVICENAME\Test123.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently,&lt;/P&gt;&lt;P&gt;it saves in random directory with random name:&lt;/P&gt;&lt;P&gt;C:\arcgisserver\directories\arcgisjobs\OUR_EXPORT_SERVICENAME\jfcaa84301209481aaacf4b7aba400719\scratch\random_name.pdf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 06:59:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6308#M576</guid>
      <dc:creator>PitersonPaulgek</dc:creator>
      <dc:date>2017-02-21T06:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Additional Service for web map printing that creates a file with specific name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6309#M577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is definitely possible if you generate the map with arcpy e.g.&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ExportWebMap_server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;webmapjsonstring&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"TEST.PDF"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"PDF"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"MAP_ONLY"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So maybe you can create your own ExportWebMap GP tool from a script and specify the output filename as an input parameter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 07:18:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6309#M577</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2017-02-21T07:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Additional Service for web map printing that creates a file with specific name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6310#M578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we call this script&amp;nbsp; from Javascript on the client?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 07:43:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6310#M578</guid>
      <dc:creator>PitersonPaulgek</dc:creator>
      <dc:date>2017-02-21T07:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: Additional Service for web map printing that creates a file with specific name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6311#M579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, like a normal geoprocessing service. &amp;nbsp;You must obviously create and publish the script tool and you can set all the map options on the client side and just pass them as input parameters for the GP service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 07:48:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6311#M579</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2017-02-21T07:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Additional Service for web map printing that creates a file with specific name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6312#M580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, FC Basson.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We already have a geoprocessing service, we can see the parameter "Output_File" in the ArcGIS REST Services Directory page for the print service.&lt;/P&gt;&lt;P&gt;How to use it? Do we use "extraParameters"?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/printparameters-amd.html#extraparameters" title="https://developers.arcgis.com/javascript/3/jsapi/printparameters-amd.html#extraparameters"&gt;PrintParameters | API Reference | ArcGIS API for JavaScript 3.19&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried to use it like&lt;/P&gt;&lt;P&gt;params.extraParameters = [{ "Output_File": "Test123.pdf"}];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 21:40:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6312#M580</guid>
      <dc:creator>PitersonPaulgek</dc:creator>
      <dc:date>2017-02-21T21:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Additional Service for web map printing that creates a file with specific name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6313#M581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that parameter option is available. &amp;nbsp;See the &lt;A href="http://resources.arcgis.com/en/help/rest/apiref/exportwebmap_spec.html" rel="nofollow noopener noreferrer" target="_blank"&gt;Export Web Map specifications&lt;/A&gt;&amp;nbsp;and use the object model provided to add extra parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must admit, I played around with the export web map script and I could not get the GP service to save the file in the GP service's output folder, but it worked great if you specify another "managed" output folder on the server. E.g:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"\\gis-server\print\outputs"&lt;/SPAN&gt;

json &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameter&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterAsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ExportWebMap_server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;json&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"PDF"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MAP_ONLY"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:15:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6313#M581</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2021-12-10T20:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Additional Service for web map printing that creates a file with specific name</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6314#M582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, FC Basson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 23:38:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/additional-service-for-web-map-printing-that/m-p/6314#M582</guid>
      <dc:creator>PitersonPaulgek</dc:creator>
      <dc:date>2017-02-22T23:38:32Z</dc:date>
    </item>
  </channel>
</rss>

