【问题标题】:OpenText XMLExport url filtered on specific object type根据特定对象类型过滤的 OpenText XMLExport url
【发布时间】:2015-09-16 19:15:17
【问题描述】:

我使用 XMLEXPORT url 获取特定文件夹的内容:

cs.exe?func=ll&objid=1234&objAction=xmlexport&scope=sub

此 url 返回文件夹的完整内容。我只想拥有文件夹(objtype 0)

这种方法可行吗? (类似 'objtype=0' 的属性)

【问题讨论】:

    标签: opentext livelink


    【解决方案1】:

    您可能最好使用搜索 api - 您可以像这样访问子类型和父 ID:

    /otcs/llisapi.dll?func=search&lookfor1=complexquery&where1="OTSubType":"0"&boolean2=and&where2="OTParentID":"[root object id]"&goFor=[no of items to retrieve]&outputformat=xml

    一开始您不会知道预期有多少结果,并且 Content Server 默认会返回分页结果 - 要么调用一个巨大的数字 no of items to retrieve,要么调用两个 - 一个调用 no of items to retrieve 等于 1第二个等于Output.SearchResultsInformation.RawTotalResults

    OTSubTypeOTParentID 在您的实例中可能不是可搜索的字段。您可以通过转到 Content Server 管理 -> 搜索管理 -> 配置搜索过滤器屏幕,然后单击搜索管理器管理页面链接来查找可搜索的字段。

    如果您登录了 Knowledge.opentext.com,则 opentext 内容服务器 10.5 的搜索 api 帮助是 here

    请注意,这只会给出一个级别的结果 - 而不是像您的 XMLEXPORT url 那样的树。如果您需要更复杂的东西,也许您可​​以编写一个 livereport 并将其作为 xml 获取。

    【讨论】:

      猜你喜欢
      • 2012-11-15
      • 2020-03-07
      • 1970-01-01
      • 2017-05-25
      • 1970-01-01
      • 1970-01-01
      • 2017-04-30
      • 2015-10-31
      • 1970-01-01
      相关资源
      最近更新 更多