Is there anyway to expose the item ID in the DIP or column in a document library?

Posted on 2011-04-28
Last Modified: 2012-05-11
I need to create a unique file name in my document library.

I'd like to use the unique item ID on save in Excel VBA.

is it possible to get at this information?
Question by:sullisnyc44
    LVL 14

    Expert Comment

    You cannot edit the ID field it is a read only .
    even on the API it is a read only attribute.

    Author Comment

    ok. No need to edit it, just want to read it.

    How can I expose it?
    LVL 14

    Accepted Solution

    You can use InfoPath to edit , and republish the template.

    it is an InfoPath form and you can set it anyway you want.

    Here is a nice article about 2010 but it applies to 2007.

    The attribute might be named coreProperties:Identifier or you can create a new connection into the same list and get the ID.

    The problem is You are coding against the Content Type not the list, that will be tricky.

    best of luck.

    Author Comment

    ah, I see.

    I think you are probably right - thanks for the info though - I will try it out (and post back if it works)

    Author Closing Comment

    Sounds plausible - need to test.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    I recently came across an issue with a MOSS 2007 deployment where access into some sub-sites were denied, even for the MOSS farm administrators. A bit of background to the setup of this MOSS farm; this was a three server setup, consisting of a fr…
    Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now