<?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: Query Attachment URL in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/query-attachment-url/m-p/1012301#M31700</link>
    <description>&lt;P&gt;There is a returnUrl parameter which returns the attachment URL with the results: &lt;A href="https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm#GUID-5D234BC8-99C3-4792-B903-87FAA3CA3FA6" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm#GUID-5D234BC8-99C3-4792-B903-87FAA3CA3FA6&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You still have to append a token if it's a secured service though, otherwise the link won't open.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Dec 2020 17:01:28 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-12-24T17:01:28Z</dc:date>
    <item>
      <title>Query Attachment URL</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/query-attachment-url/m-p/1012289#M31699</link>
      <description>&lt;P&gt;Hello I’ve seen this question asked but never seen a solution... but: is&amp;nbsp;&lt;SPAN&gt;there a way to query the attachment service URL?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Example:&amp;nbsp;&lt;A href="https://services1.arcgis.com/7LNyA2emK1umjjot/ArcGIS/rest/services/Parks_and_Trails_Lines_Collector/FeatureServer/3/queryAttachments" target="_blank" rel="noopener"&gt;&lt;SPAN class="s2"&gt;https://services1.arcgis.com/AGOInstanceName/ArcGIS/rest/services/FeatureName/FeatureServer/3/queryA...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;I’d like to query the whole attachment table related to a feature service so an application I’m creating can use the URL’s to pull up the attachments. &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;I can query and capture the data for the service but I can't capture the attachments that are related without iterating through all the object ids.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 15:18:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/query-attachment-url/m-p/1012289#M31699</guid>
      <dc:creator>DeepUppal</dc:creator>
      <dc:date>2020-12-24T15:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Query Attachment URL</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/query-attachment-url/m-p/1012301#M31700</link>
      <description>&lt;P&gt;There is a returnUrl parameter which returns the attachment URL with the results: &lt;A href="https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm#GUID-5D234BC8-99C3-4792-B903-87FAA3CA3FA6" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm#GUID-5D234BC8-99C3-4792-B903-87FAA3CA3FA6&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You still have to append a token if it's a secured service though, otherwise the link won't open.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 17:01:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/query-attachment-url/m-p/1012301#M31700</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-12-24T17:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Query Attachment URL</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/query-attachment-url/m-p/1012324#M31702</link>
      <description>&lt;P&gt;Thanks Michael. But I’ve tried the returnurl parameter. In fact, here is what I tried exactly:&lt;/P&gt;&lt;P&gt;&lt;A href="https://services5.arcgis.com/v3DMn7xrRivFMRiU/ArcGIS/rest/services/survey123_86170d7dd0954ceb838466fd88944112_fieldworker/FeatureServer/0/query?where=1%3D1&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;returnUrl=true&amp;amp;f=geojson" target="_blank"&gt;https://services5.arcgis.com/v3DMn7xrRivFMRiU/ArcGIS/rest/services/survey123_86170d7dd0954ceb838466fd88944112_fieldworker/FeatureServer/0/query?where=1%3D1&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;returnUrl=true&amp;amp;f=geojson&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;as you can see, I’ve included the returnurl parameter... unfortunately I only get the other data but not the url.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas..?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 22:37:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/query-attachment-url/m-p/1012324#M31702</guid>
      <dc:creator>DeepUppal</dc:creator>
      <dc:date>2020-12-24T22:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query Attachment URL</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/query-attachment-url/m-p/1012325#M31703</link>
      <description>&lt;P&gt;Here is the relavant portion of the query:&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;A href="https://services5.arcgis.com/v3DMn7xrRivFMRiU/ArcGIS/rest/services/survey123_86170d7dd0954ceb838466fd88944112_fieldworker/FeatureServer/0/query?returnUrl=true&amp;amp;f=geojson" target="_blank" rel="noopener"&gt;/FeatureServer/0/query?returnUrl=true&amp;amp;f=geojson&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 22:45:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/query-attachment-url/m-p/1012325#M31703</guid>
      <dc:creator>DeepUppal</dc:creator>
      <dc:date>2020-12-24T22:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Query Attachment URL</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/query-attachment-url/m-p/1012399#M31705</link>
      <description>&lt;P&gt;You have to use the queryAttachments endpoint (links in comments above use the query endpoint) which is layer specific (i.e. you must specify FeatureLayer/&amp;lt;layer_number&amp;gt;/queryAttachments). So something like this works (HTML version): &lt;A href="https://services5.arcgis.com/v3DMn7xrRivFMRiU/ArcGIS/rest/services/survey123_86170d7dd0954ceb838466fd88944112_fieldworker/FeatureServer/0/queryAttachments?objectIds=&amp;amp;globalIds=&amp;amp;definitionExpression=1%3D1&amp;amp;attachmentsDefinitionExpression=&amp;amp;attachmentTypes=&amp;amp;size=&amp;amp;keywords=&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;returnUrl=true&amp;amp;f=html&amp;amp;token=" target="_blank"&gt;https://services5.arcgis.com/v3DMn7xrRivFMRiU/ArcGIS/rest/services/survey123_86170d7dd0954ceb838466fd88944112_fieldworker/FeatureServer/0/queryAttachments?objectIds=&amp;amp;globalIds=&amp;amp;definitionExpression=1%3D1&amp;amp;attachmentsDefinitionExpression=&amp;amp;attachmentTypes=&amp;amp;size=&amp;amp;keywords=&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;returnUrl=true&amp;amp;f=html&amp;amp;token=&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or this for pjson: &lt;A href="https://services5.arcgis.com/v3DMn7xrRivFMRiU/ArcGIS/rest/services/survey123_86170d7dd0954ceb838466fd88944112_fieldworker/FeatureServer/0/queryAttachments?objectIds=&amp;amp;globalIds=&amp;amp;definitionExpression=1%3D1&amp;amp;attachmentsDefinitionExpression=&amp;amp;attachmentTypes=&amp;amp;size=&amp;amp;keywords=&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;returnUrl=true&amp;amp;f=pjson&amp;amp;token=" target="_self"&gt;https://services5.arcgis.com/v3DMn7xrRivFMRiU/ArcGIS/rest/services/survey123_86170d7dd0954ceb838466fd88944112_fieldworker/FeatureServer/0/queryAttachments?objectIds=&amp;amp;globalIds=&amp;amp;definitionExpression=1%3D1&amp;amp;attachmentsDefinitionExpression=&amp;amp;attachmentTypes=&amp;amp;size=&amp;amp;keywords=&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;returnUrl=true&amp;amp;f=pjson&amp;amp;token=&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2020 23:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/query-attachment-url/m-p/1012399#M31705</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-12-27T23:21:16Z</dc:date>
    </item>
  </channel>
</rss>

