---
sourceDocument: Xanadu Employee Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/employee-service-management

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Create UI actions for your service with Universal Task

# Create UI actions for your service with Universal Task {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Create UI actions for your service so that agents can create universal
tasks.

## Before you begin

Role required: admin

Administrators and users with the ui_action_admin role can define UI actions. The UI
actions must be configured for both the ServiceNow AI Platform form and the Agent Workspace form.

## Procedure

1. Navigate to AllSystem DefinitionUI Actions.
2. In the UI actions list, click New.
3. Enter the name of the UI action.  
   For example, enter the name as <kbd class="ph userinput">Assign Task</kbd>.
4. Select the service-specific table that Universal Task is being configured for.  
   For example, select the Universal Request \[universal_request\] table for placing the Assign Task UI action on the Universal Task form view or workspace.  
   Note:  
   For any new UI action, ensure that you always select the appropriate service table.
5. **Optional:** Clear the Show insert check box.  
   If the Show insert check box remains checked, the UI action to create a task is displayed even when the main ticket is being created.
6. Select the Form Button check box.
7. In the Script field, enter the following script.  

       var gr = new GlideRecord("sn_uni_task_universal_task");
       gr.initialize();
       gr.setValue("parent",current.sys_id);
       action.openGlideRecord(gr);
       action.setReturnURL(current);

8. On the Workspace tab, select the Workspace Form Button check box.
9. On the form, fill in the fields.  
   For more information on fields and descriptions, see [Create a UI
   action](https://www.servicenow.com/docs/access?context=t_EditingAUIAction&version=xanadu&pubname=xanadu-platform-administration&ft:locale=en-US).
10. Click Submit.
**Previous topic:** [Assign Universal Task admin role](https://servicenow-prod.fluidtopics.net/ykBe9fxemsvUij~7F2TJWA "Assign the sn_uni_task.admin role to the application administrators so that they can integrate and configure Universal Task. Roles control access to features, capabilities, and data.")  
**Next topic:** [Add a Universal Task related list](https://servicenow-prod.fluidtopics.net/4ZWqdc_LMAy6~HGwy9gP1A "Add a Universal Task related list to a service-specific form in both the ServiceNow AI Platform and Agent Workspace to let agents view a universal task for the request.")

*[\>]: and then


