<?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>idea Allow Survey123 Webhook to POST form values for connecting a GP Service in ArcGIS Survey123 Ideas</title>
    <link>https://community.esri.com/t5/arcgis-survey123-ideas/allow-survey123-webhook-to-post-form-values-for/idi-p/1340616</link>
    <description>&lt;P&gt;A Geoprocessing Service is an ideal candidate for a webhook handler since ArcGIS server implements the necessary web server endpoint and the scripting can easily access ArcGIS data and functions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However right now a GP service requires structured form values for each parameter in the POST body and won't pass thru the JSON body from the current webhook.&amp;nbsp; &amp;nbsp;I've tried a few options and the webhook fires the GP Service without issue ie:&lt;/P&gt;&lt;P&gt;&lt;A href="https://myserver.com" target="_blank"&gt;https://myserver.com/arcgis/rest/S123Handlers/GPServer/MyWebHookScript/execute&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but the JSON data is never passed thru.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A simple option 'POST as form values'&amp;nbsp; and either:&lt;/P&gt;&lt;P&gt;1. POST the entire json to a single named parameter (eg 'eventData')&lt;/P&gt;&lt;P&gt;2. POST each selected event data to it's own named parameter: SurveyInfo, UserInfo, etc..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this was an option, then the GP script can easily be created to match the correct name(s) with string/text type and then parsed in the script.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Oct 2023 18:31:53 GMT</pubDate>
    <dc:creator>FredSpataro</dc:creator>
    <dc:date>2023-10-23T18:31:53Z</dc:date>
    <item>
      <title>Allow Survey123 Webhook to POST form values for connecting a GP Service</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/allow-survey123-webhook-to-post-form-values-for/idi-p/1340616</link>
      <description>&lt;P&gt;A Geoprocessing Service is an ideal candidate for a webhook handler since ArcGIS server implements the necessary web server endpoint and the scripting can easily access ArcGIS data and functions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However right now a GP service requires structured form values for each parameter in the POST body and won't pass thru the JSON body from the current webhook.&amp;nbsp; &amp;nbsp;I've tried a few options and the webhook fires the GP Service without issue ie:&lt;/P&gt;&lt;P&gt;&lt;A href="https://myserver.com" target="_blank"&gt;https://myserver.com/arcgis/rest/S123Handlers/GPServer/MyWebHookScript/execute&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but the JSON data is never passed thru.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A simple option 'POST as form values'&amp;nbsp; and either:&lt;/P&gt;&lt;P&gt;1. POST the entire json to a single named parameter (eg 'eventData')&lt;/P&gt;&lt;P&gt;2. POST each selected event data to it's own named parameter: SurveyInfo, UserInfo, etc..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this was an option, then the GP script can easily be created to match the correct name(s) with string/text type and then parsed in the script.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 18:31:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/allow-survey123-webhook-to-post-form-values-for/idi-p/1340616</guid>
      <dc:creator>FredSpataro</dc:creator>
      <dc:date>2023-10-23T18:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Allow Survey123 Webhook to POST form values for connecting a GP Service - Status changed to: Closed</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/allow-survey123-webhook-to-post-form-values-for/idc-p/1349974#M2713</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/11168"&gt;@FredSpataro&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;We have previously researched this with the geoprocessing service team and determined this is more of an issue of a GP Service being able to accept the data in the format a webhook provides.&amp;nbsp; Webhooks by design generally emit only objects that are then processed by the receiver.&amp;nbsp; The same issue applies for feature service and portal item webhooks, for example.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 21:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/allow-survey123-webhook-to-post-form-values-for/idc-p/1349974#M2713</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2023-11-15T21:21:43Z</dc:date>
    </item>
  </channel>
</rss>

