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
Sonya Dhand 3Sonya Dhand 3 

Custom Clone Button Help

Hi 

I have created a custom clone button on a custom object to pull over most of the same detail from the cloned record.  I have created on this custom object a lookup filed to lookup the id of the cloned record.  However I am getting an error when i clone the record at the cloned id lookup field which shows the error Error: Cloned ID: id value of incorrect type: 00000025.  The code is below but this is the line (last line) cloning the cloned record id.  If i click on the magigying glass on the page to lookup the record id then save it is ok, but will not clone the id over autmatically and let me save the new record without error

CF00N8E000000bgJd={!Lettings__c.Name}&CF00N8E000000bgJd_lkid={!Lettings__c.Id}
 
/a05/e?00N8E000000gdzR={!Lettings__c.Monthly_Rent__c}&
CF00N8E000000gh2x={!Lettings__c.Landlord_1__c}&CF00N8E000000gh2x_lkid={!Lettings__c.Landlord_1Id__c}&
CF00N8E000000gh37={!Lettings__c.Landlord_2__c}&CF00N8E000000gh37_lkid={!Lettings__c.Landlord_2Id__c}&
CF00N8E000000gh3H={!Lettings__c.Landlord_3__c}&CF00N8E000000gh3H_lkid={!Lettings__c.Landlord_3Id__c}&&
CF00N8E000000gglm={!Lettings__c.Tenant_s_Name_1__c}&CF00N8E000000gglm_lkid={!Lettings__c.Tenant_s_Name_1Id__c}&
CF00N8E000000gfq7={!Lettings__c.Unit__c}&CF00N8E000000gfq7_lkid={!Lettings__c.UnitId__c}&
00N8E000000gdyx={!Lettings__c.Estimated_Commencement_Date__c}&
CF00N8E000000ggrB={!Lettings__c.Tenant_s_Name_2__c}&CF00N8E000000ggrB_lkid={!Lettings__c.Tenant_s_Name_2Id__c}&
CF00N8E000000ggtR={!Lettings__c.Tenant_s_Name_3__c}&CF00N8E000000ggtR_lkid={!Lettings__c.Tenant_s_Name_3Id__c}&
CF000N8E000000ggtW={!Lettings__c.Tenant_s_Name_4__c}&CF00N8E000000ggtW_lkid={!Lettings__c.Tenant_s_Name_4Id__c}&
00N8E000000gdz2={!Lettings__c.Actual_Tenancy_Commencement_Date__c}&
00b8E000000MKY6={!Lettings__c.Tenancy_End_Date__c}&
00N8E000000gdzM={!Lettings__c.Tenancy_Term__c}&
00N8E000000gfr0={!Lettings__c.Break_Clause__c}&
00N8E000000ggpZ={!Lettings__c.Additional_Notes__c}&
00N8E000000gdzb={!Lettings__c.Tenancy_Deposit__c}&
00N8E000000gfqg={!Lettings__c.Registered_Date__c}&
01I8E0000004kc4={!Lettings__c.Service__c}&
00N8E000000gdzv={!Lettings__c.Fee__c}&
00N8E000000gfsI={!Lettings__c.Specially_Agreed_Clauses__c}&
01I8E0000004kc4={!Lettings__c.Tenancy_Agreement_Signed__c}&
00N8E000000gfvg={!Lettings__c.Prescribed_Information_Signed__c}&
00N8E000000ggoq={!Lettings__c.Bank_Building_Society__c}&
00N8E000000ggov={!Lettings__c.Account_Name__c}&
00N8E000000ggpP={!Lettings__c.International_Bank_Account_Number_IBAN__c}&
CF00N8E000000bgJd={!Lettings__c.Name}&CF00N8E000000bgJd_lkid={!Lettings__c.Id}