Last year while working for infamy, I found myself writing and rewriting certain code snippets repeated on different Apps Script files.
I decided to write a library That I can import into my projects when I start. This has been a game changer for me. I hope someone else will find value in this library.
This is a library that has a few functions that I use regular for Apps Script Development. This library creates a shorthand way of writing thing certain functions.
-
Copy this ID
17eRGld-ZaCCT5D5AKU9FLcG9PUfX8BQfDyS76ZWHQiX2a6zLlhz8yXPW -
Go to your Apps Script File or a New Apps Script File
-
In the Editor Tab, you should see a left panel with a section called Libraries.
-
Click on the + Icon to add this libary to your Apps Script.
-
Paste this Script ID
17eRGld-ZaCCT5D5AKU9FLcG9PUfX8BQfDyS76ZWHQiX2a6zLlhz8yXPWin the input section. -
Click on Lookup you should be able to see the versions that exist in the project.
-
Select the version with the highest number (Recommended).
-
Click on Add
-
You are ready to go.
To use the functions in the library type.
blanc.[function name]
blanc.filterByDate(array,col,startDate,endDate)