Welcome to the new Box Support website. Check out all the details here on what’s changed.

Beginner question - How do I get the File ID for file if I know path and file name?

New post

Comments

4 comments

  • Kourtney

     If you just want a link to the file instead of displaying the actual file on your webpage then yes, a shared link is the way to go. Do you have access to the file in the webapp? If so, the easiest way to get a file ID is to navigate to the file within the webapp and look at the URL, which will be something like: https://kourtneybiz.app.box.com/file/412627423792. In this example 412627423792 is the file ID. 

    0
    Comment actions Permalink
  • Brent_M

    Hey Kourt,

    Thanks for the reply.

    I think we may be using the webapp.  I can put in a URL like:

    "https://MyCompanyName.app.box.com/folder/0123456789" and get to the exact folder I want.

     

    So now I have a new question.  You know how on that page there is a  "Search Files and Folders" box at the top.

    Is there someway that I can add text to my URL to have that text auto-populate that Search box?

    Thanks,

    0
    Comment actions Permalink
  • Kourtney

     

     

    Would you be able to share a little more about your use case for "add[ing] text to my URL to have that text auto-populate that Search box"? 

    0
    Comment actions Permalink
  • Brent_M

    We have folders divided up by plant.   In each folder, our file names start with Order-Item number.  We only want to see the files for the particular order/item we pass to the search.  (We don't want the user to have to bother typing or copy/pasting into the search bar.  We want it automated.)

     

    Someone in our company figured it out.  You do it like this:

     

    https://MyCompany.app.box.com/folder/1234567890/search?metadata=&owners=&query="11111111_222"

     

    If there is documentation on how to very useful things like this, I would like to know where to find it.

    Any other useful tips along this line?

    Thanks

    0
    Comment actions Permalink

Please sign in to leave a comment.