Delete Model operation
The Delete Model operation deletes the details of a model.
Delete wrappers can delete only a single record. If information provided in the request refers to zero or more than one record, then no record is deleted. The entry to be deleted is first located by executing a logical AND operation using the elements provided in request. The located entry is then deleted.
The following table describes the elements of the <items>
XML element and the adapter request. If not specified, the valid value for an element is assumed to be a string.
Elements for the <items> XML element and adapter request for the Delete Model operation
Element |
Definition |
Required |
---|---|---|
|
Specifies the name of the operation: |
Yes |
|
Contains the other elements in the request |
Yes |
|
Contains elements that uniquely identify a record |
Yes |
|
Specifies a unique model record |
Yes |
|
Specifies the part number of a model |
Yes |
|
Specifies the name of the manufacturer of the model |
No |
|
Specifies the details for a model |
No |
|
Specifies the category of the model
|
No |
|
Specifies the description of the model; is an array- type element |
No |
|
Specifies a title or a brief description of the incident record |
No |
|
Specifies the installed quantity for the model |
No |
|
Specifies the available quantity for the model |
No |
|
Specifies the quantity on open purchase orders or manufacturing orders for the model |
No |
|
Specifies the minimum number of the models required to place a purchase order |
No |
|
Specifies the maximum quantity that can be ordered when purchasing the model |
No |
|
Specifies the size details of the order for the model |
No |
|
Specifies the quantity of the model that was received |
No |
|
Specifies the quantity of the model that is reserved |
No |
|
Specifies the quantity for the model that is available on request |
No |
|
Specifies the quantity for the model that is not available |
No |
|
Specifies the default priority for the model |
No |
|
Specifies the default quantity for the model |
No |
|
Specifies the quantity for the model that could not be filled on the requested date |
No |
|
Specifies the cost for the model |
No |
|
Specifies the material group for the model |
No |
|
Specifies the GL Number for the model |
No |
|
Specifies the GL number for the model |
No |
The following figure displays a sample adapter request for the Delete Model operation.
Sample adapter request for the Delete Model operation
<hp-service-manager-request>
<entity>configurationitem</entity>
<entity-type>model</entity-type>
<request>
<operation-name>delete-model</operation-name>
<parameters>
<delete-model-request>
<model>
<keys>
<part-number>
<value>421</value>
<type>String</type>
</part-number>
</keys>
<instance>
</instance>
</model>
</delete-model-request>
</parameters>
</request>
</hp-service-manager-request>
The following figure displays an adapter response for the Delete Model operation.
Sample adapter response for the Delete Model operation
<hp-service-manager-response>
<metadata>
<count>1</count>
</metadata>
<responses>
<response>
<metadata>
<count>1</count>
</metadata>
<item>
<metadata>
<status>success</status>
</metadata>
<parameters>
<model>
<keys>
<part-number>
<value>421</value>
<type>String</type>
</part-number>
</keys>
<instance>
<part-number>
<value>421</value>
<type>String</type>
</part-number>
<manufacturer>
<value>Internal Access</value>
<type>String</type>
</manufacturer>
<model>
<value>Work Order</value>
<type>String</type>
</model>
<category>
<value>New Lines</value>
<type>String</type>
</category>
<description>
<type>Array</type>
<description>
<element>
<value>Setup Telephone Equipment</value>
<type>String</type>
</element>
</description>
</description>
<brief-description>
<value>Telephone Equipment Setup</value>
<type>String</type>
</brief-description>
<installed-quantity>
<value>0</value>
<type>Decimal</type>
</installed-quantity>
<quantity-available>
<value>0</value>
<type>Decimal</type>
</quantity-available>
<quantity-on-order>
<value>0</value>
<type>Decimal</type>
</quantity-on-order>
<min-order-amount>
<value>0</value>
<type>Decimal</type>
</min-order-amount>
<max-order-amount>
<value>0</value>
<type>Decimal</type>
</max-order-amount>
<order-lot-size>
<value>0</value>
<type>Decimal</type>
</order-lot-size>
<quantity-recieved>
<value>0</value>
<type>Decimal</type>
</quantity-recieved>
<quantity-reserved>
<value>0</value>
<type>Decimal</type>
</quantity-reserved>
<quantity-on-request>
<value>0</value>
<type>Decimal</type>
</quantity-on-request>
<quantity-unavailable>
<value>0</value>
<type>Decimal</type>
</quantity-unavailable>
<quantity-back-ordered>
<value>0</value>
<type>Decimal</type>
</quantity-back-ordered>
<cost>
<value>24</value>
<type>Decimal</type>
</cost>
<uniquequery>part.no="421"</uniquequery>
<recordid>421</recordid>
</instance>
</model>
<messages>
<element>
<value>All modelvendor records for Part No 421 have been deleted.</value>
</element>
<element>
<value>Model record deleted.</value>
</element>
</messages>
<status>SUCCESS</status>
<message>Success</message>
<schema-revision-date>2007.04.04 00:00:00</schema-revision-date>
<schema-revision-level>0</schema-revision-level>
<return-code>0</return-code>
</parameters>
</item>
</response>
</responses>
</hp-service-manager-response>
Comments
Log in or register to comment.