<?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: Google Sheets Apps Script in Peer-Peer Topics</title>
    <link>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/801#M525</link>
    <description>&lt;P&gt;Unfortunately, FormMule does not accomplish what I am trying to do. Well, it does, except I cant seem to figure out how to setup any additional logic to keep it from continuing to email every single person that it has already emailed. The only way I can figure out how to do that, is to change the value in one cell, use the form mule button to click through sending preview, then after it sends the email, change that same rows specified cell to some other value other than the "trigger" value.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Sep 2023 02:20:46 GMT</pubDate>
    <dc:creator>ParatrooperJoe</dc:creator>
    <dc:date>2023-09-02T02:20:46Z</dc:date>
    <item>
      <title>Google Sheets Apps Script</title>
      <link>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/788#M516</link>
      <description>&lt;P&gt;I have a bit of experience with Google Apps Scripts, and already have one setup that emails specific people when a certain form is submitted.&lt;/P&gt;&lt;P&gt;I am now trying to set one to do slightly different task. There is a form that students fill out requesting to have a document printed by the Librarian. The Librarian has the sheet setup with the following headers:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Print Job Completed?, Timestamp, Email Address, Name, Class Printing is for, Click yes that you understand printing is in black and white only, Attached document&lt;/P&gt;&lt;P&gt;In this Sheet, the first column named "Print Job Completed?" is setup as a dropdown list with the only option of "YES!!!" .&amp;nbsp; The default value for this field is blank&lt;/P&gt;&lt;P&gt;What the Librarian is hoping to accomplish, is the following: When she prints one of the submitted documents, find that row in the Sheet and change column one value to "YES!!!" and then she would like the Apps Script to send an email to the "Email Address" for that particular row, to let them know that document "Class Printing for" has been printed and is ready for pickup.&amp;nbsp; I am sure that is as clears mud, lol.&lt;/P&gt;&lt;P&gt;I read an article that was sort of in line with what I am trying to accomplish, and here is what I have so far, which doesnt work, so I have no doubt I am doing it wrong. I am wondering if this fine group of Admins might be able to help figure this out, if its even possible.&amp;nbsp; Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;function&lt;/SPAN&gt; &lt;SPAN&gt;sendEmail&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;e&lt;/SPAN&gt;&lt;SPAN&gt;){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;r&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;e&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;range&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;// Cell being edited.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;row&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;r&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;rowStart&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;SPAN&gt;// Row of the edit.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;col&lt;/SPAN&gt;&lt;SP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(&lt;/SPAN&gt;&lt;SPAN&gt;row&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;SPAN&gt;getValue&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;msg&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"Hello, "&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;keName&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;". Your document: "&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;caseStatus&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;" has been printed and is ready for pickup in the Library. &amp;nbsp;Thank you."&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MailApp&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;sendEmail&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;email&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Document printed!"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;msg&lt;/SPAN&gt;&lt;SPAN&gt;)}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 15:41:10 GMT</pubDate>
      <guid>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/788#M516</guid>
      <dc:creator>ParatrooperJoe</dc:creator>
      <dc:date>2023-09-01T15:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Google Sheets Apps Script</title>
      <link>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/790#M517</link>
      <description>&lt;P&gt;YES!!! and Yes are not the same thing.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 18:41:24 GMT</pubDate>
      <guid>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/790#M517</guid>
      <dc:creator>Kim_Nilsson</dc:creator>
      <dc:date>2023-09-01T18:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Google Sheets Apps Script</title>
      <link>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/791#M518</link>
      <description>&lt;P&gt;Doh! Thanks, Kim... that was a typo... Here is the error i get emailed after making that correction.&lt;/P&gt;&lt;P&gt;TypeError: Cannot read properties of undefined (reading '0')&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;edit&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 18:49:36 GMT</pubDate>
      <guid>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/791#M518</guid>
      <dc:creator>ParatrooperJoe</dc:creator>
      <dc:date>2023-09-01T18:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Google Sheets Apps Script</title>
      <link>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/793#M519</link>
      <description>&lt;P&gt;Okay this is the actual error message....&lt;/P&gt;&lt;P&gt;Start&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Function&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Error Message&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2023-09-01 15:10:28&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;sendEmail&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TypeError: Cannot read properties of undefined (reading 'rowStart') &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;Trigger &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/U&gt; &lt;U&gt;End&lt;/U&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edit&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;2023-09-01 15:10:29&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 19:13:32 GMT</pubDate>
      <guid>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/793#M519</guid>
      <dc:creator>ParatrooperJoe</dc:creator>
      <dc:date>2023-09-01T19:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Google Sheets Apps Script</title>
      <link>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/794#M520</link>
      <description>&lt;P&gt;Looks like you are pulling your values in the wrong order? You can't pull a range before you know the sheet, and if you don't know the range, you can't pull the rowstart.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 19:24:16 GMT</pubDate>
      <guid>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/794#M520</guid>
      <dc:creator>Kim_Nilsson</dc:creator>
      <dc:date>2023-09-01T19:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Google Sheets Apps Script</title>
      <link>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/797#M521</link>
      <description>&lt;P&gt;i do beleive you are right, changing the order definitely changes the error, lol. Sadly, Im lost on what Im doing here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If all i needed to do was email myself when an edit is made, i can do that with no problem, but figuring out how extract the email from the edited row is evading me &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 19:38:24 GMT</pubDate>
      <guid>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/797#M521</guid>
      <dc:creator>ParatrooperJoe</dc:creator>
      <dc:date>2023-09-01T19:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Google Sheets Apps Script</title>
      <link>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/798#M522</link>
      <description>&lt;P&gt;You could circumvent the entire problem by using Form Mule, and telling it to only email if the row has the Yes value.&lt;/P&gt;&lt;P&gt;It's fun to learn new things, but not everyone needs to invent the wheel.&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 19:59:41 GMT</pubDate>
      <guid>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/798#M522</guid>
      <dc:creator>Kim_Nilsson</dc:creator>
      <dc:date>2023-09-01T19:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Google Sheets Apps Script</title>
      <link>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/799#M523</link>
      <description>&lt;P&gt;I agree with Kim's Form Mule suggestion. I use that for a ton of Forms and Sheets and it works great.&lt;/P&gt;&lt;P&gt;The only issue I've had was when our primary domain changed and it broke a couple forms, but that is a super-rare event for most districts.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 20:19:54 GMT</pubDate>
      <guid>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/799#M523</guid>
      <dc:creator>SteveHarmon</dc:creator>
      <dc:date>2023-09-01T20:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Google Sheets Apps Script</title>
      <link>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/800#M524</link>
      <description>&lt;P&gt;You might try asking this question over on the (very active) Google Apps Script list:&amp;nbsp;&lt;A href="https://groups.google.com/g/google-apps-script-community/about" target="_blank"&gt;https://groups.google.com/g/google-apps-script-community/about&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 20:24:01 GMT</pubDate>
      <guid>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/800#M524</guid>
      <dc:creator>icrew</dc:creator>
      <dc:date>2023-09-01T20:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Google Sheets Apps Script</title>
      <link>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/801#M525</link>
      <description>&lt;P&gt;Unfortunately, FormMule does not accomplish what I am trying to do. Well, it does, except I cant seem to figure out how to setup any additional logic to keep it from continuing to email every single person that it has already emailed. The only way I can figure out how to do that, is to change the value in one cell, use the form mule button to click through sending preview, then after it sends the email, change that same rows specified cell to some other value other than the "trigger" value.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2023 02:20:46 GMT</pubDate>
      <guid>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/801#M525</guid>
      <dc:creator>ParatrooperJoe</dc:creator>
      <dc:date>2023-09-02T02:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Google Sheets Apps Script</title>
      <link>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/802#M526</link>
      <description>&lt;P&gt;Well, nevermind... I must have done something wrong... I started fron scratch on a new clean sheet, setup form mule, and form mule is working perfectly now. Thanks Kim!&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2023 03:15:48 GMT</pubDate>
      <guid>https://www.googleforeducommunity.com/t5/Peer-Peer-Topics/Google-Sheets-Apps-Script/m-p/802#M526</guid>
      <dc:creator>ParatrooperJoe</dc:creator>
      <dc:date>2023-09-02T03:15:48Z</dc:date>
    </item>
  </channel>
</rss>

