In many cases you'll need a document object to perform actions on it. Here are the basics:
Create an application session
Create an application session
AuthenticationProperties authProps = null;
Run your query to find the document's handle. Creating a SQL connection and running it is in a separate post.
long docID = Convert.ToInt64(dr[0].ToString().Trim());
Document doc = g_Application.Core.GetDocumentByID(docID);
Once you have a document object you can update keys, attach lifecycles, etc.
But UnIdexed document can not be accessed with this function
ReplyDelete