Tmirror

How to Deploy Code in Google AppScripts : Step by Step Guide.


How to Deploy Code in Google AppScripts : Step by Step Guide.

Deploying apps script, Apps Script Web API deployment, Google Sheet apps script ko deploy kaise kare, Apps Script Deployment

Whenever you use Google Sheet or any other Google tool and you want to do some customization or any auto coding, there is no better option than Google Apps Script. Whenever you write code in Apps Script, you have to deploy it so that that code can be used. Let us understand about Deploying Apps Script.

To deploy Apps Script Web API, use the following steps.

STEP 1 : SELECT DEPLOY TYPE

For Deploying apps script, first of all you have to select the Deployment Type.

  • You have to click on Deploy Button.
  • After that you have to click on New deployment.
  • By doing this the following window will open. (If you have deployed once before then no window related to this permission will open)

The thing to be noted here is that if you have done deployment once before, you will not see any of the following options, you will directly get the link of Step 4 Web App.

STEP 2 : SELECT NEW DEPLOYMENT WEB APP

Here we have to select the type of deployment we want to do. Now we are understanding about Web Apps, so here we will select Web app option for which you will have to do the following steps.

  • On the above screen you have to click on the Settings icon.
  • From that we have to select Web App.

  • New Description:  Here you have to give the name of the deployment.
  •  Your Gmail ID will be selected in Web App Execute as:
  • Who has access:  You have to select whoever you want to give permission for execution. For now, select Anyone here.
  • Deploy:  After doing this click on Deploy Button.

Upon deployment the following screen will appear.

STEP 3 : AUTHORIZE ACCESS

In this you will have to give permission to authorize access. That means you will have to click on several Authorize Access buttons.

After this you will have to select your Gmail Account from which you want to give permission.

Using script in this way is not safe, there are security issues, so here Google gives you warning and informs you that whatever you are doing is unsafe, still if you want to authorize then (unsafe) Select the option.

After doing this, the Apps Script Project created by you asks for permission to view, create and delete the Google Sheet. On allowing from here, you are given a link.

STEP 4 : COPY WEB APP

After giving all the permissions, finally you are provided a Web app URL. You have to copy this link.

You can run the project by clicking on this link and you can also use this link in your project.

In this article, we have told about how to deploy any Apps Script project. We hope that you have understood this article How to Deploying Apps Script Web API very well.

How did you like this article (Deploying Apps Script)? Don’t forget to let us know, see you in the next article. Thanks for Reading.

comments powered by Disqus