newItemRevision
This import model makes it possible to insert revisions for items or item families.
caution
- To insert a released item revision, the
DTREVISIONfield must be completed. - Date fields must be completed in the YYYY/MM/DD format.
- The item type must be configured to allow customized identifiers so that the
value entered in the
IDREVISIONfield can be applied. - For numeric fields, use
.as a decimal separator.
To insert each of these items, it is necessary to follow the standard documented below.
| Java class | |
|---|---|
| Request | web\wwwroot\ws\java\item\NewItemRevisionRequestType.java |
| Return | web\wwwroot\ws\java\item\NewItemRevisionResponseType.java |
Request:
| ID # | Required | Description |
|---|---|---|
| IDOBJECT | X | Object ID # |
| NMOBJECT | Object name | |
| IDTEAM | Responsible team ID # | |
| IDMEASUNITY | Measurement unit | |
| FGPHYSICALSTATE | Physical state: 1 - Solid; 2 - Liquid; 3 - Gas; 4 - Sludge. | |
| IDODOR | Odor ID # | |
| NMCOLOR | Color name | |
| IDONUCODE | UN code | |
| IDDANGEROUSNESS | Hazard ID # | |
| IDCLASSIFICATION | Classification ID # | |
| IDABNTCODE | ABNT code | |
| DTREVISION | Revision date, in the YYYY/MM/DD format | |
| IDREVISION | Revision ID # | |
| IDUSER | X | User ID. |
| DSCONSTITUENTS | General description of composition | |
| VLCOST | Item cost value | |
| IDDRAWINGNR | Drawing ID # |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:item">
<soapenv:Header/>
<soapenv:Body>
<urn:newItemRevision>
<!--You may enter the following 20 items in any order-->
<urn:IDOBJECT>?</urn:IDOBJECT>
<urn:NMOBJECT>?</urn:NMOBJECT>
<urn:IDTEAM>?</urn:IDTEAM>
<urn:IDMEASUNITY>?</urn:IDMEASUNITY>
<urn:FGPHYSICALSTATE>?</urn:FGPHYSICALSTATE>
<urn:IDODOR>?</urn:IDODOR>
<urn:NMCOLOR>?</urn:NMCOLOR>
<urn:IDONUCODE>?</urn:IDONUCODE>
<urn:IDDANGEROUSNESS>?</urn:IDDANGEROUSNESS>
<urn:IDCLASSIFICATION>?</urn:IDCLASSIFICATION>
<urn:IDABNTCODE>?</urn:IDABNTCODE>
<urn:DTREVISION>?</urn:DTREVISION>
<urn:IDREVISION>?</urn:IDREVISION>
<urn:IDUSER>?</urn:IDUSER>
<urn:VLCOST>?</urn:VLCOST>
<urn:IDDRAWINGNR>?</urn:IDDRAWINGNR>
<urn:DSCONSTITUENTS>?</urn:DSCONSTITUENTS>
</urn:newItemRevision>
</soapenv:Body>
</soapenv:Envelope>
Return:
| ID # | Description |
|---|---|
| Status | SUCCESS or FAILURE |
| Code | Success (1) or failure (-1) |
| Detail | Message about revision insertion, or error found. |