How to push data from one form to another form?

Neha Agarwal
Giga Expert

I am new to service now, creating an application here. I want to Push data from Form A to Form B. I can see only set fields in workflows to set the field in same form. How can I push the same data to another form?

Thanks,
Neha

12 REPLIES 12

prasiyalraj
Giga Expert

Hi Neha


U can push data to another in many ways. for example dot walking, script etc. Pls elaborate ur question.




Thanks


prasiyal


Greg42
Mega Guru

Hi Neha,



If you could elaborate on what you're trying to do? Is it catalog items, record producers or setting values tableA->tableB?




Cheers



Greg


Hi,


Me and Neha are trying to work through this


We have 2 simple Custom Tables- Form A and Form B - When a record in Form A is submitted we want to create the same record in Form B - Both tables have same columns



Thanks and Regards


Lakshmi.N


That sounds like a pretty straight forward AFTER/INSERT business rule. Try this (untested);



Create a new business rule on table A.


Name: Create Record B


Active: true


Advanced: true


Insert: true


Update: false


Table: Table A (use your real table a where the first record is getting created)


Condition: (none)


Script: (replace // add your code here with the following lines)



var b = new GlideRecord('u_table_b'); // replace u_table_b with your table name


b.newRecord();


b.u_field1 = current.getValue('u_field_1'); // replace with your field name to copy from A to B


// Repeat previous line for all other fields in table A to copy to table B


b.insert();