Legacy Dev Forum Posts

 View Only

Sign Up

Disconnect conversation from script

  • 1.  Disconnect conversation from script

    Posted 06-05-2025 19:10

    athuldilip | 2019-06-18 16:06:17 UTC | #1

    Is there a way to disconnect conversation from scripts?

    Under scripter there are actions like Blind Transfer, Consult Transfer etc but there isn't any action for disconnecting the conversation


    anon28066628 | 2019-06-19 13:12:24 UTC | #2

    See the bottom example on this page: https://developer.mypurecloud.com/api/rest/v2/conversations/transfer.html

    ~You can design a Scripter action that uses PureCloud Data Actions. First, retrieve the Agent's participant ID for the current conversation. Then PATCH its state to "disconnected". Then use the Scripter action as the onclick event for a Script button.~

    Edit: A colleague pointed out that this approach won't work, since Data Actions use client credentials OAuth grants which do not have a user context (this is required for manipulating conversation participants). Instead, you can embed a webpage component in the Agent Script that uses implicit grant OAuth. This webpage app has the context of the logged in user.

    https://help.mypurecloud.com/articles/web-page-script-component/


    system | 2019-07-19 18:08:50 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: 5376