Find Contact operation
The Find Contact operation retrieves the details of a contact.
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 Contact 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 record |
Yes |
|
Specifies the contact name related to the contact |
No |
|
Specifies the employee ID of the contact |
No |
|
Specifies the business shift of the contact |
No |
|
Specifies the department of the contact |
No |
|
Specifies the last name of the contact |
No |
|
Specifies the first name of the contact |
No |
|
Specifies the work phone number of the contact |
No |
|
Specifies the extension number of the contact |
No |
|
Specifies the location of the contact |
No |
|
Specifies the floor of the contact |
No |
|
Specifies the email ID of the contact |
No |
|
Specifies the home phone number of the contact |
No |
|
Specifies the primary configuration item related to the contact |
No |
|
Specifies the building related to the contact |
No |
|
Specifies the mobile phone number of the contact |
No |
|
Specifies the name of the company of the contact |
No |
|
Specifies the manager of the contact |
No |
|
Specifies the contract ID of the contact |
No |
|
Specifies whether the contact is a critical user |
No |
|
Specifies whether the contact requires an entitlement |
No |
|
Specifies the full name of the contact |
No |
The following figure displays the sample adapter request for the Find Contact operation.
Sample adapter request for the Find Contact operation
<hp-service-manager-request>
<entity>configurationitem</entity>
<entity-type>contact</entity-type>
<request>
<operation-name>retrieve-contact</operation-name>
<parameters>
<retrieve-contact-request>
<model>
<keys>
<contact-name>
<value>MyContactName2</value>
<type>String</type>
</contact-name>
</keys>
<instance>
<contact-name>
<value>MyContactName2</value>
<type>String</type>
</contact-name>
<employee-i-d>
<value>employee i d</value>
<type>String</type>
</employee-i-d>
<shift>
<value>Shift</value>
<type>String</type>
</shift>
<department>
<value>department</value>
<type>String</type>
</department>
<last-name>
<value>last name</value>
<type>String</type>
</last-name>
<first-name>
<value>first name</value>
<type>String</type>
</first-name>
<work-phone>
<value>Work phone</value>
<type>String</type>
</work-phone>
<extension>
<value>Extension</value>
<type>String</type>
</extension>
<location>
<value>Location</value>
<type>String</type>
</location>
<floor>
<value>Floor</value>
<type>String</type>
</floor>
<email>
<value>Email</value>
<type>String</type>
</email>
<home-phone>
<value>Home phone</value>
<type>String</type>
</home-phone>
<primary-configuration-item>
<value>Primary Configuration Item</value>
<type>String</type>
</primary-configuration-item>
<building>
<value>Building</value>
<type>String</type>
</building>
<mobile-phone>
<value>Portable</value>
<type>String</type>
</mobile-phone>
<company>
<value>Company</value>
<type>String</type>
</company>
<manager>
<value>Manager</value>
<type>String</type>
</manager>
<contract-i-d>
<value>19</value>
<type>Decimal</type>
</contract-i-d>
<critical-user>
<value>true</value>
<type>Boolean</type>
</critical-user>
<requires-entitlement>
<value>true</value>
<type>Boolean</type>
</requires-entitlement>
<full-name>
<value>FullNamenew</value>
<type>String</type>
</full-name>
</instance>
</model>
</retrieve-contact-request>
</parameters>
</request>
</hp-service-manager-request>
The following figure displays an adapter response for the Find Contact operation.
Sample adapter response for the Find Contact 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>
<contact-name>
<value>MyContactName2</value>
<type>String</type>
</contact-name>
</keys>
<instance>
<contact-name>
<value>MyContactName2</value>
<type>String</type>
</contact-name>
<employee-i-d>
<value>employee i d</value>
<type>String</type>
</employee-i-d>
<shift>
<value>Shift</value>
<type>String</type>
</shift>
<department>
<value>department</value>
<type>String</type>
</department>
<last-name>
<value>last name</value>
<type>String</type>
</last-name>
<first-name>
<value>first name</value>
<type>String</type>
</first-name>
<work-phone>
<value>Work phone</value>
<type>String</type>
</work-phone>
<extension>
<value>Extension</value>
<type>String</type>
</extension>
<location>
<value>Location</value>
<type>String</type>
</location>
<floor>
<value>Floor</value>
<type>String</type>
</floor>
<email>
<value>Email</value>
<type>String</type>
</email>
<home-phone>
<value>Home phone</value>
<type>String</type>
</home-phone>
<primary-configuration-item>
<value>Primary Configuration Item</value>
<type>String</type>
</primary-configuration-item>
<building>
<value>Building</value>
<type>String</type>
</building>
<mobile-phone>
<value>Portable</value>
<type>String</type>
</mobile-phone>
<company>
<value>Company</value>
<type>String</type>
</company>
<manager>
<value>Manager</value>
<type>String</type>
</manager>
<contract-i-d>
<value>19</value>
<type>Decimal</type>
</contract-i-d>
<critical-user>
<value>true</value>
<type>Boolean</type>
</critical-user>
<requires-entitlement>
<value>true</value>
<type>Boolean</type>
</requires-entitlement>
<full-name>
<value>FullNamenew</value>
<type>String</type>
</full-name>
<uniquequery>contact.name="MyContactName2"</uniquequery>
<recordid>MyContactName2</recordid>
</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>
</response>
</responses>
</hp-service-manager-response>
Comments
Log in or register to comment.