Convert Start Conference Call UI Action script to CSM/FSM Workspace
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2024 12:49 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2024 05:55 PM
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".