KBN | 2018-08-02 02:14:51 UTC | #1
Hi Team,
I have a scenario where an agent transfers the call to an architect call flow, and I want to know in the architect call flow the name of the agent who transferred the call. The agents are using PureCloud for Salesforce widget, so no agent side Scripts being used.
Apparently this information is avaialble in /api/v2/conversations/calls/{conversationId}; however, I don't know how to write the Input Contract, Output Contract, Request and Response scripts.
Is there any sample code to setup a custom data action that can achieve the above or similar requirements?
And by the way, what is the difference between Interaction ID and Conversation ID?
Any help will be appreciated.
Thanks.
Jason_Mathison | 2018-08-02 13:38:07 UTC | #2
Please read through our documentation on how to create PureCloud Data actions: https://help.mypurecloud.com/articles/about-purecloud-data-actions-integration/
Then experiment with the API in question with the API explorer https://developer.mypurecloud.com/developer-tools/#/api-explorer or with a tool like postman.
A couple of other resources to help you out: Look through this room of the forum to see examples of data actions. Multiple actions are available for download, which you can then import into your account to take a look at. The Analytics and Reporting room has quite a few examples of people retrieving data from our analytics endpoints. Finally, the analytics APIs can return fairly complicated results. The http://jsonpath.com/ website is invaluable for working out the JSONPath you will need in your translation map.
If you are still having challenges once you have an action put together feel free to post an export of your action so we can help you out.
system | 2018-09-02 13:38:11 UTC | #3
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: 3310