# Zaps based on comment activity

**URL:** <https://community.glideapps.com/t/zaps-based-on-comment-activity/22208>\
**Category:** Ask for Help\
**Tags:** actions\
**Created:** [February 3, 2021, 8:42pm UTC](https://community.glideapps.com/t/zaps-based-on-comment-activity/22208 "2021-02-03T20:42:26Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dinomeg](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dinomeg/32/20650_2.png) [@dinomeg](https://community.glideapps.com/u/dinomeg)\
**Post date:** [February 3, 2021, 8:42pm UTC](https://community.glideapps.com/t/zaps-based-on-comment-activity/22208/1 "2021-02-03T20:42:26Z")

</div>

Hey friends! I’m running into a problem/confusion that I’m unsure how to handle and I couldn’t find anything similar in the topics.

Basically, I want to set up a Zap to email a user if someone comments on an item they posted, comments on an item they had previously commented on (regardless of who posted it), and if someone buys an item the user posted. I think I have a handle on the purchase notification but I can’t figure out how I would alert the item poster of a new comment since in the Comments sheet there isn’t anywhere that the comment is tied to the original poster. The subject of the comment is filled in with the name of the item being commented on so I suppose I could tell it to grab the poster’s email instead. But then there would be no way to allow someone to receive notification that someone commented a response if they aren’t the original poster.

Is there a way to add columns to the Sheets and tell it where to get its info from or is this only possible on the Data Editor sheets? If that’s the case, can I somehow add the Comments sheet to the Data Editor? Am I misunderstanding how the comments data is created in the first place?

I’ve included screenshots of the comments section showing little available customization and the sheet with the data it does collect automatically.

Thanks in advance for the help!  
Megan

 ![Screen Shot 2021-02-03 at 11.48.24 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/c/fc60f5dbf24efcd276a9a471762d264955d56d33.png)

 ![Screen Shot 2021-02-03 at 11.48.41 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/1/414654f4eecfd17c575608774c825cadfa91f70c.png)

---

<div class="post-metadata">

**Author:** ![Fabio\_Leanzi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabio_leanzi/32/6838_2.png) [@Fabio\_Leanzi](https://community.glideapps.com/u/Fabio_Leanzi)\
**Post date:** [February 3, 2021, 8:52pm UTC](https://community.glideapps.com/t/zaps-based-on-comment-activity/22208/2 "2021-02-03T20:52:44Z")

</div>

Hi, yes it’s possible.  
I added some columns to the sheet to send an email notification to the sender and recipient of the comment.

 ![Schermata 2021-02-03 alle 21.50.33](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/f/0f51f2490cee55e664d4fe4590a9ab15688392c3.png)  
And this is the result  
 ![Schermata 2021-02-03 alle 21.52.12](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/9/e9a3dc1fc3fa3559ac0bb3f8db5d0bc1ad60e618.png)

---

<div class="post-metadata">

**Author:** ![Fabio\_Leanzi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabio_leanzi/32/6838_2.png) [@Fabio\_Leanzi](https://community.glideapps.com/u/Fabio_Leanzi)\
**Post date:** [February 3, 2021, 8:56pm UTC](https://community.glideapps.com/t/zaps-based-on-comment-activity/22208/3 "2021-02-03T20:56:41Z")

</div>

And next i have create a conditionally run in Zapier for send mail

 ![Schermata 2021-02-03 alle 21.54.28](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/b/3b8e53a72c6e99f815529c6ed05e85a25b7623eb.png)

---

<div class="post-metadata">

**Author:** ![dinomeg](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dinomeg/32/20650_2.png) [@dinomeg](https://community.glideapps.com/u/dinomeg)\
**Post date:** [February 3, 2021, 9:17pm UTC](https://community.glideapps.com/t/zaps-based-on-comment-activity/22208/4 "2021-02-03T21:17:38Z")

</div>

Hi Fabio, thanks for the help. I’m not sure I understand what your screenshots are showing. The first one you added a column and gave it a formula telling it to do what exactly? Is it just finding the email of the original poster for you so you can use the column in a zap action?

How do you link the comment to the item it’s being posted to? The unique identifier is for the comment itself and not the item, right?

---

<div class="post-metadata">

**Author:** ![Fabio\_Leanzi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fabio_leanzi/32/6838_2.png) [@Fabio\_Leanzi](https://community.glideapps.com/u/Fabio_Leanzi)\
**Post date:** [February 3, 2021, 9:26pm UTC](https://community.glideapps.com/t/zaps-based-on-comment-activity/22208/5 "2021-02-03T21:26:42Z")

</div>

Yes, I have different types of comments.  
If I have text in the topic then I know it’s a generic comment  
If I have an email address in the topic, I know it’s part of a 1to1 chat and then I send an email notification.  
If in the mail column and in the topic column there is the same email address, I know that the customer is writing then I added the last column created by me to know the recipient of the email  
If there are different addresses in the topic column and in the mail column, then I know that the staff is responding to the customer.

 ![Schermata 2021-02-03 alle 22.24.26](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/8/c8532430d02dcb643e554d6147838279c2bef2f3.png)

---

<div class="post-metadata">

**Author:** ![dinomeg](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dinomeg/32/20650_2.png) [@dinomeg](https://community.glideapps.com/u/dinomeg)\
**Post date:** [February 3, 2021, 9:31pm UTC](https://community.glideapps.com/t/zaps-based-on-comment-activity/22208/6 "2021-02-03T21:31:39Z")

</div>

Ok, so I need to just create a new column that will look up the email address of the person who posted the item and use that for my zap…? How do I do a lookup from another sheet if I’m not able to use the Data Editor telling it where to look for the information it needs?

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [February 4, 2021, 12:00am UTC](https://community.glideapps.com/t/zaps-based-on-comment-activity/22208/7 "2021-02-04T00:00:53Z")

</div>

You’ll need to use sheet formulas…  
[Tutorial: Arrayformula in Google Sheets, good practices & how to overcome Arrayformula restrictions with scripts](https://community.glideapps.com/t/tutorial-arrayformula-in-google-sheets-good-practices-how-to-overcome-arrayformula-restrictions-with-scripts/9727)

You’ll want to do this anyway since a zap will need to be triggered from the spreadsheet anyway.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [February 4, 2021, 12:11pm UTC](https://community.glideapps.com/t/zaps-based-on-comment-activity/22208/8 "2021-02-04T12:11:10Z")

</div>

> [@dinomeg](#):
>
> Ok, so I need to just create a new column that will look up the email address of the person who posted the item and use that for my zap…? How do I do a lookup from another sheet if I’m not able to use the Data Editor telling it where to look for the information it needs?

Have you looked at the ‘App: Comments’ sheet?  
Mine includes both the username and the email address of the user that commented (as well as the topic reference). I’m pretty sure I didn’t do anything special to make it that way. Or maybe I did… it was a while ago 🤪 🤣

---

<div class="post-metadata">

**Author:** ![dinomeg](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dinomeg/32/20650_2.png) [@dinomeg](https://community.glideapps.com/u/dinomeg)\
**Post date:** [February 4, 2021, 6:02pm UTC](https://community.glideapps.com/t/zaps-based-on-comment-activity/22208/9 "2021-02-04T18:02:36Z")

</div>

Yes, the second screenshot I included is from that sheet. The issue is that it includes the username of the person posting the comment and not the username who owns the item being commented on. I think the solution is to add columns using the lookup to populate it with the right information from other sheets like users or listings.

Robert’s suggestion to look at the array formulas is what I’m working on now and I think that’s what I need to do. I’ll report back though 🙂

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [February 4, 2021, 6:06pm UTC](https://community.glideapps.com/t/zaps-based-on-comment-activity/22208/10 "2021-02-04T18:06:00Z")

</div>

ah, gotcha. Sorry, I misread your original post

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:53pm UTC](https://community.glideapps.com/t/zaps-based-on-comment-activity/22208/11 "2024-01-17T16:53:30Z")

</div>


