<?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 Search() or pulldata() from a feature table in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/search-or-pulldata-from-a-feature-table/m-p/1510324#M58130</link>
    <description>&lt;P&gt;I am trying to populate a list using data from a table (person_info). This table (person_info) is auto-populated/updated from an outside source. In a perfect world, my survey would go as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The user enters their name in the first field, autocomplete-ed from person_info that is already stored in&amp;nbsp;&lt;BR /&gt;ArcGIS REST Services.&lt;/LI&gt;&lt;LI&gt;The next field is auto-populated by a calculation made on the first field, this second field selects their supervisor.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I've spent a lot of time searching and trying new ways and cannot get it to work. I even tried to convert the feature table (person_info) into a feature layer to utilize the search() appearance function as it is exactly what I needed. I read that using search() over pulldata("@layer") in this case, was preferred. (There are no 'geotags' in person_info so I understood I had to do some joins before creating it into a feature layer)&lt;/P&gt;&lt;P&gt;Maybe I am not getting the syntax correctly or my data is set up improperly? Will I have to create a whole script using pulldata("@javascript") that does everything at once... searches the user's name and their supervisors'? I know that some people taking the survey may not have an ArcGIS account. Would some sort of authorization be needed like a token or an API key?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is there a way to pull straight from a feature table?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is what my general idea is using pulldata() and search():&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pulldata()&lt;BR /&gt;&lt;/STRONG&gt;pulldata("@layer", "getValue", "attributes.fname", "&lt;A href="https://root.com/arcgis/rest/services/database/person_info/FeatureServer/0" target="_blank"&gt;https://root.com/arcgis/rest/services/database/person_info/FeatureServer/0&lt;/A&gt;", arg)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Search()&lt;/STRONG&gt;&lt;BR /&gt;autocomplete search('subname?url=&lt;A href="https://root.com/arcgis/rest/services/database/person_info/FeatureServer/0" target="_blank"&gt;https://root.com/arcgis/rest/services/database/person_info/FeatureServer/0&lt;/A&gt;')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 22:00:23 GMT</pubDate>
    <dc:creator>cabrae7</dc:creator>
    <dc:date>2024-07-25T22:00:23Z</dc:date>
    <item>
      <title>Search() or pulldata() from a feature table</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-or-pulldata-from-a-feature-table/m-p/1510324#M58130</link>
      <description>&lt;P&gt;I am trying to populate a list using data from a table (person_info). This table (person_info) is auto-populated/updated from an outside source. In a perfect world, my survey would go as follows:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The user enters their name in the first field, autocomplete-ed from person_info that is already stored in&amp;nbsp;&lt;BR /&gt;ArcGIS REST Services.&lt;/LI&gt;&lt;LI&gt;The next field is auto-populated by a calculation made on the first field, this second field selects their supervisor.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I've spent a lot of time searching and trying new ways and cannot get it to work. I even tried to convert the feature table (person_info) into a feature layer to utilize the search() appearance function as it is exactly what I needed. I read that using search() over pulldata("@layer") in this case, was preferred. (There are no 'geotags' in person_info so I understood I had to do some joins before creating it into a feature layer)&lt;/P&gt;&lt;P&gt;Maybe I am not getting the syntax correctly or my data is set up improperly? Will I have to create a whole script using pulldata("@javascript") that does everything at once... searches the user's name and their supervisors'? I know that some people taking the survey may not have an ArcGIS account. Would some sort of authorization be needed like a token or an API key?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is there a way to pull straight from a feature table?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is what my general idea is using pulldata() and search():&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pulldata()&lt;BR /&gt;&lt;/STRONG&gt;pulldata("@layer", "getValue", "attributes.fname", "&lt;A href="https://root.com/arcgis/rest/services/database/person_info/FeatureServer/0" target="_blank"&gt;https://root.com/arcgis/rest/services/database/person_info/FeatureServer/0&lt;/A&gt;", arg)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Search()&lt;/STRONG&gt;&lt;BR /&gt;autocomplete search('subname?url=&lt;A href="https://root.com/arcgis/rest/services/database/person_info/FeatureServer/0" target="_blank"&gt;https://root.com/arcgis/rest/services/database/person_info/FeatureServer/0&lt;/A&gt;')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 22:00:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-or-pulldata-from-a-feature-table/m-p/1510324#M58130</guid>
      <dc:creator>cabrae7</dc:creator>
      <dc:date>2024-07-25T22:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search() or pulldata() from a feature table</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-or-pulldata-from-a-feature-table/m-p/1512413#M58200</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/571334"&gt;@cabrae7&lt;/a&gt;&amp;nbsp;- yes, you should be able to accomplish this; see the example &lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/search-and-pulldata-with-feature-service/m-p/1318922/highlight/true#M51192" target="_self"&gt;here&lt;/A&gt;!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 15:39:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-or-pulldata-from-a-feature-table/m-p/1512413#M58200</guid>
      <dc:creator>ToddW_stl</dc:creator>
      <dc:date>2024-07-30T15:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Search() or pulldata() from a feature table</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-or-pulldata-from-a-feature-table/m-p/1515163#M58318</link>
      <description>&lt;P&gt;I've spent a lot of time on that thread. I've tried to copy every little detail but I would still get "No Matches" when I try to type in the search dropdown. Does making the object I am trying to access through the API services a 'Table' make a difference? There have only been talks about accessing a CSV or Feature Layers.&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 20:06:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-or-pulldata-from-a-feature-table/m-p/1515163#M58318</guid>
      <dc:creator>cabrae7</dc:creator>
      <dc:date>2024-08-05T20:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search() or pulldata() from a feature table</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/search-or-pulldata-from-a-feature-table/m-p/1515197#M58319</link>
      <description>&lt;P&gt;You can query a table - is this in an enterprise geodatabase?&amp;nbsp; Can you share your xlsx form?&amp;nbsp; Are you using a select_one question for users entering their name?&amp;nbsp; You shouldn't need an API token, but I'd make sure the service is shared correctly.&amp;nbsp; I'd recommend reviewing &lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-pulldata-quot-layer/ba-p/1224415#:~:text=A%20few%20extra%20tips%20and%20things%20you%20should%20know" target="_self"&gt;these extra tips&lt;/A&gt;.&amp;nbsp; I'd also recommend looking at the "Query a Feature Layer" sample within the New Survey dialog in Survey123 Connect.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 21:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/search-or-pulldata-from-a-feature-table/m-p/1515197#M58319</guid>
      <dc:creator>ToddW_stl</dc:creator>
      <dc:date>2024-08-05T21:56:44Z</dc:date>
    </item>
  </channel>
</rss>

