stephenh | 2018-09-04 01:09:38 UTC | #1
Using Developer tools I am attempting to get a list of voicemails left in a date range. I have searched this forum and looked for sample searches. I continually get: { "status": 400, "code": "bad.request", "message": "BADREQUEST", "messageParams": {}, "contextId": "9bef9ec8-17a1-44e5-a867-ddb5d30bd54c", "details": [ { "errorCode": "REQUIREDSEARCH_FIELD", "fieldName": "owner" } ], "errors": [] } with numerous changes in syntax. Could someone provide for me a working JSON body to return this outcome. i.e. a list of all voicemails left in a daterange. Am I even using the correct API (POST /api/v2/voicemail/search). I can get a partial list using the queue and group APIs but cannot restrict the date range.
Jason_Mathison | 2018-09-04 12:14:38 UTC | #2
When I am stumped by how to use an API I will typically run the apps.mypurecloud.com UI inside of the developer mode of the browser so I can see API usage. In this case, here is how the UI looks up what voicemails that I have:
{"pageSize":15,"pageNumber":1,"sortOrder":"DESC","sortBy":"createdTime","query":[{"type":"EXACT","fields":["owner"],"value":"ALL"},{"type":"EXACT","fields":["deleted"],"value":"false"}]}
If you continue to have issues with this API please post the query/queries that are not returning what you are looking for.
--Jason
stephenh | 2018-09-04 21:49:49 UTC | #3
Hey Jason, thank you, great idea, will look at doing that, had not evebn thought of investigating that way. Perhaps you, or someone else can help qualify something for me, obviously there is a way for the system to be able to get voicemails to individuals left both internally and from external sources because we can listen to our voicemails. We have been asked to provide the voicemails left, not to a queue or group, but direct to an individual from external sources to be able to follow up if people are on leave or whatever, i.e. if they have voicemails that are older than say 'X' days, from external ANI. Is this possible from our CLIENT OAuth(orised) service?
tim.smith | 2018-09-04 22:05:11 UTC | #4
I don't believe this is possible currently. The voicemail APIs only retrieve voicemails for the current user or the designated group or queue.
You can request this feature at https://purecloud.ideas.aha.io/ideas
stephenh | 2018-09-05 00:53:40 UTC | #5
Tim, thanks for the info, I will submit a request.
JASON, I have put my Chrome browser into developer mode but I don't seem to be able to see the API requests coming through. What am I missing - what tab are you using or settings?
stephenh | 2018-09-05 03:34:49 UTC | #6
Hi Tim, I went to the ideas URL and was not allowed to login using my developer ID. Do I need to create another ID? We are a partner organisation
Jason_Mathison | 2018-09-05 12:48:01 UTC | #7
Network traffic is shown on the "Network" tab. There is a "filter" box to narrow down the traffic to the API you are interested in. I Included a picture because I never noticed for until someone pointed it out to me.
stephenh | 2018-09-05 21:48:18 UTC | #8
Thanks Jason, much appreciated!
stephenh | 2018-09-06 02:40:23 UTC | #9
Hi Tim,
I spoke with our CEO and he provided me with the corporate login and password and it says we don't have permission to get to that option in octo (or whatever the application is). Please advise course of action from here.
tim.smith | 2018-09-06 14:23:38 UTC | #10
Please open a case with PureCloud Care if you need assistance logging in to the site.
system | 2018-10-07 14:23:39 UTC | #11
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: 3481