cancel
Showing results for 
Search instead for 
Did you mean: 

DataListItems in CMIS nt having 'dl:issueAssignedTo' value

sandhya25186
Champ in-the-making
Champ in-the-making
I am fetching the contents of a datalist item thru CMIS

http://localhost:8080/alfresco/s/cmis/p/Sites/ac/dataLists/b55ce555-9d27-463f-8d2c-33dd4dc3ab19/chil...

Its giving me all the Itemsvalues except dl:attachment and dl:issueAssignedTo

Where from can i get these values ??? Smiley Sad please help
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
An old post, but in case it helps, dl:attachments and dl:issueAssignedTo are not properties, they are associations. The issueAssignedTo association points to person objects, so those will not be retrievable from CMIS. The attachments association does point to a type that is a child of cmis:document, so you can retrieve those. You'll need to use getRelationships.

Here is what it looks like when you grab a data list that has three attachments using Python:
>>> dl = repo.getObject('workspace://SpacesStore/75374df2-37cf-497c-b10e-061215df4b3c;1.0')
>>> rels = dl.getRelationships()
>>> len(rels)
3
>>> rels[0].name
u'16|workspace://SpacesStore/75374df2-37cf-497c-b10e-061215df4b3c|workspace://SpacesStore/d9e5a020-2f47-4c29-b1e5-b0f212e26587|{http://www.alfresco.org/model/content/1.0}attachments'
>>> rels[0].getTarget().name
u'test-plain-1.txt'
>>> rels[1].getTarget().name
u'test-plain-2.txt'
>>> rels[2].getTarget().name
u'test-plain-3.txt'

Jeff
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.