Create another record on submit of record producer.

Sharath807
Tera Contributor

Hi all can anyone help to achieve this.

so I have created two tables 1. u_schedule maintenance

                                               2.u_maintenance task.(This table extends task table).

The u_schedule maintenance tables record is created by using record producer, which was also created.

Next is when i click submit on record producer the (u_schedule maintenance) record should be created as well as the (u_maintenance task) record also should be created simultaneously.

7 REPLIES 7

@Sonu Parab how to call Auto number field from Table A to Table B. 

gr.u_associated_scheduled_maintenance = current.number;

its not working

jaheerhattiwale
Mega Sage
Mega Sage

@Sharath807 You can write server script in the record producer script field where you can create record in u_maintenance table

 

jaheerhattiwale_0-1672987092697.png

 

Please mark as correct answer if this solves your issue.

 

Please mark the answer as correct or helpful based on impact
ServiceNow Community Rising Star, Class of 2023

@jaheerhattiwale if u have similar scripts.can u send