Hello,
Does anyone know how to get the identifier (Node ID) of an opened document from Content Server?
Thank you in advance!
Alexandra
By ‘opened’ do you mean a document in an edited state… meaning it’s checked out (reserved mode)?
From: eLink Entry: Content Web Services Forum [mailto:otdncontentwebservices971forum@elinkkc.opentext.com] Sent: Monday, February 20, 2012 3:37 AMTo: eLink RecipientSubject: Node ID of opened document
Node ID of opened document
Posted by amihai@munichre.com (Mihai, Alexandra) On 02-20-2012 04:32
[To post a comment, use the normal reply function]
Forum:
Content Web Services Forum
Content Server:
Knowledge Center
Hi,
Yes exactly, in edit mode.
Thank you!
.. Reserved, it's better said.
Hi Alexandra, The ID of a document does not change when it is reserved. To reserve/unreserve a document you can use the DocumentManagement.ReserveNode() and DocumentManagement.UnreserveNode() methods. Typically you would follow this sequence when dealing with reserving documents: 1) Reserve the document 2) Download the latest version 3) Make some changes 4) Upload a new version 5) Unreserve the document Let me know if you have any other questions. Jason
Hi jason,
Thank you very much for your response.
The document is reserved automatically because the user connects to Content Server via browser, and wants to edit the document. (Clicks on the edit option for a document)
I only need to get its identifier (of document is in edit mode)-> NodeID.
I am working on a Word Office Add-on and when the user clicks on a button, I will give him a link to the document and this link needs to contain the identifier.
thanks in advance!
I'm not sure I understand how you are hooking this in. Do you have any information already or are you just trying to get the IDs of all documents that are reserved by a user (presumably the currently logged in user)? Can you explain what you are trying to do in a little more detail? Thanks. J
So it looks to me that you've got a document opened in Word and you're trying to find out its node id. If it's been opened from the browser you'll find it from ActiveDocument.FullName or ActiveDocument.Path. If it's opened from Enterprise Connect then these don't give you the node id. From EC you do get the full location path names and document name but you'll need to find a way to translate these to node id.
Hope that's what you're looking for
Hi Alexandra,
The path http//:localhost:3579/dev/enterprise/folder1/folder2/folder3/name.docx is what you get if the document is opened from Enterprise Connect and possibly other mechanisms that use WebDAV. I'm fairly new to webservices and was about to start looking how to get the nodeid from this so your comment about GetNodeByPath will be helpful, thanks
As for your last issue, it might help if you could explain how you get this, as I doubt that you should be seeing it like this. That long string of characters looks like the contents of your authentication token so very odd how it got there.
Cheers
Rob
Hi Rob,
Many thanks for your reply.
Actually, I don't know why I get that URL as Fullname of the Document. I think it's a configuration issue on our Content Server.. and it's currently happening only for Business Workspaces type... and therefore I can't get the Node Identifier.
It's not the token/ticket but it's something that somehow identifies my own account, it's different for every account.
Best Regards,