1

Is there a way to run a google app script from a different app script?

I'm just getting into google app scripts and I couldn't find anything on the internet.

3 Answers 3

2

It seems like you are looking for libraries functionality in Google App Script. Documentation

You can save a version of the script that you have the functions in it, and import the functions on to a second script file through menu>resources>libraries. You need to use script id for importing libraries, which you can find from menu>File>Project properties>Script ID

You can then execute the function using the script file name as the reference.

Sign up to request clarification or add additional context in comments.

Comments

1

You can use the Apps Script API, you may find this helpful Executing Functions using the Apps Script API

"The Apps Script API provides a scripts.run method that remotely executes a specified Apps Script function"

Comments

0

You can call google app script form javascript or web page. You have to implement doGet(or post) and publish your google app script.

I found good example.

Cheers.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.