We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to create a related record and ui action for service operations workspace

Neeta5
Tera Contributor

Hello

I need to customize the Service Operations Workspace.
In the classic interface, there is a list of supporting group members displayed on the ticket. When a user selects their name and clicks “Join MIM Call”, a work note is automatically added to the incident.

I want to implement the same functionality in the Service Operations Workspace.
Do you have any suggestions or guidance on how I can achieve this?

group.jpg

 

 

 

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@Neeta5 

you can create Related List Action on that table and handle this

How to add records in a related list with UI builder (declarative action) 

Add Related list button on Workspace 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

NagaChandaE
Kilo Sage

Hi @Neeta5 ,

Can you provide the script of native ui action and functionality .


this is the Joined GMIM call  ui action Script 

    var fName = "Joined GMIM Call-UIA:  ";
    var trace = (gs.getProperty('ensono.core.trace', 'false') == 'true');

    if (trace)
        gs.info(fName + 'starting');

    try {
        if(parent.sys_class_name == 'incident'){
            gs.info('fName ' + ' if statement enterered');
            parent.work_notes = current.user.name + ' (' + current.group.name + ') joined GMIM call.';
            parent.update();
            gs.addInfoMessage('Work Note added: ' + current.user.name + ' (' + current.group.name + ') joined GMIM call.');
        }
        action.openGlideRecord(parent);
        action.setReturnURL(parent);
    } catch (ex) {
        gs.error(fName + "Exception: " + ex);
    }
    if (trace)
        gs.info(fName + "Finished.");