<?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 Working with images from a webhook in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/working-with-images-from-a-webhook/m-p/880245#M30423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the best way to see if there are images attached to a survey and to determine which question they belong to? Below is an example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a test survey with 3 fields: &lt;STRONG&gt;name (name)&lt;/STRONG&gt;, &lt;STRONG&gt;before photo (photo)&lt;/STRONG&gt; and &lt;STRONG&gt;after photo (photoafter)&lt;/STRONG&gt;. I submitted the form and received the attached webhook payload. In the payload I can see the&amp;nbsp;&lt;STRONG&gt;name&lt;/STRONG&gt; I entered in, but nothing about the attached images.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see I can make a call to:&amp;nbsp;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;[serviceUrl]&lt;/SPAN&gt;/&lt;SPAN style="color: #0000ff;"&gt;[addResults id]&lt;/SPAN&gt;/&lt;SPAN style="color: #0000ff;"&gt;[uniqueId]&lt;/SPAN&gt;/attachments?f=pjson&amp;amp;token=&lt;SPAN style="color: #0000ff;"&gt;[token]&lt;/SPAN&gt;&lt;/STRONG&gt; to get information about the attachments for that object (see below). In the json&amp;nbsp;object&amp;nbsp;&lt;STRONG&gt;keywords&lt;/STRONG&gt;&amp;nbsp;contains the name of the feature attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is using that endpoint and looking at &lt;STRONG&gt;keywords&lt;/STRONG&gt; the best way to 1) see if there are any attachments to the survey and 2) to determine which question they belong to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;{&amp;nbsp;&amp;nbsp; "attachmentInfos" : [&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id" : 5,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "globalId" : "3d424dd8-de4b-4273-a9ff-4c87010115e6",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "parentGlobalId" : "63d210e7-aecd-4386-9e1b-77c04071d030",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "broken-fire-hydrant-lying-sidewalk-46171082.jpg",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "contentType" : "image/jpeg",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "size" : 117352,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "keywords" : "photo"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id" : 6,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "globalId" : "2f119743-a9e5-4ae4-845b-2c30c690964f",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "parentGlobalId" : "63d210e7-aecd-4386-9e1b-77c04071d030",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "Downtown_Charlottesville_fire_hydrant.jpg",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "contentType" : "image/jpeg",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "size" : 24352,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "keywords" : "photoafter"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; ] }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2018 17:16:59 GMT</pubDate>
    <dc:creator>MattStayner</dc:creator>
    <dc:date>2018-08-13T17:16:59Z</dc:date>
    <item>
      <title>Working with images from a webhook</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/working-with-images-from-a-webhook/m-p/880245#M30423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the best way to see if there are images attached to a survey and to determine which question they belong to? Below is an example...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a test survey with 3 fields: &lt;STRONG&gt;name (name)&lt;/STRONG&gt;, &lt;STRONG&gt;before photo (photo)&lt;/STRONG&gt; and &lt;STRONG&gt;after photo (photoafter)&lt;/STRONG&gt;. I submitted the form and received the attached webhook payload. In the payload I can see the&amp;nbsp;&lt;STRONG&gt;name&lt;/STRONG&gt; I entered in, but nothing about the attached images.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see I can make a call to:&amp;nbsp;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;[serviceUrl]&lt;/SPAN&gt;/&lt;SPAN style="color: #0000ff;"&gt;[addResults id]&lt;/SPAN&gt;/&lt;SPAN style="color: #0000ff;"&gt;[uniqueId]&lt;/SPAN&gt;/attachments?f=pjson&amp;amp;token=&lt;SPAN style="color: #0000ff;"&gt;[token]&lt;/SPAN&gt;&lt;/STRONG&gt; to get information about the attachments for that object (see below). In the json&amp;nbsp;object&amp;nbsp;&lt;STRONG&gt;keywords&lt;/STRONG&gt;&amp;nbsp;contains the name of the feature attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is using that endpoint and looking at &lt;STRONG&gt;keywords&lt;/STRONG&gt; the best way to 1) see if there are any attachments to the survey and 2) to determine which question they belong to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;{&amp;nbsp;&amp;nbsp; "attachmentInfos" : [&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id" : 5,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "globalId" : "3d424dd8-de4b-4273-a9ff-4c87010115e6",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "parentGlobalId" : "63d210e7-aecd-4386-9e1b-77c04071d030",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "broken-fire-hydrant-lying-sidewalk-46171082.jpg",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "contentType" : "image/jpeg",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "size" : 117352,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "keywords" : "photo"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id" : 6,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "globalId" : "2f119743-a9e5-4ae4-845b-2c30c690964f",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "parentGlobalId" : "63d210e7-aecd-4386-9e1b-77c04071d030",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name" : "Downtown_Charlottesville_fire_hydrant.jpg",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "contentType" : "image/jpeg",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "size" : 24352,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "keywords" : "photoafter"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; ] }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 17:16:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/working-with-images-from-a-webhook/m-p/880245#M30423</guid>
      <dc:creator>MattStayner</dc:creator>
      <dc:date>2018-08-13T17:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Working with images from a webhook</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/working-with-images-from-a-webhook/m-p/880246#M30424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current pattern for accessing attachments is exactly as you describe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2018 22:00:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/working-with-images-from-a-webhook/m-p/880246#M30424</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-08-13T22:00:52Z</dc:date>
    </item>
  </channel>
</rss>

