Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

CRM Dynamics 2011 - Click to Call via Command API

Discussion in '3CX Phone System - General' started by ClaytonNZ, Nov 1, 2011.

Thread Status:
Not open for further replies.
  1. ClaytonNZ

    Jun 1, 2011
    Likes Received:

    I have been trying to work on a little JScript query to enable a phone number in the header of a CRM Entity Form to Click to Call (opening call in the 3CX MyPhone). I have very limited programming experience, can anyone help with my code below? Or is this not really possible?

    function calltcx() {
    var phoneField = "header_mag_homephone_d";
    document.getElementById(phoneField).childNodes[0].style.textDecoration = "underline";
    document.getElementById(phoneField).childNodes[0].style.color = "blue";
    document.getElementById(phoneField).childNodes[0].ondblclick = function ()
    var oShell = WScript.CreateObject("WScript.Shell");
    oShell.Run(C:\ProgramData\3CXMyPhone Client Addin\CallNotifier.exe -cmd makecall: phoneField, 1);

Thread Status:
Not open for further replies.