Web Service Gateway - read custom properties?

Using the WSG API, is there a way to create a query to also retrieve custom properties (metadata) to a document.

A request like this localhost/.../{instanceId} only returns the basic PW metadata (formatted as json).

Parents
  • I actually came across the answer in another post.

    """

    1) One of the examples to execute a search would be:
    /PW_WSG/SavedSearchDefinition?$filter=Name like 'Documents'
    where variable 'Documents' is the criterion by which you want to search. it may be any value.
    More information about other query options, please find the article on Developer's guide at:
    /Pages/documentation/api_ref.html#6_7_Instance_querying_options
    2) To get a Document custom properties, you could use this query:
    /pw_wsg/document?$select=DocumentEnvironment-forward-Environment!poly.*,*
    that would apply for all documents.
    Or you can get the custom properties for the specific document:
    /pw_wsg/document/{instanceId}?$select=DocumentEnvironment-forward-Environment!poly.*,*

    """

Reply
  • I actually came across the answer in another post.

    """

    1) One of the examples to execute a search would be:
    /PW_WSG/SavedSearchDefinition?$filter=Name like 'Documents'
    where variable 'Documents' is the criterion by which you want to search. it may be any value.
    More information about other query options, please find the article on Developer's guide at:
    /Pages/documentation/api_ref.html#6_7_Instance_querying_options
    2) To get a Document custom properties, you could use this query:
    /pw_wsg/document?$select=DocumentEnvironment-forward-Environment!poly.*,*
    that would apply for all documents.
    Or you can get the custom properties for the specific document:
    /pw_wsg/document/{instanceId}?$select=DocumentEnvironment-forward-Environment!poly.*,*

    """

Children
No Data