Payslip is Container-bound Script, for google sheet. It can help you send payslips only by one button click! Enjoy 😉
- To create a bound script, open a Google Sheets file, then select Tools > Script editor. To reopen the script in the future, do the same thing. Because bound scripts do not appear in Google Drive, that menu is the only way to find or open the script.
- Set some name for your project (a top left corner).
- Copy all files from src folder to your project. You can manually create scripts files in the project and copy-paste files names and files contents. Or use clasp for this purpose.
- Remove initially created .gs file from the project.
- Close script editor tab and reload sheet page. After these manipulations you will see new menu item - Payslip Manager. You on the right way 🤘
- Open Payslip > Settings. In field Duplicate message to insert appropriate email.
- Push the button Save settings.
- In local project folder, go to assets. Import file Payslip Template.docx in to your Google docs.
- Open your Gmail and create empty email draft.
- Copy all content of the file in Google docs into this email draft.
- Add some subject to the your draft. Example:
MC: Payslip for {{month}} {{name}}
.
- Add label payslip-template to this draft.
- Close the draft email.