Hello World Using Google App Script

Hello world in Google App Script


  1. Go to Your Google drive
  2. Go to your Google drive 
  3. Login your Google Drive account (https://drive.google.com/drive/)
  4. Click on NEW button
  5. Go to More  → Click on Google Apps Script apps
  6. Google Apps Script link redirect to App Script editor
      • Rename untitled project to meaning full one
      • Here we are using “First App Script Project”
      • Add below code in Coding area.

        function myFunction() {
           var msg="Hello World..!";
        Logger.log(msg)
        }
      • Save code (Ctrl+S/⌘+S )
      • Run functions: Click on Run-->Run function-->myFunction (Ctrl+R /⌘+R)
      • View Logs: Click on ViewLogs (Ctrl+Enter / ⌘+Enter)
      • Script Output: It will show result with timestamp.




Now your ready for dive in Google Apps Script coding…!


Happy Coding...

Comments

Popular posts from this blog

Google Apps Script Exception Handling

Google Apps Script Regular Expressions

Responsive Web Apps using Google Apps Script