Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Copy a field value from one record to another reference field new record onLoad

Shiladitya Das
Tera Contributor

Hi All,

 

We've a requirement, let's a there is an alm_asset record opened in form view. This has two reference fields 'Account' (customer_account) and Location (cmn_location). Now, if I open the look up of location field and click on 'New' to create a new location record, I need 'Account' field (reference) in that new location to be auto field with the Asset's location.

 

Is there a way to achieve this?

1 ACCEPTED SOLUTION
7 REPLIES 7

Hi Slava,

 

Tried this, but not working.

CS Screenshot - 

Capture.PNG

Try replacing all occurrences of this.opener with self.opener

Thanks Slava. Working perfectly now.