This structure is used to uniquely identify a project. Projects can be identified by ProjectCode or ProjectUid. When specifying a PwsProjectRef as an input to a web service, you may specify one or both the ProjectCode and/or ProjectUid. However, if you do specify both, they must both refer to the same project or the project reference will not be considered valid. When a PwsProjectRef is returned in the response to a web service, both the ProjectCode and ProjectUid will be populated, and guaranteed to refer to a single project.
Element | Data Type | Description | Sample Data |
---|
ProjectCode | String | This is the project code, which can uniquely identify a project | P001395-001 |
ProjectId | Int32 | This is the project id. For internal use only. |
|
ProjectUid | Int64 | This is the unique identifier of a project | 1152921504607412209 |
Usage Example(s)
Code Block |
---|
language | xml |
---|
title | Example 01 - Project Code Only |
---|
collapse | true |
---|
|
<com:PwsProjectRef>
<com:ProjectCode>P001395-001</com:ProjectCode>
<!--com:ProjectId>?</com:ProjectId-->
<!--com:ProjectUid>?</com:ProjectUid-->
</com:PwsProjectRef> |
Code Block |
---|
language | xml |
---|
title | Example 02 - ProjectCode and ProjectUid |
---|
collapse | true |
---|
|
<com:PwsProjectRef>
<com:ProjectCode>P001395-001</com:ProjectCode>
<!--com:ProjectId>?</com:ProjectId-->
<com:ProjectUid>1152921504607412209</com:ProjectUid>
</com:PwsProjectRef> |