Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get the URL of a google script webapp inside the webapp

I've a google script deployed as a webapp. This webapp needs to send email with the URL of the webapp so that the recipient can access the webapp using the URL. How can i get the URL within the webapp?

like image 477
user1555157 Avatar asked Jul 26 '12 15:07

user1555157


1 Answers

You can use ScriptApp.getService().getUrl(); to get the URL of the published app in your code.

like image 112
Waqar Ahmad Avatar answered Oct 14 '22 08:10

Waqar Ahmad