ProjectWise wep API (REST)

I am creating an application where I use the ProjectWise web API (REST) version 2.4.

I find the documentation quite sparse. I need help in two specific areas:

1) Saved searches

/PW_WSG/SavedSearchDefinition gives me all instances of saved searches, but I don't know how to "execute" a search.

2) Document custom properties

I need a way to get all the custom properties (the environment meta data) for a given document.

Can anybody help with these issues?

Regards 

Leif

Parents
  • Bentley Web Services Gateway has replaced ProjectWise Web Services Gateway; which is no longer in active development. Please consider updating your code to using the new and fully supported Bentley Web Services Gateway REST APIs, then feel free to search and ask any questions on the Bentley Mobile App Development forum.
  • Hi Swarnila,

    It is the BWSG 2.4 API that I am using. Maybe I was just wrong in calling it ProjectWise Web API - since the B in BWSG is probably "Bentley"?

    Is this the right and current version to use?

    Regards
    Leif
  • Hi Leif,

    Yes, Web API version 2.4 of Bentley Web Services Gateway is the latest available so far although soon we are about to release a new one.
    Answering to your original questions:
    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.*,*

    Hope it helps.

    Regards,
    Aleksas
Reply
  • Hi Leif,

    Yes, Web API version 2.4 of Bentley Web Services Gateway is the latest available so far although soon we are about to release a new one.
    Answering to your original questions:
    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.*,*

    Hope it helps.

    Regards,
    Aleksas
Children