function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nithin_007Nithin_007 

Auto populating fields from one record to another using standard URL button

Hello,

 

In a Custom object, i have 2 records "RecA" and "RecB" both of these recors have standard page layout 

 

RecB is created from RecA - what i mean is, user has to open RecA -> there is Standard URL button in RecA standard page layout, once the user click on it new page is opened to create RecB where certain fields from RecA is alreayd auto-populated 

 

since i couldn't use clone button -i was able to achieve this through stard URL Button. where i could pass the value from one stard page to another through URL

 

All the fields are copied the way i wanted except in RecA there is lookup field - which looks upto Account, so what ever the value i have in the Lookup filed in RecA is not auto-populating to RecB lookup field 

 

part of URL Button code: "00AF0000001QcBe={!Account.Name}

 

this issue is happening only with lookup fields - how could i achive this

 

Any Help is much appricated.

Nithin_007Nithin_007

full URL

/a03/e?02I30000002BjCE=null&
RecordType=014Q0000000FAom&
_CONFIRMATIONTOKEN=null%3FcancelURL%3D&ent=null&nooverride=1&retURL=%00hQ0000000KSom&
{!Rec_System__c.Status__c}='Under Review'&
00FQ0000008ABUN={!Rec_System__c.No__c}&
00FQ0000008ABUO={!Rec_System__c.Receive_Date__c}&
00FQ0000008ABUR={!TODAY()}&
00FQ0000008ABUA={!TODAY()}&
00FQ0000008ABUT={!Rec_System__c.A_date__c}&
00FQ0000008ABUU={!Rec_System__c.I_Date__c}&
00FQ0000008ABUS={!Rec_System__c.Services__c}&
CF00NQ0000001DBU6_lkid={!Account.Id}&
CF00AF0000001QcBe={!Account.Name}

 

last two are Lookup fields to Acconts - i added CF before the salesforce field ID
CF00NQ0000001DBU6_lkid={!Account.Id}&
CF00AF0000001QcBe={!Account.Name}