<?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 REST ApplyEdits on ESRIRequest Layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rest-applyedits-on-esrirequest-layer/m-p/1167882#M77133</link>
    <description>&lt;P&gt;I'm trying to apply edits on a layer that i fetch through a ESRIRequest action.&lt;/P&gt;&lt;P&gt;Basically, I'm fetching the layer like this and trying to apply my edits with 'then' :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;url = https://somewebsite/rest/services/app/app1/FeatureServer/applyEdits

let newAcc = {
        "attributes": {dataFeatureAcc}
      }

request(url).then(function (response) {
      response.data.applyEdits: [newAcc]
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This used to work withtout the request, but I'm required to use it. I found the documentation but don't find it usefull as it only shows the data structure that the edited features should have. It doesn't show how to apply the edits. Can someone help me out ? Many thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Apr 2022 12:17:18 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-04-26T12:17:18Z</dc:date>
    <item>
      <title>REST ApplyEdits on ESRIRequest Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rest-applyedits-on-esrirequest-layer/m-p/1167882#M77133</link>
      <description>&lt;P&gt;I'm trying to apply edits on a layer that i fetch through a ESRIRequest action.&lt;/P&gt;&lt;P&gt;Basically, I'm fetching the layer like this and trying to apply my edits with 'then' :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;url = https://somewebsite/rest/services/app/app1/FeatureServer/applyEdits

let newAcc = {
        "attributes": {dataFeatureAcc}
      }

request(url).then(function (response) {
      response.data.applyEdits: [newAcc]
    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This used to work withtout the request, but I'm required to use it. I found the documentation but don't find it usefull as it only shows the data structure that the edited features should have. It doesn't show how to apply the edits. Can someone help me out ? Many thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 12:17:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rest-applyedits-on-esrirequest-layer/m-p/1167882#M77133</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-04-26T12:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: REST ApplyEdits on ESRIRequest Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rest-applyedits-on-esrirequest-layer/m-p/1167893#M77136</link>
      <description>&lt;P&gt;@Anonymous User&amp;nbsp;&lt;/P&gt;&lt;P&gt;The applyEdits method is present on the FeatureLayer class. Currently your code is attempting to execute that method on a array of Graphics. You need to instantiate a FeatureLayer class from your URL and call the load method (assuming that you are not loading that FeatureLayer class to the map Then you can call the FeatureLayer class applyEdits method.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 12:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/rest-applyedits-on-esrirequest-layer/m-p/1167893#M77136</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2022-04-26T12:59:41Z</dc:date>
    </item>
  </channel>
</rss>

