AnsweredAssumed Answered

Question about grabbing document properties

Question asked by gereeyehrmo on Nov 21, 2013
Latest reply on Nov 22, 2013 by jpotts
So I am having trouble with the description property from the service from my local alfresco server.  Here's what I am using:


Alfresco Version: Community Edition 4.2e
Service API URL: http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom/query
Data sent to service:

  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <cmis:query xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/"
    xmlns:cmism="http://docs.oasis-open.org/ns/cmis/messaging/200908/"
    xmlns:atom="http://www.w3.org/2005/Atom"
    xmlns:app="http://www.w3.org/2007/app"
    xmlns:cmisra="http://docs.oasisopen.org/ns/cmis/restatom/200908/">
    <cmis:statement><![CDATA[SELECT * FROM cmis:document WHERE CONTAINS('TAG:"photos"') ORDER BY cmis:lastModificationDate DESC]]></cmis:statement>
    <cmis:searchAllVersions>false</cmis:searchAllVersions>
    <cmis:includeAllowableActions>true</cmis:includeAllowableActions>
    <cmis:includeRelationships></cmis:includeRelationships>
    <cmis:renditionFilter></cmis:renditionFilter>
    <cmis:maxItems>60</cmis:maxItems>
    <cmis:skipCount>0</cmis:skipCount>
  </cmis:query>


And the attached xml (or https://gist.github.com/beverlyguillermo/7589952) is the resulting xml output.

In my test environment, every file has a description and I am expecting to see in the results "cm:description" in my SecondaryObjectTypeIds OR PropertyString "cmis:description"; but cm:description isn't there and the value for cmis:description is empty. Any insight on this issue would be helpful.

Thanks!


Attachments

Outcomes