Requirement: Auto-generation and completion of a Google doc based on selections made by filtering options in Google sheets
Step-by-step:
There are x options listed in a spreadsheet.
I reduce them to the number I need via filtering.
I then have these options + the expanded details automatically added to a google doc template I've designed.
As an unexperienced programmer, it's very likely that the most convenient way to do something like this is by using Google Apps Script as it has services that help to extend Google Sheets and Google Docs among other Google apps. This service use JavaScript as programming language and it's possible to create and manage the script by using a web browser.
Experienced programmers that don't want to invest too much time on doing this might also find convenient to use Google Apps Script, but they might prefer to use the tools used for other projects might use CLASP or the Google Apps Script API.
Besides using Google Apps Script this could be done by using Google Docs API, Google Sheets API, Google Drive API and Google Cloud.
I am collecting Data via Google Forms, they go into a Google Spreadsheet.
Then I would Google Apps Script to enter the Data into a Webpage Formular.
Is this possible in anyway with Google Apps Script?
Update:
I would like to do Google Apps Script, go to a website( I don’t have control of the website, then get data from a google spread sheet and enter it into the fields then click on certain fields. I know I could to it via puppeteer. But I was thinking google Apps Script has something/sometype to interact with websites.
Not in the way you're thinking. If the target website is not secure you can "fake" a form submission on it by making a POST requesting using UrlFetchApp. But this will most likely not work on most sites.
You can use UrlFetchApp to get the target website but GAS won't render it or let you interact with it like puppeteer will.
there.
First time poster here. I've been using GAS to build a personal app that takes Telegram input and posts to a Google Sheet. It's a very simple app that helps manage a budget. I'm trying to extend the functionality to allow a couple friends who have expressed interest to post their own transactions to their own Google Sheets hosted on their own Google Accounts.
Right now the only way I can see to do that is to have them "share" their Google Sheet with my user account, which is obviously not preferable. I'd like the app to have authorized access, which would obviously require them to grant the access, but don't want a "shared" sheet.
Is there any way to do this within the Google App Script Editor enviroment? Or do I have to switch everything over to something like Google Cloud? If the latter, can anyone point me toward a tutorial on getting that done?
Thanks in advance.
i want allow my users to create google drive docs,sheet,folders,files etc. from my google classic site itself.
i don't have any idea how to do this.Can we use google drive api?
if yes ,how to call drive api from apps script to create new google sheets,docs etc.
or
is there any other way to create it.
i want to use this in my google sites
Anybody have any idea please let me know
It should be rather simple. Because you are working within Google Apps Script, you do not need to use the Drive API at all. You simply have to use the services made available to you by Google. Just read their documentation, like here. Right at the top, the first method clearly states SpreadsheetApp.create(name) will create a spreadsheet. Same thing with DocumentApp.create(name), FormApp etc.
I've use Google Apps Script before, but haven't bene programming for oabout a year now.
For a new project I would like to know if I should continue using Google Apps script or switch to HTMLService.
So first question is if Google Apps Script still is and well be supported by Google.
Second question is what are the main differences between HTMLService and Google Apps Script that make it worth switching.
If you mean should you use HTMLService or UIService within Google Apps Script, it would probably be best to use HTMLService as UIService is deprecated.
UIService will appear in auto-complete until 30th June, but not after.
https://developers.google.com/apps-script/sunset?utm_campaign=htmlser-1214&utm_source=gadbc&utm_medium=blog
http://googleappsdeveloper.blogspot.co.uk/2014/12/speeding-up-htmlservice.html
https://developers.google.com/apps-script/guides/html/
For first Question: Yes, The Google app script used to make google products as custom like google spread sheet , google docs and we can insert the script into google sites so that we can share output through website.
For second Question: In Google app script the ClassUIApp is deprecated in that place we can using HTML services
https://developers.google.com/apps-script/reference/ui/ui-app
In the beginning Google App Script, all the code was written in one file one with .gs extension which included the code for User Interface, styling and business logic which made it complex as the application moved from small scale to enterprise level.
Also there was a restriction that you have to use the UI components from App Script (UiApp) which was not welcomed by the existing community of web developers as it was limited and needed to be learned and could not offer all the features a programmer may require.
Therefore in order to make it popular among existing community of developers App Script gave the ability of writing HTML pages as part of the project which was very helpful as it is widely used for designing all kinds of UI.
So, as you can see here that Google has made a shift, and hence HTMLservice is the future.
Google Apps Script was design for interact with google apps, so, if you are working with google drive, calendar, maps. You must use apps script, It's is easy and fast to implement.
But if you don't need use Google Apps may be is better use another software because how I told you before, Apps Script was created for interact with Google Apps and works awesome.
Google say: "The HTML service lets you serve web pages that can interact with server-side Apps Script functions. It is particularly useful for building web apps or adding custom user interfaces in Google Docs, Sheets, and Forms. You can even use it to generate the body of an email."
https://developers.google.com/apps-script/guides/html/
The purpose is different, what do you want to do?
Been following updates from Google in regard to GAS for over 6 months now. Google is putting a lot of resource into GAS and I don't think there should be any concern about it being deprecated.
And HTMLService is a class that can be called from inside the script editor so I don't know why one would need to choose one or the other.
Just go into the script editor and press control + space bar at the same time and you'll see all the classes available to you in alphabetical order. Scroll down to H and you'll see HTMLService. I haven't used it yet but it's there to work with.
HTMLService is a service to serve HTML pages through Google Apps Script. You can use HtmlService as a normal web page.