AutoPopulate field value from one table to another table.

Nafisa Zaman
Tera Contributor

I want to Auto populate one field value from "xyz" table to incident table field and the record for that "xyz" table is created through a hyperlink. How can I achieve this thing from script? Please suggest some ideas.

 

NafisaZaman_1-1697616558212.png

 

This field value I want to auto populate in incident field.

7 REPLIES 7

@Nafisa Zaman 
I guess the ui action is a serverside script。below steps may help you .

1.  Change it to client side.

2.  create a script include to create the xyz recrod , and call it via a  ajax function and receive the number.
3.    use  g_form function to fill the  Number field.

 

 

 

 

 

Please mark my answer as correct and helpful based on Impact.

Ankur Bawiskar
Tera Patron
Tera Patron

@Nafisa Zaman 

How is xyz table related to incident?

is there any field on incident table which refers/holds xyz information?

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

When an incident is resolved after that user should fill the feedback form,after completing survey a new record will get generated in XYZ table. So In this xyz table one field value should be auto populating in Incident field