<?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 Callback with rupdateFeature return Layer unvailable in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/callback-with-rupdatefeature-return-layer/m-p/1328842#M7003</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i do the same thing that this post&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/help-with-survey123-link-from-field-maps-with/m-p/1307395/highlight/true#M50582" target="_self"&gt;About Callback&lt;/A&gt;&amp;nbsp;by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/244368"&gt;@DavidHood_USFS&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i work online with field maps and i use the featurelayer that i want update in the callback in my map.&lt;/P&gt;&lt;P&gt;i can call this featurelayer in browser with the same user that use for fieldmap&lt;/P&gt;&lt;P&gt;but each time after field maps is calling i have a field maps message : "the specified layer is unvalaible"&lt;/P&gt;&lt;P&gt;&amp;nbsp;i use field maps on Android 13 and Windows 11 : i can catch the&amp;nbsp;featurelayer url and it's running...&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;var callback = {&lt;BR /&gt;callback: url_callback + "&amp;amp;itemID=" + webmap_itemid + "&amp;amp;featureSourceURL=" + feature_url&lt;BR /&gt;}&lt;BR /&gt;var callbackid = "featureID=" + fglobalid;&lt;BR /&gt;var callbackattributes = "featureAttributes={'myfield':" + $feature["myfield"] + "'}";&lt;/P&gt;&lt;P&gt;return url_source + UrlEncode(params) + "&amp;amp;" + UrlEncode(callback) + "%26" + UrlEncode(callbackid) + "%26" + UrlEncode(callbackattributes);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;have you an idea to get the issue ?&lt;/P&gt;&lt;P&gt;thanks for you help&lt;/P&gt;&lt;P&gt;Rémy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Sep 2023 18:45:08 GMT</pubDate>
    <dc:creator>Rémy_Gourrat</dc:creator>
    <dc:date>2023-09-14T18:45:08Z</dc:date>
    <item>
      <title>Callback with rupdateFeature return Layer unvailable</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/callback-with-rupdatefeature-return-layer/m-p/1328842#M7003</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i do the same thing that this post&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/help-with-survey123-link-from-field-maps-with/m-p/1307395/highlight/true#M50582" target="_self"&gt;About Callback&lt;/A&gt;&amp;nbsp;by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/244368"&gt;@DavidHood_USFS&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i work online with field maps and i use the featurelayer that i want update in the callback in my map.&lt;/P&gt;&lt;P&gt;i can call this featurelayer in browser with the same user that use for fieldmap&lt;/P&gt;&lt;P&gt;but each time after field maps is calling i have a field maps message : "the specified layer is unvalaible"&lt;/P&gt;&lt;P&gt;&amp;nbsp;i use field maps on Android 13 and Windows 11 : i can catch the&amp;nbsp;featurelayer url and it's running...&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;var callback = {&lt;BR /&gt;callback: url_callback + "&amp;amp;itemID=" + webmap_itemid + "&amp;amp;featureSourceURL=" + feature_url&lt;BR /&gt;}&lt;BR /&gt;var callbackid = "featureID=" + fglobalid;&lt;BR /&gt;var callbackattributes = "featureAttributes={'myfield':" + $feature["myfield"] + "'}";&lt;/P&gt;&lt;P&gt;return url_source + UrlEncode(params) + "&amp;amp;" + UrlEncode(callback) + "%26" + UrlEncode(callbackid) + "%26" + UrlEncode(callbackattributes);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;have you an idea to get the issue ?&lt;/P&gt;&lt;P&gt;thanks for you help&lt;/P&gt;&lt;P&gt;Rémy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 18:45:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/callback-with-rupdatefeature-return-layer/m-p/1328842#M7003</guid>
      <dc:creator>Rémy_Gourrat</dc:creator>
      <dc:date>2023-09-14T18:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Callback with rupdateFeature return Layer unvailable</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/callback-with-rupdatefeature-return-layer/m-p/1328845#M7004</link>
      <description>&lt;P&gt;I am not seeing this part in there?&amp;nbsp;&amp;nbsp;?referenceContext=updateFeature&lt;/P&gt;&lt;P&gt;I also do not see a value for&amp;nbsp;&lt;SPAN&gt;feature_url does it end in something like /0 to tell field maps what layer?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Just a few guesses.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 19:09:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/callback-with-rupdatefeature-return-layer/m-p/1328845#M7004</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-09-14T19:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Callback with rupdateFeature return Layer unvailable</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/callback-with-rupdatefeature-return-layer/m-p/1328884#M7005</link>
      <description>&lt;P&gt;thanks for your interest,&lt;/P&gt;&lt;P&gt;my webmap and feature layer are in arcgis enterprise but i think it's not the issue.&lt;/P&gt;&lt;P&gt;my arcade code :​&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var related_records = FeatureSetByRelationshipName($feature, "myclassrelationame");
