Moving SharePoint documens and save it’s URL , create shorten URLs using SharePoint Document ID


The Problem


Suppose yo have this case

1-Important document uploaded to a document library in SharePoint site.

2-You sent the document URL to thousands of your customers

3-For organizing  reason the document is moved inside a folder in the document library or the document library itself is moved to other sub site.

4-The document link is failed to open by your thousands customers !

Also many problems as the above one another example you need to gave users a Shorten URL for a specific page in SharePoint.


The Solution


So the  feature “Document ID” is the solution !  , Document ID  introduce  a unique URL based on unique ID for each document “shorten link to the document”  even you move the document itself from location to another or move the document library from site to another.


How to configure Document ID feature


1-Click on site actions>>site settings from the root site , Under the “site collection administration” section, select site collection feature.

2-Looking for document ID service feature then click activate “see image below”


SharePoint Document ID feature

SharePoint Document ID feature


4- Go back to site settings page and click document ID settings under the site collection administration “see the image below”.


SharePoint Document ID Settings

SharePoint Document ID Settings


5- Enter the letter or number that will use as a prefix for the document ID  “see the image below”

6-From the above screen you can check the option “Reset all Document IDs in this Site Collection to begin with these characters.” actually this option will trigger a timer job that run nightly to create document Id for all old documents  .  Also you can configure the search scope for ID Lookup “we will describe more about search scope in another post ”  , click “Ok”.


SharePoint Document ID Settings Configuration

SharePoint Document ID Settings Configuration


Now the Document ID timer job created , so if you need to start it immediately follow these steps.


SharePoint Document ID Timer Jobs


1-go to Central Administration site and Under Monitoring -> Review job definitions  , make sure the view in the top right is selected for All then find “Document ID enable/disable job”  -> click on it then click “Run Now” button , you will find also anther job “Document ID assignment job ” this job for add document ID for all old documents , it’s created when you check the option “reset all”  – review step “6”


SharePoint Document ID Timer Jobs

SharePoint Document ID Timer Jobs


2-Open any document library in the site collection then modify the view to show the new “Document ID” column and upload any file for test


SharePoint Document ID

SharePoint Document ID


3-Now you can use this unique URL for any document like that http://<SiteURL>/_layouts/DocIdRedir.aspx?ID=WAELTEST-1-6&#8221; where the “WAELTEST-1-6” is the Document ID.


Create Shorten URL for SharePoint pages  using Document ID


You can create a Shorten URL for any SharePoint page using the same feature – just go to the “Pages” document library for example and view the “Document ID” column then send the URL for the page like the step 9 “http://<SiteURL>/_layouts/DocIdRedir.aspx?ID=WAELTEST-1-6” –  “see the image below-click for full size”

SharePoint Sorten URL using Document ID Feature

SharePoint Sorten URL using Document ID Feature


hope it will help and inspire you 🙂


55 thoughts on “Moving SharePoint documens and save it’s URL , create shorten URLs using SharePoint Document ID

  1. After I originally left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and now each time a comment is added
    I recieve four emails with the same comment. Is
    there an easy method you can remove me from that service?
    Thank you!

  2. Excellent goods from you, man. I have understand your stuff
    previous to and you’re just extremely great.
    I actually like what you have acquired here, really like what you are stating and the way in which you
    say it. You make it enjoyable and you still take care of
    to keep it wise. I can not wait to read much more from you.
    This is really a terrific website.

  3. I don’t know whether it’s just me or if everybody else experiencing issues with your site.
    It appears as though some of the written text on your posts are running off the
    screen. Can somebody else please provide feedback and let me know if
    this is happening to them too? This may be a issue with my browser because I’ve
    had this happen before. Many thanks

  4. What’s Going down i am new to this, I stumbled
    upon this I’ve found It positively helpful and
    it has helped me out loads. I’m hoping to give
    a contribution & help other users like its helped me.
    Good job.

  5. Thank you, I’ve just been looking for information approximately this topic for a while and yours is the best
    I’ve came upon so far. But, what in regards to the bottom line?
    Are you certain concerning the source?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s