Logic+ with CX
Passing Logic+ Variables to CX: Overview
In certain scenarios, it may be necessary to pass Logic+ variables to CX in order to perform specific tasks. There are two primary methods for achieving this, depending on the context in which the variables are being passed. These methods are as follows:
Passing Logic+ Variables to Q Tab CX
This method involves passing Logic+ variables directly to Q Tab CX, where they are used to trigger actions or processes within the CX environment.In this example, if you have a Logic+ variable named
logicPlusVariableHere
, the provided formatting will extract its value from Logic+ and pass it into Q Tab CX. After being passed, the value can be referenced and utilized in CX as$logicPlusVariableName
.$callKey = $_GET['clickToCall']; $call_details = $sharpen->getCallDetails($callKey); $logicPlusVariableName = isset($call_details['data']['logicPlusVariableHere']) ? $call_details['data']['logicPlusVariableHere'] : '';
Passing Logic+ Variables to CX via an Integration Panel
In this scenario, Logic+ variables are passed to CX through an integration panel, which triggers the CX process within a Logic+ flow. This method enables seamless integration between the two systems for more complex workflows.In the example below, if you have a Logic+ variable named
logicPlusVariableHere
, the formatting provided will extract the value of this variable from Logic+ and pass it into CX. Once passed, the value can be referenced and used in CX as$logicPlusVariableName
.$_POST = isset($_POST) && count($_POST) ? $_POST : json_decode(file_get_contents("php://input"), true); $logicPlusVariableName = $_POST['logicPlusVariableHere'] ?? '';
Each method allows for the appropriate handling and execution of actions based on the Logic+ variables, tailored to the specific requirements of the integration or flow being utilized.
This requires a foundational understanding of PHP. For further information on CX customization within your environment, navigate to Developer → [dot]CX Docs to access additional enablement resources.