Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7994187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:04:05+00:00 2026-06-04T14:04:05+00:00

I just see the new Manage Library to share our code. I get how

  • 0

I just see the new “Manage Library” to share our code.
I get how to share a library and how to include a specific version in another script but I don’t get how to call a function from the library.

In my library I have simply function

function test() {
  var ss = SpreadsheetApp.getActiveSpreadsheet();
  ss.toast("this is a test");
}

I open another spreadsheet and include the specific version of my library and I simply write

function onOpen() {
  test();
}

Sadly it doesn’t run …

Can you help me ?

UPDATE:
https://developers.google.com/apps-script/guide_libraries
https://developers.google.com/apps-script/guide_versions

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T14:04:06+00:00Added an answer on June 4, 2026 at 2:04 pm

    1) In your “library project” you should save as a version (File > Manage versions)

    2) In your “live project” you should add this library (Resources > Manage Libraries). Then add projectID hash and important is Identifier. (e.g. mylibrary). This is class, how to call method in your code

    mylibrary.test();

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

See code just bellow Our generic interface public interface Repository<INSTANCE_CLASS, INSTANCE_ID_CLASS> { void add(INSTANCE_CLASS
I just can't see what's wrong with this code.. it seems to be the
This is code from a class library: proc.StartInfo = new ProcessStartInfo(CmdPath, +an -b); proc.StartInfo.RedirectStandardOutput
Fair warning: I am no expert, but I did manage to get this far.
phpMySQL use backticks ` to surround column names, and I've just see people use
I have a Mercurial repository that I can see just fine if I navigate
I created a fresh project (Xcode 4, Master-Detail application) just to see if I'm
Basically just looking to see if you can capture an image from the webcam
I just want to see error insteas of asp.net showing me default error Server
I just wanted to see if there was a better way I should be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.