<?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: pulldata with custom JavaScript functions: parsing a json object to get field names with special characters in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-with-custom-javascript-functions-parsing/m-p/1027467#M32534</link>
    <description>&lt;P&gt;Ouch!&lt;/P&gt;&lt;P&gt;Could you extract the value using JS syntax within your function?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2021 03:22:09 GMT</pubDate>
    <dc:creator>IsmaelChivite</dc:creator>
    <dc:date>2021-02-17T03:22:09Z</dc:date>
    <item>
      <title>pulldata with custom JavaScript functions: parsing a json object to get field names with special characters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-with-custom-javascript-functions-parsing/m-p/1008192#M31527</link>
      <description>&lt;P&gt;I have a survey where I use a custom JavaScript function to fetch watershed feature service data from a geopoint input and I can't seem to correctly parse the json response object for the watershed geometry in the XLS form. Specifically, I am after the 'SHAPE.AREA' attribute which is inconveniently named with a period (SHAPE.AREA) I was expecting the JavaScript syntax&amp;nbsp;attributes["SHAPE.AREA"] to work in my pulldata function but it does not. Can anyone advise?&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;SPAN&gt;This is what I tried that did not work:&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pulldata("@json", ${watershedFeatureData}, "attributes['SHAPE.AREA']")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Here is my json object:&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{"attributes":{"OBJECTID":8370,"HUC10":"1709000505","NAME":"Little North Santiam River","GLOBALID":"{1DAD296C-E29C-11E2-8094-0021280458E6}","SHAPE.AREA":0.0333403261176857,"SHAPE.LEN":1.2658292857788298}}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 18:57:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-with-custom-javascript-functions-parsing/m-p/1008192#M31527</guid>
      <dc:creator>KimberlyMcCallum</dc:creator>
      <dc:date>2020-12-09T18:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: pulldata with custom JavaScript functions: parsing a json object to get field names with special characters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-with-custom-javascript-functions-parsing/m-p/1027467#M32534</link>
      <description>&lt;P&gt;Ouch!&lt;/P&gt;&lt;P&gt;Could you extract the value using JS syntax within your function?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 03:22:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/pulldata-with-custom-javascript-functions-parsing/m-p/1027467#M32534</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2021-02-17T03:22:09Z</dc:date>
    </item>
  </channel>
</rss>

