ScriptId of a library

17 views
Skip to first unread message

petr.s...@broadcom.com

unread,
Jan 11, 2022, 3:18:03 PM1/11/22
to Google Apps Script Community
Hello,

I'm looking for a way how to get a script id of a library.
Something like the following.
Library
function libId()
{
   ScriptApp.getScriptId();
}

Program
function caller()
{
  libId() //but here I need to get the library id. It gives me the program id instead, which makes sense but I can't come up with a way how to get the lib id instead.
}
Please help.
Thank you!
Petr

Tanaike

unread,
Jan 12, 2022, 1:24:19 AM1/12/22
to Google Apps Script Community
If the library has already been installed, how about checking the manifest file ("appsscript.json")? The file of "appsscript.json" includes the information of the installed library. The file ID of the library can be retrieved from the file. But this is not the direction you expect, I apologize.
Reply all
Reply to author
Forward
0 new messages