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.
Solved! Go to Solution.
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.
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.
Great.. This was what i was looking for. Thank you so much Axel.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.