Convert Start Conference Call UI Action script to CSM/FSM Workspace

Joseph Navarro1
Tera Contributor

Hello all,

My company wants me to make the UI action Start Conference Call available in our CSM/FSM Configurable Workspace. What would be the best way to do this? Here is the script:

function openPopUpConferenceDialog(){
    var notifyOnTask = new NotifyOnTaskClient(g_form.getTableName(), g_form.getUniqueValue());
        notifyOnTask.setNumber(g_form.getValue("number"));
        notifyOnTask.setSubmitCallback(conferenceOnSubmitCallback);
        notifyOnTask.setSuccessCallback(conferenceOnSuccessCallback);
        notifyOnTask.setCancelCallback(conferenceCancelCallback);
        notifyOnTask.setErrorCallback(conferenceOnSuccessCallback);
        var confData = NotifyOnTaskClient.getNotifyActionTemplate();
        confData.addToWorkNotes = true;
        confData.allowMulticonference = true;
        notifyOnTask.openConferenceDialog(confData);
}

function conferenceOnSuccessCallback(notifyParameters, formObj, formParameters, data){
    g_form.clearMessages();

    for(var i=0; data.successMessages.length > i; i++){
        g_form.addInfoMessage(data.successMessages[i]);
    }

    for(i=0; data.errorMessages.length > i; i++){
        g_form.addErrorMessage(data.errorMessages[i]);
    }
}

function conferenceOnSubmitCallback(notifyParameters, formObj, formParameters){
    g_form.clearMessages();
    g_form.addInfoMessage(getMessage("Your conference call is being started..."));
}

function conferenceCancelCallback(notifyParameters){
}
1 REPLY 1

-O-
Kilo Patron
Kilo Patron

NotifyOnTaskClient uses Core UI objects like GlideDialog or jQuery - which are not available in workspaces.

You would need to re-write the script as a UI Script to make it workspace "friendly".