r/GoogleAppsScript • u/MaineLady5 • Jul 20 '23
Question Help - where to start learning process?
Hey,
I'm an accountant whose really good at complex functions in sheets & excel. I see a huge benefit from learning Google App Script in my work, but I have no idea where to even start. Ideally I'd love to learn to pull data from outside sources to bring into my sheets. My work will pay for me to learn this, and I understand it'll take a long time.
My question here is, where do I even begin? Do you have any good suggestions of courses I could take?
Much appreciated!
12
Upvotes
2
u/marth141 Jul 20 '23
Asking here is a great place to learn. I too started with just sheet formulas then moved onto Google Apps Script.
Learning JavaScript would be great, however I highly recommend learning by doing.
Use the following link to learn about the urlfetchapp in Google Apps Script for getting information from outside sources. These are HTTP requests such as "GET" and "POST" where gets are self explanatory and posts are updates to gotten records.
https://developers.google.com/apps-script/reference/url-fetch/url-fetch-app
Here are also the docs to Google Spreadsheets itself
https://developers.google.com/apps-script/reference/spreadsheet
To navigate these docs, use the directory listings on the left.
Everything states what type it returns and you usually want to drill down on types from there. For example, spreadsheets usually goes...
"SpreadsheetApp > Spreadsheet Class > Sheet Class > Range Class > Values in Cells"
Which is expressed in code roughly like,
"SpreadsheetApp.getSpreadsheet().getSheet().getRange().getValues()"
I'm on a phone while writing. With the docs in hand though, go make your dreams. But realize that Google Apps Script is not perfect for everything. If you want to make rich and robust programs, you might need to get away from Google Apps Script.
Always feel free to ask in this community about problems and someone will definitely try to offer some help.
Cheers.