How to create a new record using a ui action calling a ui page?

josenava
Tera Expert

Hello everyone,

How can I create a new record using a ui action calling a ui page? this is what I have so far:

1. ui action

find_real_file.png

2.ui page ( thank you to https://community.servicenow.com/community?id=community_article&sys_id=bb0e039fdb9b1054b1b102d5ca961942)

find_real_file.png

find_real_file.png

What I'm having problems now is, how can users click on the UI action, see the pop up window (ui page), add the information requested, click on Submit and create a new record with the information from provided?

Thank you

1 ACCEPTED SOLUTION

Ok let me give you Quick Demo here. 

This is what i have built. See if this help you or not. 

 

find_real_file.png

 

Note: if the intent is to create child task from ui page button click then use inside ui page client script . like i have done. 

View solution in original post

13 REPLIES 13

Can you please paste your code here? I am not able to pause this image video😁

This is how I modified it, please let me know if you see any error,

find_real_file.png

Thank you

so based on this, you will see new record created in sc_task 

Harsh Vardhan
Giga Patron

For reference you can check the below Thread, i have added some example. 

 

https://community.servicenow.com/community?id=community_question&sys_id=d43cae64db0814d814d6fb243996...