<?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 RouteTask: Preserve Custom Attributes in Stops in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routetask-preserve-custom-attributes-in-stops/m-p/493426#M45828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the RouteTask to do route optimization and I am trying to add some custom attributes to my stops (both for display and to keep a reference to the corresponding object in my applications database via primary key like AddressId).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am supplying the stops by creating a new FeatureSet and setting Features to an array of Graphics I create. I add my custom attributes to the graphics. However, when I look at the stops that are returned in the RouteResult (I use returnStops = true) the stops have different attributes than the ones I set (except for Name which it seems to keep) and the ones I set seem to have been wiped out. Is there a way to configure the RouteTask so that it will not overwrite the attributes I provide in my input stops?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2019 13:05:42 GMT</pubDate>
    <dc:creator>ZacharyFallon</dc:creator>
    <dc:date>2019-04-29T13:05:42Z</dc:date>
    <item>
      <title>RouteTask: Preserve Custom Attributes in Stops</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routetask-preserve-custom-attributes-in-stops/m-p/493426#M45828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the RouteTask to do route optimization and I am trying to add some custom attributes to my stops (both for display and to keep a reference to the corresponding object in my applications database via primary key like AddressId).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am supplying the stops by creating a new FeatureSet and setting Features to an array of Graphics I create. I add my custom attributes to the graphics. However, when I look at the stops that are returned in the RouteResult (I use returnStops = true) the stops have different attributes than the ones I set (except for Name which it seems to keep) and the ones I set seem to have been wiped out. Is there a way to configure the RouteTask so that it will not overwrite the attributes I provide in my input stops?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2019 13:05:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routetask-preserve-custom-attributes-in-stops/m-p/493426#M45828</guid>
      <dc:creator>ZacharyFallon</dc:creator>
      <dc:date>2019-04-29T13:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTask: Preserve Custom Attributes in Stops</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routetask-preserve-custom-attributes-in-stops/m-p/1104719#M74877</link>
      <description>&lt;P&gt;Were you ever able to figure this out?&amp;nbsp; I am having the same issue.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 12:59:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/routetask-preserve-custom-attributes-in-stops/m-p/1104719#M74877</guid>
      <dc:creator>JeffHaupt</dc:creator>
      <dc:date>2021-10-05T12:59:26Z</dc:date>
    </item>
  </channel>
</rss>

