How to disable SMS functionality

nameisnani
Mega Sage

Hi Team 

 

can anyone please help me on this request . 

 

From the incident communication plan .

 

nameisnani_0-1744274249835.png

 

when we click on compose SMS option shouldn't be visible.

nameisnani_2-1744274344018.png

 

How to do that can anyone please help me

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@nameisnani 

How is that popup getting opened?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

 

when i click on ' Compose ' then that popup is opening .

nameisnani_0-1744275462839.png

 

i want to disble SMS functionalty from that popup .

@Ankur Bawiskar  please help me here

 

nameisnani
Mega Sage

Hi @Ankur Bawiskar 

 

I found these 2 ui actions i am not sure this is related to my query . @Ankur Bawiskar  please help me here 

nameisnani_0-1744275664844.png

nameisnani_1-1744275698362.png

nameisnani_2-1744275737813.png

function sendUpdates() {
	var sys_id = g_form.getUniqueValue();
	try {
		var ga = new GlideAjax('CommunicationManagementUtilAjaxSNC');
		ga.addParam('sysparm_name', 'getCommTaskSourceTable');
		ga.addParam('sysparm_comm_task', sys_id);
		ga.getXML(function(response) {
			var sourceTable = response.responseXML.documentElement.getAttribute("answer");
			if(sourceTable) {
				var short_description = g_form.getValue('short_description');
				var dialog = getDefaultGlideModal("task_communication", short_description, 800, true);
				ScriptLoader.getScripts('/scripts/incident/glide_modal_accessibility.js', function() {
					dialog.template = glideModalTemplate;
					dialog.on('bodyrendered', function(event) {
						glideModalKeyDownHandler(event, dialog.getID());
					});
					dialog.on('beforeclose', function(event) {
						var reload = dialog.getPreference('reload');
						if(reload)
							location.reload();
					});
					dialog.renderIframe("$task_communication.do?sysparm_sys_id=" + sys_id + "&sysparm_stack=no&sysparm_table=" + sourceTable);
				});
			}
		});
	}
	catch(err) {
		console.log(err);
	}
}

function getDefaultGlideModal(name, title, width, flexiableHeight) {
	if (!name)
		return;
	var modal = new GlideModal(name);
	modal.setTitle(title);
	modal.setWidth(width ? width : 1200);
	if(!flexiableHeight)
		modal.setAutoFullHeight(true);
	return modal;
}

,  

@nameisnani 

search with UI page -> task_communication

See if you can comment that code in it

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader