<?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 URL link to Attachment Photo when the FeatureLayer is not Shared with Everyone in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/url-link-to-attachment-photo-when-the-featurelayer/m-p/850472#M23272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the workflow I am looking to accomplish:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Responder fills out a Survey123 Form.&amp;nbsp;Responder takes a picture of the current situation and uploads on submission&lt;/LI&gt;&lt;LI&gt;A calculated&amp;nbsp;field&amp;nbsp;would copy the URL of the attachment (Basically like&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/docs/DOC-7445-show-attachments-in-web-map-popup"&gt;this&lt;/A&gt;)&lt;/LI&gt;&lt;LI&gt;The Survey123 FeatureLayer is ingested into our custom COP (Common Operating Picture) for situational awareness/analysis. We're &lt;STRONG&gt;not&lt;/STRONG&gt; consuming Survey123's data on Arcgis Online/Portal map&lt;/LI&gt;&lt;LI&gt;User can click the pop-up window&amp;nbsp;in our COP and open the hyperlink&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue: FeatureLayer Permissions. We don't care about everyone having view access to the layer. We do care about everyone having edit rights. If we restrict the Feature Layer Permissions in Portal to a specific Group, the URL hyperlink, generates with ?token=zzz.&amp;nbsp;We want the FeatureLayer image urls to not require a token, which the only way I can see to fix that is sharing it with everyone, which implicitly gives everyone edit rights.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to configure a FeatureLayer to be globally viewable, but&amp;nbsp;editable only to those who are members of a group in portal?&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Is there a way to configure Survey123 to upload/host images somewhere else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2019 17:29:09 GMT</pubDate>
    <dc:creator>JohnEvans6</dc:creator>
    <dc:date>2019-04-25T17:29:09Z</dc:date>
    <item>
      <title>URL link to Attachment Photo when the FeatureLayer is not Shared with Everyone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/url-link-to-attachment-photo-when-the-featurelayer/m-p/850472#M23272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the workflow I am looking to accomplish:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Responder fills out a Survey123 Form.&amp;nbsp;Responder takes a picture of the current situation and uploads on submission&lt;/LI&gt;&lt;LI&gt;A calculated&amp;nbsp;field&amp;nbsp;would copy the URL of the attachment (Basically like&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/docs/DOC-7445-show-attachments-in-web-map-popup"&gt;this&lt;/A&gt;)&lt;/LI&gt;&lt;LI&gt;The Survey123 FeatureLayer is ingested into our custom COP (Common Operating Picture) for situational awareness/analysis. We're &lt;STRONG&gt;not&lt;/STRONG&gt; consuming Survey123's data on Arcgis Online/Portal map&lt;/LI&gt;&lt;LI&gt;User can click the pop-up window&amp;nbsp;in our COP and open the hyperlink&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue: FeatureLayer Permissions. We don't care about everyone having view access to the layer. We do care about everyone having edit rights. If we restrict the Feature Layer Permissions in Portal to a specific Group, the URL hyperlink, generates with ?token=zzz.&amp;nbsp;We want the FeatureLayer image urls to not require a token, which the only way I can see to fix that is sharing it with everyone, which implicitly gives everyone edit rights.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to configure a FeatureLayer to be globally viewable, but&amp;nbsp;editable only to those who are members of a group in portal?&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Is there a way to configure Survey123 to upload/host images somewhere else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 17:29:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/url-link-to-attachment-photo-when-the-featurelayer/m-p/850472#M23272</guid>
      <dc:creator>JohnEvans6</dc:creator>
      <dc:date>2019-04-25T17:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: URL link to Attachment Photo when the FeatureLayer is not Shared with Everyone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/url-link-to-attachment-photo-when-the-featurelayer/m-p/850473#M23273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like you might want to take advantage of feature service views to provide access, assuming you are using Enterprise 10.6 or later (&lt;A class="link-titled" href="https://enterprise.arcgis.com/en/portal/latest/use/create-hosted-views.htm" title="https://enterprise.arcgis.com/en/portal/latest/use/create-hosted-views.htm"&gt;Create hosted feature layer views—Portal for ArcGIS | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;). &amp;nbsp;One way to do this is to share the survey for viewing in the Survey123 website - that will create a feature service view that is read only, but points to the same tables as the editing. &amp;nbsp;You could then share that to everyone and base the link off the service URL of that view; this would allow you to keep the editing feature service limited to the editor group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 21:19:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/url-link-to-attachment-photo-when-the-featurelayer/m-p/850473#M23273</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-04-25T21:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: URL link to Attachment Photo when the FeatureLayer is not Shared with Everyone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/url-link-to-attachment-photo-when-the-featurelayer/m-p/850474#M23274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had messed with views, but didn't realize you could create the view directly from Survey123. That was a super helpful, Thanks! I think I'm incredibly close to getting it set up to do what we need.&amp;nbsp;I'll spell out what I'm doing in the off-chance it helps someone else out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Survey123 Data is updated by a Field Operator and an image is attached. It's added to the Surveys Submitter Feature Layer&lt;/P&gt;&lt;P&gt;2. Under Survey123 -&amp;gt; Collaborate -&amp;gt; Viewer, set viewer to everyone and Save. This builds a new stakeholder Feature Layer hosted view&lt;/P&gt;&lt;P&gt;3. The fieldworker view (Collaborate -&amp;gt; Submitter in Survey123), which is editable to my organization only, will have an additional field and field calculator script that generates a URL that references the attachments in the stakeholder (read only shared with everyone) view . Script would do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;oid = !ObjectID!

