athuldilip | 2019-11-18 09:03:29 UTC | #1
I'm want to list all the voicemails with a specific conversation Id. I've tried using POST /api/v2/voicemail/search, but can't figure out the fields that are searchable. So is there any way to search using the conversation Id?
Thanks, Athul
curtis.luce | 2019-11-19 23:46:33 UTC | #2
Yes, you can search voicemails by conversationId.
POST /api/v2/voicemail/search
Request Body
{
"pageSize": 25,
"pageNumber": 1,
"query": [{
"fields": ["conversationId"],
"type": "EXACT",
"value": "your conversationId here"
},
{
"fields": ["owner"],
"type": "EXACT",
"value": "ALL"
}
]
}
Owner is a required field for voicemail searches, possible values for owner are USER/GROUP/ALL. Owner search criteria allows you to narrow down voicemails you are searching against, you can search all that you have access to or narrow down to user/group.
athuldilip | 2019-11-20 05:02:52 UTC | #3
I tried searching using the provided body, It's listing voicemails of users, but doesn't list voicemails of queues (owner value used in ALL). Is there an owner value for queue?
curtis.luce | 2019-11-20 14:55:44 UTC | #4
Its not currently possible to search voicemails for queues, you can only search by user or group. You can request new features at https://purecloud.ideas.aha.io/ideas.
system | 2019-12-21 14:55:45 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 6501