Google Apps Script to check Google Sheet for cell colour
Description
Hi, I have a client working in food preparation who stores dry food and frozen food to make meals. The expiry dates of the food is important and they need to avoid waste.
I need a Google Apps Script to check a Google Sheet for the background colour of cells in two columns that turn red (using conditional formatting) when the expiry date of the product is soon. This tells the client which ingredients to use first when making meals.
I would like the script to send an email if one or more of the product lines has a red background colour (indicating its imminent expiry). An example sheet (read-only) is available below: https://docs.google.com/spreadsheets/d/1BtdLG63l8nB2ppYcbLMknYN8PqdHmspIv9J6gPN3HB8/edit?usp=sharing
Ideally, the email will show the following: Email subject example (taken from Cell E2): "Restaurant Food Stores" Expiry Dates
Email body example in html table format: Section Item Name Batch Serial No. Exp. Date Dry 7 Flour 12345 XXX-XXX-XXXX Dry 7 pasta 1 asdfg XXX-XXX-XXXX Dry 7 milk powder 12345 XXX-XXX-XXXX
I look forward to hearing from you, Kindest regards Nick
Budget: GBP 20 (Fixed Price)
Proposals: 14 freelancers have applied