var cnt = Count(related_records);

var url_source = 'https://survey123.arcgis.app?';
var survey123_itemid = 'e09d39b6bff3484a846f4d65fbadcfcb';
var webmap_itemid = '21e4294ec9474cc2b28e7a108c155753';
var feature_url = "https://mydomain/arcgis/rest/services/z_test/myfeaturelayer/FeatureServer/3";
var url_callback = "https://fieldmaps.arcgis.app?referenceContext=updateFeature"
var fglobalid = $feature["globalid"];

if (cnt == 0) {
	var params = {
	  itemID: survey123_itemid,
	  action: 'collect',
	  'field:bati_local_guid': fglobalid,
	};
}
else {
	var params = {
	  itemID: survey123_itemid,
	  action: 'edit',
	  folder: 'inbox',	  
	  'q:where': 'local_guid=\'' + fglobalid + '\'',
	  update: 'true'
	};
}

var callback = {
    callback: url_callback + "&amp;amp;itemID=" + webmap_itemid + "&amp;amp;featureSourceURL=" + feature_url
}
var callbackid = "featureID=" + Mid(fglobalid,1,36);
var callbackattributes = "featureAttributes={'local_txt':'" + $feature["local_txt"] + "'}";

return url_source + UrlEncode(params) + "&amp;amp;" + UrlEncode(callback) + "%26" + UrlEncode(callbackid) + "%26" + UrlEncode(callbackattributes);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 20:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/callback-with-rupdatefeature-return-layer/m-p/1328884#M7005</guid>
      <dc:creator>Rémy_Gourrat</dc:creator>
      <dc:date>2023-09-14T20:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Callback with rupdateFeature return Layer unvailable</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/callback-with-rupdatefeature-return-layer/m-p/1328908#M7006</link>
      <description>&lt;P&gt;Crazy thing ! why ?!?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":tired_face:"&gt;😫&lt;/span&gt;&lt;/P&gt;&lt;P&gt;in this documentation &amp;nbsp;&lt;A href="https://doc.arcgis.com/en/field-maps/android/help/deploy-your-map.htm#GUID-1AA83E68-0E61-4C90-B0B3-50053D0DC87B&amp;nbsp;" target="_self"&gt;ArcGIS Field Maps : Deploy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this sample :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Initiate updating a feature&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;H5&gt;Note:&amp;nbsp;This does not apply to &lt;FONT face="arial black,avant garde"&gt;table&lt;/FONT&gt; rows.&lt;/H5&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;it's my case !! i tried to updateFeature in Field Maps on a table with callback just after validate in survey123...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2023 21:39:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/callback-with-rupdatefeature-return-layer/m-p/1328908#M7006</guid>
      <dc:creator>Rémy_Gourrat</dc:creator>
      <dc:date>2023-09-14T21:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Callback with rupdateFeature return Layer unvailable</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/callback-with-rupdatefeature-return-layer/m-p/1329060#M7017</link>
      <description>&lt;P&gt;ugg.&amp;nbsp; I have to say it is getting really old that Esri keeps treating tables differently!&amp;nbsp; I just do not get it.&amp;nbsp; Businesses always have more tables than layers.&amp;nbsp; Bummer.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 13:47:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/callback-with-rupdatefeature-return-layer/m-p/1329060#M7017</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-09-15T13:47:57Z</dc:date>
    </item>
  </channel>
</rss>

