How to get document ID in content server 10.5

Hi All,

I am exploring content server 10.5. Basically, I want to create an application which integrates the content server with the process suite 10.5.
I am developing a demo application. I am using the content server WSDL to generate external web services in Process suite.

My concerned is, all the web services for content server require an ID (uniquely identifies document or node in content server), to refer to that document or folder.

So how can I get the ID of a document or node(folder) ? Do we have any web service that does that ?
Also, how can I get a path to Admin Home ? Do we have any static path that defines Admin Home ?
Thanks.
Amit

Comments

  • Hey Amit,

    I think you might be interested in the following methods.

    /*
     * This will give you a list of all the root nodes. This includes
     * the personal workspace (Admin Home).
     */
    DocumentManagement.GetRootNodeTypes();
    /*
     * You can use the information you got from the above call to pass into
     * this handy function. It will give you the node information for that root node
     * including the node ID.
     */
    DocumentManagement.GetRootNode();
    /*
     * Finally, you can use the node ID you got in the above call and use this method
     * to get all the nodes contained within that node (and their respective ID's).
     */
    DocumentManagement.GetNodesInContainer();
    

    Hopefully this gets you on the right track!

    Thanks,
    Steve.

  • Hi Steve,

    Thank you for you reply and info.
    I will give it a try and see if I am getting desired results.

    Also, can we download/open a document from a URL ?
    I know using java we can get the document content but I want to open document as is using URL ?

    Something like this happens when we download a document.
    OTCS/livelink.exe?func=ll&objId=33130&objAction=download&viewType=1

    Can we pass authentication token in URL ?