Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

 

 

 

5 REPLIES 5

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
Mega 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.");


Neeta5
Tera Contributor

Thank you for the input @Ankur Bawiskar and @NagaChandaE 
I did this using Declarative related list action and implemented as server script not UXF client action Below is the configuration. Appreciate your inputs.

Join MIM.jpg

 

SOW.jpg