<?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 Generate PDF Report Automation Code in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/generate-pdf-report-automation-code/m-p/1189867#M43632</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am preparing to build either an API Webhook series or code another automation workflow to generate reports via Survey123 and email them. Is there documentation or a method to tell Survey123 to automatically select the UID, URL, or GUID of a survey just performed or edited and have it initiate the process to generate a PDF report? Emailing is simple enough but the Survey123 actions are what I do not know.&lt;/P&gt;&lt;P&gt;Setting or having webhooks watch for new or edited features is simple but with new feature or edited features, I am trying to find out how to then tell survey123 to make a PDF report of what was just done and either store or send it elsewhere. Much like Integromat/Make does with URL and connector lines, however without seeing the backend I'm not sure how I would do this.&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2022 14:22:07 GMT</pubDate>
    <dc:creator>GIS_Fox</dc:creator>
    <dc:date>2022-07-06T14:22:07Z</dc:date>
    <item>
      <title>Generate PDF Report Automation Code</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/generate-pdf-report-automation-code/m-p/1189867#M43632</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am preparing to build either an API Webhook series or code another automation workflow to generate reports via Survey123 and email them. Is there documentation or a method to tell Survey123 to automatically select the UID, URL, or GUID of a survey just performed or edited and have it initiate the process to generate a PDF report? Emailing is simple enough but the Survey123 actions are what I do not know.&lt;/P&gt;&lt;P&gt;Setting or having webhooks watch for new or edited features is simple but with new feature or edited features, I am trying to find out how to then tell survey123 to make a PDF report of what was just done and either store or send it elsewhere. Much like Integromat/Make does with URL and connector lines, however without seeing the backend I'm not sure how I would do this.&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 14:22:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/generate-pdf-report-automation-code/m-p/1189867#M43632</guid>
      <dc:creator>GIS_Fox</dc:creator>
      <dc:date>2022-07-06T14:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Generate PDF Report Automation Code</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/generate-pdf-report-automation-code/m-p/1190171#M43646</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/122659"&gt;@GIS_Fox&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have our &lt;A href="https://developers.arcgis.com/survey123/api-reference/rest/report/#create-report" target="_self"&gt;Report REST API&lt;/A&gt; documented in our developer documentation. What you would need to do is send a createReport/submitJob POST request with the required parameters. The createReport task is going to return a Job ID. You would then need to periodically (every 15s or so) send a /jobs/&amp;lt;jobId&amp;gt; GET request based on the jobStatus. If it's still executing reissue the request, if it completed you can then extract the report(s) from the resultFiles property located in the resultInfo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a little graphic that demonstrates the workflow:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ZacharySutherby_0-1657146690421.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45397i7939E2CED97ABC74/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ZacharySutherby_0-1657146690421.png" alt="ZacharySutherby_0-1657146690421.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As a side note (I'm not sure how you are planning on implementing your workflow) we have a number of methods available in the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.apps.survey123.html" target="_self"&gt;ArcGIS API for Python&lt;/A&gt; that can be used to automate the generation of Survey123 Reports. Please see this sample &lt;A href="https://developers.arcgis.com/survey123/guide/create-reports-using-the-arcgis-api-for-python/" target="_self"&gt;Jupyter Notebook&lt;/A&gt; for reference.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 22:31:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/generate-pdf-report-automation-code/m-p/1190171#M43646</guid>
      <dc:creator>ZacharySutherby</dc:creator>
      <dc:date>2022-07-06T22:31:38Z</dc:date>
    </item>
  </channel>
</rss>

