We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Record created from Related list

Sandhya23
Tera Guru

How can I achieve the following.

 

On a parent table, when I click New on the related list, a new record (child) created should automatically fill in some of the field values from the parent table.

 

Regards,

2 REPLIES 2

JerryJ071847183
Tera Sage

Check below link for reference,

LINK

 

Something similar has been attempted here . I hope it helps.

Not applicable

Hi @Sandhya23,

You can achieve this through UI action.

var newIncRecord = new GlideRecord('task'); 
newIncRecord.initialize();
newIncRecord.short_description = current.short_description; 
newIncRecord.description = current.description; 
newIncRecord.priority = current.priority;
newIncRecord.insert();