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 8565781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:30:24+00:00 2026-06-11T17:30:24+00:00

I wanted to ask what’s the difference between the value in the adressline and

  • 0

I wanted to ask what’s the difference between the value in the adressline and the id I get when i use getId().
For example for one document the getId() value is:

t8K_TLQPmKzgB72pY4TblUg

while in the adressline the key is:

0Amu7sNvd2IoudDhLX1RMUVBtS3pnQjcycFk0VGJsVWc

what i figured out so far is that when you encode getId in base64 you get more or less the last part of the key in the adressline

 (base64Encode(t8K_TLQPmKzgB72pY4TblUg) = dDhLX1RMUVBtS3pnQjcycFk0VGJsVWc=).

But I still don’t know what 0Amu7sNvd2Iou stands for, because i have the impression that this parts also is different in older documents, therefore i can’t just combine the key using all the time 0Amu7sNvd2Iou at the beginning

Why I need to know this: my scripts use the getId method but some users fill in their ids manually (they just copypaste it from the key from the adressline). The result is that when i try to compare them although they refer to the same document i can’t match them like they are completly different…

thanks a lot for bringing light into this problem

edit @taras:
i can also open the document with the key and the id. It’s just weird that there are kind of two different id’s for one document. If for example i want to compare if a value somebody copypasted from the adressline to a document is the same as the file i have opened i won’t get a true, even it is the same file

var keyFromHeadline = "0Amu7sNvd2IoudDhLX1RMUVBtS3pnQjcycFk0VGJsVWc"
var id = SpreadsheetApp.getActiveSpreadsheet.getId();
if (keyFromHeadline==id) Browser.msgBox("blabla")

Therefore i would be interested what is the reason for the two different values and how i could match them

  • 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-11T17:30:26+00:00Added an answer on June 11, 2026 at 5:30 pm

    If you need to have unique file IDs just normalize them. Everytime a user enters an ID manually just run it trough the fileIdNormalize function:

    function fileIdNormalize(id) {
      if (typeof id == 'string' && id.length > 0)
        return DocsList.getFileById(id).getId();
      return '';
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted to ask how can one use both spinner and button on the
I wanted to ask if there is any way i can get path of
I wanted to ask if anyone knows how to move map from one div
I wanted to ask whether it is possible to get the correct sizes of
I wanted to ask for a clarification about the use of RowFilter and its
I wanted to ask if anyone could help he get this code to work.
I wanted to ask if I want to get the first row in a
I wanted to ask if there is a direct and efficient way to get
I use wordpress and I wanted to ask, is there a way to use
just wanted to ask where I define initial class properties? From other languages I

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.