def MakeURL(oid) :
 userImg= 'https://services1.arcgis.com/xxx/ArcGIS/rest/services/survey123_xx_stakeholder/FeatureServer/0/'+str(oid)+'/attachments/'+str(oid)
 return userIMG

&lt;/PRE&gt;&lt;P&gt;The end result should be a link to an attachment that was previously restricted, requiring token, and consumers can make no edits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the direction!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 17:00:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/url-link-to-attachment-photo-when-the-featurelayer/m-p/850474#M23274</guid>
      <dc:creator>JohnEvans6</dc:creator>
      <dc:date>2021-12-12T17:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: URL link to Attachment Photo when the FeatureLayer is not Shared with Everyone</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/url-link-to-attachment-photo-when-the-featurelayer/m-p/850475#M23275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved this. Ended up being very straightforward. Update script at the end is not production ready, but worked for the proof of concept I had to demo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Created a&amp;nbsp;Survey in Survey123. I set Submitter settings to a specific organization group. I used the desktop app to create a read only field to hold the url link within the survey&lt;/LI&gt;&lt;LI&gt;In my organization (not&amp;nbsp;through survey, though I'm sure it would work the same), I created view only layer and shared it with everyone.&lt;/LI&gt;&lt;LI&gt;Get the service&amp;nbsp;URL of the shared with everyone view&lt;/LI&gt;&lt;LI&gt;A script runs to update the img_url field of the survey hosted feature layer (not view)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; line-height: 19px; font-family: Fira Code, Consolas, 'Courier New', monospace; font-size: 14px; font-weight: normal; white-space: pre; background-color: #1e1e1e;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; arcpy&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; arcgis &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;GIS&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; pandas &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; pd&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; time&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; copy &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; deepcopy&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #608b4e;"&gt;# Connect to FAASYSOPS Portal&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;oursite &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; GIS(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"url"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"user"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;password&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #608b4e;"&gt;#Update the image field&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;def&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;UpdateImageField&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;() :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;# init some stuff&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; features_to_be_updated &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; []&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_service_dataframe &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;''&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;try&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;# Get Field Service Layer (not the view layer)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_service &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; oursite .content.get(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'survey123hostedfeaturelayerid'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_service_layer &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; (field_service.layers)[&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;# Build Data Frame&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_service_dataframe &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; pd.DataFrame.spatial.from_layer(field_service_layer)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;# Iterate through dataframe.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; row &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; field_service_dataframe.iterrows() :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; (row[&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;][&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'imageurl'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;None&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;or&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; row[&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;][&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'imageurl'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;''&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;) :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&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; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;# Get ObjectID and set image URL&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&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; objID &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;str&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(row[&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;][&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'objectid'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&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; img_url &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"urloftheview_View/FeatureServer/0/&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;{0}&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;/attachment/&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;{0}&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.format(objID)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&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; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;# init feature and get feature from service&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&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; feature_to_update &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;''&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&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; feature &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; field_service_layer.query(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'OBJECTID = '&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; objID)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&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; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;# Make a deep copy so we keep our attributes/structure and update data&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&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; feature_to_update &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; deepcopy(feature.features[&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&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; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;# Make Field Update&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&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; feature_to_update.attributes[&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'imageurl'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;] &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; img_url&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&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; features_to_be_updated.append(feature_to_update)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;len&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(features_to_be_updated) &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;!=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; field_service_layer.edit_features(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;updates&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; features_to_be_updated)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #c586c0;"&gt;except&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'Error making update. Do some real error catching or something.'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;while&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UpdateImageField()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; time.sleep(&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;15&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2019 16:03:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/url-link-to-attachment-photo-when-the-featurelayer/m-p/850475#M23275</guid>
      <dc:creator>JohnEvans6</dc:creator>
      <dc:date>2019-04-29T16:03:04Z</dc:date>
    </item>
  </channel>
</rss>

