searchResult Event
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Returns a query result: zero or more users.
Syntax
<searchResult eid="134" rid="27" moreAvailable="true">
<user uri="sip:jessicaa@contoso.com" displayName="..." title="..."
...
</user>
</searchResult>
The following sections describe attributes, parent elements, and child elements.
Attributes
Attribute |
Data Type |
Description |
---|---|---|
eid |
integer |
Event Id. This is an integer value assigned by the Communicator Web Access Server. |
rid |
string |
Request Id. This is a string value assigned by the Unified Communications client. This is a required attribute. |
moreAvailable |
Boolean |
There are more results of the search to be returned. |
Element Information
Parent Element
Element |
Description |
---|---|
Holds the responses from the asynchronous data channel with which a Unified Communications AJAX API Client polls the server for updates that have taken place. |
Child Element
Element |
Occurrence |
Description |
---|---|---|
1 or more |
Holds the result of the search request. The attribute values of the user element are the user presence values. |
Remarks
Results do not have presence information. A client must send a queryPresence request for the resulting users to get their presence.
Examples
The client requests a search and the results of the search are returned asynchronously.
<searchResult eid="134" rid="20" moreAvailable="true">
<user uri="sip:jessicaa@contoso.com" displayName="..." title="..."
company="..." emailAlias="..." workPhone="..." homePhone="..."
cellPhone="..." otherPhone="..."
</user>
</searchResult>
To receive the presence of the returned user, the client requests the queryPresence method with the user element returned above:
<queryPresence rid="21">
<uris>
<uri>sip:jessicaa@contoso.com</uri>
</uris>
</queryPresence>