Automated Lease Expiration Reminder Notification Script Implementation

305 views
Skip to first unread message

Salah El Hagin

unread,
Nov 14, 2023, 2:28:15 AM11/14/23
to Google Apps Script Community

Hello everyone,

I'm managing a Google Sheet named "Rental-Management" with multiple tabs, one of which is labeled "Lease Information."

I'm looking to develop a script that automatically sends me a reminder 60 days before the contract end date, which is located in column G. The email message should include the following information:

  • Lease Number: Column A
  • Unit Number: Column E
  • Tenant Name: Column C
  • Property Name: Column D

The email content should read: "This is a reminder that your lease is set to expire in 60 days."

Thank you for your support

Andrew Roberts

unread,
Nov 14, 2023, 2:30:12 AM11/14/23
to Google Apps Script Community
Are you looking to hire someone to do that for you. Otherwise, share the script you have created so far.

Keith Andersen

unread,
Nov 14, 2023, 2:34:00 AM11/14/23
to google-apps-sc...@googlegroups.com
Salah,
How often do you open this spreadsheet? Daily? Weekly? Monthly?

I ask because there are two ways to set this up.. One that triggers the script to check the sheet on a time based trigger or more simply and reliably via an onOpen function that runs the script to check the sheet when the worksheet is opened.



--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/272b233c-48f4-446a-b330-64acdc9865can%40googlegroups.com.

Keith Andersen

unread,
Nov 14, 2023, 2:36:13 AM11/14/23
to google-apps-sc...@googlegroups.com
I'm curious Andrew,
What would you charge to write such a script??
Cheers
Keith 

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.

Salah El Hagin

unread,
Nov 14, 2023, 3:35:15 AM11/14/23
to Google Apps Script Community
Not looking to hire someone sorry

Salah El Hagin

unread,
Nov 14, 2023, 3:35:15 AM11/14/23
to Google Apps Script Community
It depends on the need , maybe every week or 10 days, i don't want the script to be triggered based on activity in the sheet , i want it to run automatically even if the sheet is not active

Keith Andersen

unread,
Nov 14, 2023, 3:53:42 AM11/14/23
to google-apps-sc...@googlegroups.com
How many columns are on the sheet?
Which column holds the date??
Please show me the format that the date is in..

When I get on my computer tomorrow I will work on this for you..

Salah El Hagin

unread,
Nov 14, 2023, 4:00:39 AM11/14/23
to Google Apps Script Community
the sheet has info starting colom A until M , the date is in colom G.
this is the date format  01/01/2024.
Thank you so much for your help.

Thank y

Keith Andersen

unread,
Nov 14, 2023, 11:23:13 PM11/14/23
to google-apps-sc...@googlegroups.com
Salah,
I have created a spreadsheet that has the necessary code and you can play around with it before you incorporated into your needs.

I have attached a video as a demonstration to show you how to set up the daily trigger to fire the function to run once a day.

The link to the sheet is in the description of the video. The sheet is read only and all you need to do is make a copy of it into your account and you will have complete editor access.

If there's any questions feel free to reach back out.

Cheers
Keith

Keith Andersen

unread,
Nov 15, 2023, 12:01:07 AM11/15/23
to google-apps-sc...@googlegroups.com
Salah,
Are you able to code? 

I don't want to wrongly assume you know how to code in app script.

If you can't and need me to incorporate the code into your sheet - I can do that for you.

Cheers
Keith 

Salah El Hagin

unread,
Nov 15, 2023, 5:02:29 AM11/15/23
to Google Apps Script Community
I really your help and support. I tried to copy the code, but unfortunately, I couldn't make it work.

Could I share the sheet with you to seek your assistance in adding the script?

Keith Andersen

unread,
Nov 15, 2023, 9:59:16 AM11/15/23
to google-apps-sc...@googlegroups.com

Salah El Hagin

unread,
Nov 15, 2023, 10:36:54 AM11/15/23
to google-apps-sc...@googlegroups.com
I sent you an email with the file link, thank you so much for your support 

You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/drc2ORrBz3w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAJ8MD4wfTUHGnphA6%3D%2BUerrO2h__R%2BOGy8DFdwOKaXSePkmYKA%40mail.gmail.com.

Keith Andersen

unread,
Nov 15, 2023, 11:03:14 AM11/15/23
to google-apps-sc...@googlegroups.com

RAKESH SHARMA

unread,
Nov 16, 2023, 1:45:59 AM11/16/23
to google-apps-sc...@googlegroups.com
Pls share me googol sheet I will set formulas on it…

Salah El Hagin

unread,
Nov 16, 2023, 4:02:20 AM11/16/23
to Google Apps Script Community
thank you so much rakesh for your message , but Keith thankfully helped me with the scripts.
Thank you all for your help and support 
Reply all
Reply to author
Forward
0 new messages