Find Model operation
The Find Model operation retrieves the details of a model.
The following table describes the elements of the <items>
XML element and the adapter request. If not specified, the valid value for an element should be assumed to be a string.
Elements for the <items> XML element and adapter request for the Find 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 |
No |
|
Specifies the name of the manufacturer of the model |
No |
|
Specifies the details of the model |
No |
|
Specifies the category of the model
|
No |
|
Specifies the description of the model; is an array- type element |
No |
|
Specifies a brief description of the model |
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 the sample adapter request for the Find Model operation.
Sample adapter request for the Find Model operation
<hp-service-manager-request>
<entity>configurationitem</entity>
<entity-type>model</entity-type>
<request>
<operation-name>retrieve-model</operation-name>
<parameters>
<retrieve-model-request>
<model>
<keys>
</keys>
<instance>
<category>
<value>Desktops</value>
<type>String</type>
</category>
</instance>
</model>
</retrieve-model-request>
</parameters>
</request>
</hp-service-manager-request>
The following figure displays an adapter response for the Find Model operation.
Sample adapter response for the Find Model operation
<hp-service-manager-response>
<metadata>
<count>4</count>
</metadata>
<responses>
<response>
<metadata>
<count>4</count>
</metadata>
<item>
<metadata>
<status>success</status>
</metadata>
<parameters>
<model>
<keys>
<part-number>
<value>1003</value>
<type>String</type>
</part-number>
</keys>
<instance>
<part-number>
<value>1003</value>
<type>String</type>
</part-number>
<manufacturer>
<value>Compaq</value>
<type>String</type>
</manufacturer>
<model>
<value>RA-2001</value>
<type>String</type>
</model>
<category>
<value>Desktops</value>
<type>String</type>
</category>
<brief-description>
<value>Dell Desktop - Inspiron</value>
<type>String</type>
</brief-description>
<installed-quantity>
<value>10</value>
<type>Decimal</type>
</installed-quantity>
<quantity-available>
<value>2</value>
<type>Decimal</type>
</quantity-available>
<quantity-on-order>
<value>3</value>
<type>Decimal</type>
</quantity-on-order>
<min-order-amount>
<value>4</value>
<type>Decimal</type>
</min-order-amount>
<max-order-amount>
<value>5</value>
<type>Decimal</type>
</max-order-amount>
<order-lot-size>
<value>6</value>
<type>Decimal</type>
</order-lot-size>
<quantity-recieved>
<value>7</value>
<type>Decimal</type>
</quantity-recieved>
<quantity-reserved>
<value>8</value>
<type>Decimal</type>
</quantity-reserved>
<quantity-on-request>
<value>9</value>
<type>Decimal</type>
</quantity-on-request>
<quantity-unavailable>
<value>10</value>
<type>Decimal</type>
</quantity-unavailable>
<default-priority>
<value>11</value>
<type>Decimal</type>
</default-priority>
<default-quantity>
<value>12</value>
<type>Decimal</type>
</default-quantity>
<quantity-back-ordered>
<value>13</value>
<type>Decimal</type>
</quantity-back-ordered>
<cost>
<value>14</value>
<type>Decimal</type>
</cost>
<material-group>
<value>material group</value>
<type>String</type>
</material-group>
<GLNumber>
<value>g l Number</value>
<type>String</type>
</GLNumber>
<uniquequery>part.no="1003"</uniquequery>
<recordid>1003</recordid>
<g-l-number>
<value>g l Number</value>
<type>String</type>
</g-l-number>
</instance>
</model>
<status>SUCCESS</status>
<message>Success</message>
<schema-revision-date>2005.03.15 00:00:00</schema-revision-date>
<schema-revision-level>0</schema-revision-level>
<return-code>0</return-code>
</parameters>
</item>
<item> ... </item>
...
<item> ... </item>
</response>
</responses>
</hp-service-manager-response>
Comments
Log in or register to comment.