<?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: HELP! Survey123 Connect @pulldata WHERE clause with concat not working if strings contains inverted comma in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377834#M54523</link>
    <description>&lt;P&gt;I see where that is going, thank you!&lt;/P&gt;&lt;P&gt;As it is, it doesn't work &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;... but I'll see what I can finagle on Monday! I'll write an if statement earlier I think for it.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 21:29:50 GMT</pubDate>
    <dc:creator>Teresa_Blader</dc:creator>
    <dc:date>2024-02-02T21:29:50Z</dc:date>
    <item>
      <title>HELP! Survey123 Connect @pulldata WHERE clause with concat not working if strings contains inverted comma</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377768#M54514</link>
      <description>&lt;P&gt;Hi! Trying to pulldata but in my concat WHERE clause - it doesn't work for strings that contain inverted commas &amp;gt;&amp;gt; '. How should I structure the WHERE clause if the string may have an inverted comma in it? Do I still use concat? Or should I be doing something else?&lt;/P&gt;&lt;P&gt;donator_name='Kaylie's Donation Center'&amp;nbsp; must just be looking for donator_name='Kaylie' so returns nothing.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":loudly_crying_face:"&gt;😭&lt;/span&gt; If I remove ' , then it works.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;pulldata("@layer", "getValue","geometry", "https://services7.arcgis.com/tC18nF87RnYBtzwI/ArcGIS/rest/services/Food_Rescue_View/FeatureServer/2", concat("donator_name =" ,"'",${donator_name},"'"))&lt;/LI-CODE&gt;&lt;LI-CODE lang="c"&gt;pulldata("@layer", "getValue","attributes.donator_type", "https://services7.arcgis.com/tC18nF87RnYBtzwI/ArcGIS/rest/services/Food_Rescue_View/FeatureServer/2", concat("donator_name = '" ,${donator_name},"'"))&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Teresa_Blader_0-1706902755014.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/93619i2E333219746648A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Teresa_Blader_0-1706902755014.png" alt="Teresa_Blader_0-1706902755014.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 19:48:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377768#M54514</guid>
      <dc:creator>Teresa_Blader</dc:creator>
      <dc:date>2024-02-02T19:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: HELP! Survey123 Connect @pulldata WHERE clause with concat not working if strings contains inverted comma</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377783#M54516</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/425496"&gt;@Teresa_Blader&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason it's only choosing Kaylie is due to using three single quotes ('), when a string is surrounded by single quotes, the inside cannot use a single quote without breaking the string. You must surround the string by double quotes to use a single quote, so "Kaylie's Donation Center" would work, but 'Kaylie's Donation Center' would just return Kaylie.&lt;/P&gt;&lt;P&gt;This may work better:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;pulldata("@layer", "getValue", "geometry", "https://services7.arcgis.com/tC18nF87RnYBtzwI/ArcGIS/rest/services/Food_Rescue_View/FeatureServer/2", concat("donator_name =", '"', ${donator_name}, '"'))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Feb 2024 20:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377783#M54516</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-02-02T20:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: HELP! Survey123 Connect @pulldata WHERE clause with concat not working if strings contains inverted comma</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377790#M54517</link>
      <description>&lt;P&gt;Thanks for responding... sadly this does not work when I try it.&lt;span class="lia-unicode-emoji" title=":crying_face:"&gt;😢&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My understanding is that SQL WHERE clauses have to use '' surrounding a string and the only way to get it to return is by adding a secondary ' at the point of the text... which I'm not sure how to handle with a dynamic input - but maybe I misunderstood the blogs.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 20:15:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377790#M54517</guid>
      <dc:creator>Teresa_Blader</dc:creator>
      <dc:date>2024-02-02T20:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: HELP! Survey123 Connect @pulldata WHERE clause with concat not working if strings contains inverted comma</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377806#M54518</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/425496"&gt;@Teresa_Blader&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry that didn't work, I was really hoping for it, I've seen using another single quote work, so two next to eachother, but in this case since we'd want to use it dynamically, it wouldn't work for us, we could make use of the replace function perhaps?&lt;/P&gt;&lt;P&gt;Maybe give this a try:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;pulldata("@layer", "getValue", "geometry", "https://services7.arcgis.com/tC18nF87RnYBtzwI/ArcGIS/rest/services/Food_Rescue_View/FeatureServer/2", concat("donator_name = '", replace(${donator_name}, "'", "''"), "'"))&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Feb 2024 20:49:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377806#M54518</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-02-02T20:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: HELP! Survey123 Connect @pulldata WHERE clause with concat not working if strings contains inverted comma</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377810#M54519</link>
      <description>&lt;P&gt;Don't know if you can encode those parameters -- not something I've needed to try. But that would likely fix the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 20:52:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377810#M54519</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-02-02T20:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: HELP! Survey123 Connect @pulldata WHERE clause with concat not working if strings contains inverted comma</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377818#M54520</link>
      <description>&lt;P&gt;Sadly, "replace" is not a Survey123 formula&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":loudly_crying_face:"&gt;😭&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm" target="_blank"&gt;https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 21:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377818#M54520</guid>
      <dc:creator>Teresa_Blader</dc:creator>
      <dc:date>2024-02-02T21:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: HELP! Survey123 Connect @pulldata WHERE clause with concat not working if strings contains inverted comma</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377821#M54521</link>
      <description>&lt;P&gt;I'm not sure what that means, encoding the parameters. What would that look like?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 21:03:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377821#M54521</guid>
      <dc:creator>Teresa_Blader</dc:creator>
      <dc:date>2024-02-02T21:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: HELP! Survey123 Connect @pulldata WHERE clause with concat not working if strings contains inverted comma</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377823#M54522</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/425496"&gt;@Teresa_Blader&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I seem to be on a roll today with less than optimal answers, here's a final attempt using this link here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/td-p/836707" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-questions/find-and-replace-character/td-p/836707&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is the adjusted code:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;pulldata("@layer", "getValue", "geometry", "&lt;A href="https://services7.arcgis.com/tC18nF87RnYBtzwI/ArcGIS/rest/services/Food_Rescue_View/FeatureServer/2" target="_blank"&gt;https://services7.arcgis.com/tC18nF87RnYBtzwI/ArcGIS/rest/services/Food_Rescue_View/FeatureServer/2&lt;/A&gt;",&lt;BR /&gt;concat("donator_name = '", concat(substring(${donator_name}, 0, position("'", ${donator_name})), "''", substring(${donator_name}, position("'", ${donator_name}) + 1)), "'"))&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 21:06:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377823#M54522</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2024-02-02T21:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: HELP! Survey123 Connect @pulldata WHERE clause with concat not working if strings contains inverted comma</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377834#M54523</link>
      <description>&lt;P&gt;I see where that is going, thank you!&lt;/P&gt;&lt;P&gt;As it is, it doesn't work &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;... but I'll see what I can finagle on Monday! I'll write an if statement earlier I think for it.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 21:29:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377834#M54523</guid>
      <dc:creator>Teresa_Blader</dc:creator>
      <dc:date>2024-02-02T21:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: HELP! Survey123 Connect @pulldata WHERE clause with concat not working if strings contains inverted comma</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377850#M54524</link>
      <description>&lt;P&gt;Hi Teresa, I've read a lot that concat functions and pulldata functions can't be in the same line.&lt;/P&gt;&lt;P&gt;So I've put my concat in one text line and my pulldata in the next text line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE width="7217"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="178"&gt;text&lt;/TD&gt;&lt;TD width="178"&gt;perid&lt;/TD&gt;&lt;TD width="199"&gt;person id&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="506"&gt;hidden&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="815"&gt;pulldata("@layer", "getRecord",&amp;nbsp; "&lt;A href="https://myportal/hosting/rest/services/Hosted/person/FeatureServer/0" target="_blank" rel="noopener"&gt;https://myportal/hosting/rest/services/Hosted/person/FeatureServer/0&lt;/A&gt;", ${whereid})&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;10000&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="199"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="228"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="242"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="199"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="199"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="170"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="192"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="163"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;note&lt;/TD&gt;&lt;TD&gt;whereid&lt;/TD&gt;&lt;TD&gt;whereid&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;hidden&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;concat("lan_id ='", ${lan}, "'")&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 02 Feb 2024 22:24:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1377850#M54524</guid>
      <dc:creator>AnneMorrisMC</dc:creator>
      <dc:date>2024-02-02T22:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: HELP! Survey123 Connect @pulldata WHERE clause with concat not working if strings contains inverted comma</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1536025#M58969</link>
      <description>&lt;P&gt;Ever figure this out? I'm running into the same issue and can't seem to get a work around. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 18:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/help-survey123-connect-pulldata-where-clause-with/m-p/1536025#M58969</guid>
      <dc:creator>RobynSnookCCB</dc:creator>
      <dc:date>2024-09-06T18:17:45Z</dc:date>
    </item>
  </channel>
</rss>

