In Gmail: Save attachments that are DMARC-reports and insert values from them in Google sheet. The reports are in XML-format.
- Create a folder and call it DMARC
- Create a sub-folder of DMARC and call it DMARC-reports, note the folder id
- Create a sub-folder of DMARC-reports and call it DMARC-archive, note the folder id
- Create a copy of Google sheet dmarc-report and put it in the DMARC-folder, note the file id. https://docs.google.com/spreadsheets/d/10crRusmMwmcTuiUMn0jwFRHSotbXXrNTRTPcx4hJI4U/copy
Go to https://script.google.com/home Click New project
Give the project a name (change the Untitled project) Copy the code from the GAS-file and paste it there.
Go to Triggers and Add Trigger
Change it settings so the script is trigged for instance once a day.