Hi,
I am using the Javascript SDK where I perform a postUsersSearch. The search gives me a few results but the 'addresses' field always is an empty array. I am expect it to contain contact information.
The use case: I want to provide a sort of phonebook lookup in our integration and I need to obtain the phonenumber of the search results to continue the flow.
I currently have a PureCloud enviroment with WebRTC phone only. Could this be the issue? Even when using WebRTC I am expecting some sort op SIP address to be returned.
Any help would be greatly appreciated!
Please find the post request body below. I have set the expand field to contain 'addresses' just to see I this would help, but it does not.
let body = {
"sortOrder": "ASC",
"sortBy": "",
"pageSize": 100,
"pageNumber": 0,
"expand": ['presence', 'addresses'],
"query": [
{
"startValue": "",
"fields": ["name", "email"],
"value": searchValue,
"type": "CONTAINS"
}
]
}