Web API - Retrieve related information from a ProjectWise Document

I am trying to retrieve some additional information for a document using the Bentley Web Services Gateway Web API. But can't find where to lookup the details.

Using the endpoint below, I can retrieve the document properties, but need to also find most of the information, but don't know how to lookup the user details, for CreatedById, FileUpdatedById, UpdatedById.

How do I retrieve the extra information?

https://{server}.bentley.com/ws/v2.5/repositories/{repository}/PW_WSG/Document/{document_id}

{
  "instances": [
    {
      "instanceId": "{document_id}",
      "schemaName": "PW_WSG",
      "className": "Document",
      "properties": {
        "CreateTime": "2018-11-09T01:33:55.767Z",
        "CreatedById": 8,
        "Description": "{document description}",
        "EnvironmentId": 0,
        "FileName": "{document file name}",
        "FileSize": "40708",
        "FileUpdateTime": "2018-11-09T01:33:57.897Z",
        "FileUpdatedById": 8,
        "Status": "Checked In",
        "IsFinal": false,
        "IsCheckedOut": false,
        "IsLatest": true,
        "IsLocked": false,
        "IsWorkflowStateChangeable": true,
        "IsWriteable": true,
        "MimeType": "unknown",
        "Name": "{document name}",
        "StateString": "",
        "IsReadOnly": false,
        "ParentGuid": "{parent guid}",
        "RelativeDirectory": "{relative directory}",
        "Sequence": 0,
        "StateId": 0,
        "UpdateTime": "2018-11-09T01:33:55.767Z",
        "UpdatedById": 8,
        "Version": "0",
        "WorkflowId": 0
      },
      "eTag": "{etag}"
    }
  ]
}
Parents
  • If you are using PW WSG Plugin version older than Update 3.2, then there is no way to get this information. To solve this, in Update 3.2 User endpoint was added that allows to get user's information. The URL to get specific user's information would be: https://{server}/ws/v2.8/repositories/{repository}/PW_WSG/User/{user_id}. Also with Update 3.3 new Document and Project properties were added that return user name for create and update actions. If you only need the user name, then these properties could be used.

Reply
  • If you are using PW WSG Plugin version older than Update 3.2, then there is no way to get this information. To solve this, in Update 3.2 User endpoint was added that allows to get user's information. The URL to get specific user's information would be: https://{server}/ws/v2.8/repositories/{repository}/PW_WSG/User/{user_id}. Also with Update 3.3 new Document and Project properties were added that return user name for create and update actions. If you only need the user name, then these properties could be used.

Children
No Data