Twin_Engines | 2016-07-22 16:59:51 UTC | #1
Hello,
I am trying to figure out how to pull some information from PURE CLOUD like the Order# for example, someone from Pure Cloud (not a developer) suggested to use the Notes field that a CSR can use to enter any information, so he would fill it up with the data we need then we just pull that out. i don't know if this is possible.
So far i know how to use the notification API so we can get notifications on a web socket client app that can trigger our service to pull the data from pure cloud but i would like to know which notification topic is the one i really need to subscribe with, my guess is the conversation one, so we know when a conversation ends.
The thing is i have no idea about where that "Notes" field is located for us to pull it out, that's basically what we need, does any one knows about this field or any other field a CSR can use to save information and then we can pull it out?.
Any suggestion/feedback about what we are trying to do and how we plan to do it is much appreciate it.
Thanks.
KevinGlinski | 2016-07-22 17:51:39 UTC | #2
have a look at /api/v2/conversations/calls/{callId}/participants/{participantId}
The notes is part of the wrapup object. When in doubt, open the network tab and watch what the purecloud client does. It is still on v1, so things may not map 1:1
Twin_Engines | 2016-07-26 15:59:15 UTC | #3
Thank you, That wrap up is exactly what i was looking for, but i see the action that shows the notes field is a PATCH (update) but i just need to get it from pure cloud, i found for example this reque
/api/v2/conversations/callbacks/{callbackId}/participants/{participantId}/wrapup
But the response doesn't bring the notes. { "id": "", "name": "", "dateCreated": "", "dateModified": "", "modifiedBy": "", "createdBy": "", "selfUri": "" }
Been trying to find a request that brings the notes in the Conversation API but can't find one yet.
tim.smith | 2016-07-26 16:21:58 UTC | #5
The documentation is incorrect. I'll log an issue to get it corrected. GET /api/v2/conversations/calls/{conversationId}/participants/{participantId}/wrapup does return the code and notes.
This request to set the code:
PATCH /api/v2/conversations/calls/73f603a9-f7c5-435c-8f31-8ecf7996f7c5/participants/3c081163-90cf-4ced-9b85-5ed1025b0c5b HTTP/1.1 Host: api.mypurecloud.com Authorization: bearer xxxx Content-Type: application/json Cache-Control: no-cache Postman-Token: fc5c0710-f6ff-abf1-7326-14f5efe7e32b
{ "wrapup": { "code": "Default Wrap-up Code", "notes": "This is a note from postman" } }
results in this:
request:
GET /api/v2/conversations/calls/73f603a9-f7c5-435c-8f31-8ecf7996f7c5/participants/3c081163-90cf-4ced-9b85-5ed1025b0c5b/wrapup HTTP/1.1 Host: api.mypurecloud.com Authorization: bearer xxxx Content-Type: application/json
response:
{ "code": "Default Wrap-up Code", "notes": "This is a note from postman", "tags": [], "durationSeconds": 0, "endTime": "2016-07-26T16:19:49.911Z" }
system | 2017-08-28 19:25:30 UTC | #6
This post was migrated from the old Developer Forum.
ref: 164