How to get information out of iManage / Desksite

旧城冷巷雨未停 提交于 2019-12-21 19:10:51

问题


I have a customer with an interwoven system Desksite Version 8.0. I need to run a query or export such that I can get the document ID where comments = X, for an arbitrary value X. Alternatively any export of those two fields would work. I just need a list of all ID, Comment. I have to iteratively update another system based on the ID, Comment pairs. Even just a straight up document export would be beneficial at this point.


回答1:


This kind of query can be performed by using either SQL queries directly to Worksite's backend or using Worksite API

In my opinion using API is preferable since DB layout can change with different Worksite versions.

Assuming you have a connection to Worksite opened and a session logged in, using this function, you can perform document searches (including the type of search that you want) :

    private IManDMS mainDMS;
    private IManDatabase currentDatabase;


    public IManDocument[] SearchDocuments(Dictionary<imProfileAttributeID, string> dictProfleSearchParameters)
    {
        List<IManDocument> foundDocuments = new List<IManDocument>();
        IManProfileSearchParameters searchParams = mainDMS.CreateProfileSearchParameters();

        foreach (KeyValuePair<imProfileAttributeID, string> kvp in dictProfleSearchParameters)
            ((IManProfileSearchParameters)searchParams).Add((IManage.imProfileAttributeID)kvp.Key, kvp.Value);

        IManContents foundDocs = currentDatabase.SearchDocuments(searchParams, true);

        foreach (IManDocument document in foundDocs)
            foundDocuments.Add(document);

        return foundDocuments.ToArray();
    }


来源:https://stackoverflow.com/questions/4858066/how-to-get-information-out-of-imanage-desksite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!