<?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 Integromat Response Email with If Function in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/integromat-response-email-with-if-function/m-p/1161570#M41901</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a Survey123 survey that is being watched by a webhook through Integromat/Make. The survey is published based on a feature class on our federated portal server. I am trying to get the Email response in the webhook to evaluate against an attribute and send an appropriate response. Here's the setup:&lt;/P&gt;&lt;P&gt;Respondents to the Survey123 form identify whether or not they are a home owner (Owner) or a renter (Renter) in the attribute "Status." After answering a variety of quetions about their sustainable/green behaviors, the survey uses background fields to calculate a score, which is then used to populate a field called "Tier" if the respondent is an owner, or "TierRenter" if they are a renter (each of these fields is a text field and will have the values "Gold" "Silver" "Bronze"). Respondents submit their email as part of the survey and will receive a response email from Integromat after their submission. I have gotten this aspect of the project working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the content portion of the email response, I would like to have the tier of the respondent identified. The trouble is, I can't just plop the attribute in the contents. I want to evaluate against the attribute "Status" so that if the respondent is an owner, their content includes the value within the "Tier" attribute, and if they are a renter then the "TierRenter."&lt;/P&gt;&lt;P&gt;Here is what is currently in the contents HTML (See photo for how it looks in Integromat):&lt;/P&gt;&lt;P&gt;Thank you for submitting your&amp;nbsp; Survey! Based on your responses, you rank in the{{if(1.feature.attributes.Status + "= ""Owner"""; 1.feature.attributes.Tier; 1.feature.attributes.TierRent)}} tier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, all I get is the text portion, "Thank you for submitting your&amp;nbsp; Survey! Based on your responses, you rank in the tier." as the email response. I've tried using single and no quotes around the value in status, but no dice. Any ideas?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 14:25:40 GMT</pubDate>
    <dc:creator>ZachBodenner</dc:creator>
    <dc:date>2022-04-06T14:25:40Z</dc:date>
    <item>
      <title>Integromat Response Email with If Function</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/integromat-response-email-with-if-function/m-p/1161570#M41901</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a Survey123 survey that is being watched by a webhook through Integromat/Make. The survey is published based on a feature class on our federated portal server. I am trying to get the Email response in the webhook to evaluate against an attribute and send an appropriate response. Here's the setup:&lt;/P&gt;&lt;P&gt;Respondents to the Survey123 form identify whether or not they are a home owner (Owner) or a renter (Renter) in the attribute "Status." After answering a variety of quetions about their sustainable/green behaviors, the survey uses background fields to calculate a score, which is then used to populate a field called "Tier" if the respondent is an owner, or "TierRenter" if they are a renter (each of these fields is a text field and will have the values "Gold" "Silver" "Bronze"). Respondents submit their email as part of the survey and will receive a response email from Integromat after their submission. I have gotten this aspect of the project working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the content portion of the email response, I would like to have the tier of the respondent identified. The trouble is, I can't just plop the attribute in the contents. I want to evaluate against the attribute "Status" so that if the respondent is an owner, their content includes the value within the "Tier" attribute, and if they are a renter then the "TierRenter."&lt;/P&gt;&lt;P&gt;Here is what is currently in the contents HTML (See photo for how it looks in Integromat):&lt;/P&gt;&lt;P&gt;Thank you for submitting your&amp;nbsp; Survey! Based on your responses, you rank in the{{if(1.feature.attributes.Status + "= ""Owner"""; 1.feature.attributes.Tier; 1.feature.attributes.TierRent)}} tier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, all I get is the text portion, "Thank you for submitting your&amp;nbsp; Survey! Based on your responses, you rank in the tier." as the email response. I've tried using single and no quotes around the value in status, but no dice. Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 14:25:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/integromat-response-email-with-if-function/m-p/1161570#M41901</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2022-04-06T14:25:40Z</dc:date>
    </item>
  </channel>
</rss>

