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

Hi Zachary,



Sorry, I'm not familiar with the data model. Is Asset Order Date on the same table?


Write Business Rule



(function executeRule(current, previous /*null when async*/) {



var newINC = new GlideRecord('incident'); // destination table name


newINC.newRecord();



newINC.category = current.getValue('category');


newINC.subcategory = current.getValue('subcategory');


newINC.company = current.getValue('company');


newINC.state = current.getValue('state');


newINC.short_description = current.getValue('short_description');


newINC.description = current.getValue('description');


//Repeat previous line for all other fields in source table to destination table


newINC.insert();


})


(current, previous);


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Neha,



To add, please refer below link for more info on GlideRecord.


GlideRecord - ServiceNow Wiki