how to get value of nm:publishState (from properties) using Alfresco node browser?

cancel
Showing results for 
Search instead for 
Did you mean: 
faisalek
Member II

how to get value of nm:publishState (from properties) using Alfresco node browser?

Jump to solution

I want to use Alfresco Node browser from comment line using HTTP GET command to fetch the nmSmiley TongueublishState 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.

1 Solution

Accepted Solutions
afaust
Master

Re: how to get value of nm:publishState (from properties) using Alfresco node browser?

Jump 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.

View solution in original post

2 Replies
afaust
Master

Re: how to get value of nm:publishState (from properties) using Alfresco node browser?

Jump 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.

faisalek
Member II

Re: how to get value of nm:publishState (from properties) using Alfresco node browser?

Jump to solution

Great.. This was what i was looking for. Thank you so much Axel.