02-20-2018 10:05 AM
I want to use Alfresco Node browser from comment line using HTTP GET command to fetch the nmublishState property of a document.
I am trying to use the URL : http://<hostname>:8080/share/page/console/admin-console/node-browser#state=panel%3Dview%26nodeRef%3Dworkspace%253A%252F%252FSpacesStore%252F49afb795-2343-fdfd-8053-1cedeeb36487%26search%3Dworkspace%253A%252F%252FSpacesStore%252F49afb795-2343-fdfd-8053-1cedeeb36487%26lang%3Dnoderef%26store%3Dworkspace%253A%252F%252FSpacesStore but unable to get the property value. Could you please help with the steps to get this property.
02-20-2018 02:16 PM
There is no operation to just get a single property value. The URL you listed refers to the Node Browser admin tool in the Share UI to provide an HTML view of a node. If you want to have a structured view of a document, which would include the property you are looking for, you can call http://<hostname>:<port>/alfresco/s/webframework/content/metadata?id=workspace://SpacesStore/<uid> which will return a JSON structure, including the properties of the node. Be aware that you need to perform HTTP BASIC authentication as a valid user to access the document. There is an alternative URL http://<hostname>:<port>/alfresco/wcs/webframework/content/metadata?id=workspace://SpacesStore/<uid> for clients wishing to use single sign-on mechanisms.
02-20-2018 02:16 PM
There is no operation to just get a single property value. The URL you listed refers to the Node Browser admin tool in the Share UI to provide an HTML view of a node. If you want to have a structured view of a document, which would include the property you are looking for, you can call http://<hostname>:<port>/alfresco/s/webframework/content/metadata?id=workspace://SpacesStore/<uid> which will return a JSON structure, including the properties of the node. Be aware that you need to perform HTTP BASIC authentication as a valid user to access the document. There is an alternative URL http://<hostname>:<port>/alfresco/wcs/webframework/content/metadata?id=workspace://SpacesStore/<uid> for clients wishing to use single sign-on mechanisms.
02-21-2018 02:23 AM
Great.. This was what i was looking for. Thank you so much Axel.
Explore our Alfresco products with the links below. Use labels to filter content by product module.