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
sharath kanukuntla 7sharath kanukuntla 7 

popup a parent opp name in my custom field when i clone it..for one time cloning it is coming for multiple time cloning the main parent record name is not coming

When i clone for first time parent opp name is coming in my custom field..

 https://ap2.salesforce.com/{!Opportunity.Id}/e? clone=1&retURL=%2F{!Opportunity.Id}&00N2800000Fhvcq={!Opportunity.Name}

but again iam trying to cloning am getting the cloned record name but not main parent name..
Error: Enter a URL that is valid and well-formed
!IF( Opportunity.Parent_Opportunity__c ='',

 https://ap2.salesforce.com/{!Opportunity.Id}/e? clone=1&retURL=%2F{!Opportunity.Id}&00N2800000Fhvcq={!Opportunity.Name},

 Opportunity.Parent_Opportunity__c)}

thanks in advance.
karthikeyan perumalkarthikeyan perumal

use below updated code, 
 
{!IF(Opportunity.parent__c==null, 
URLFOR($Action.Opportunity.New,null,[clone=1,id=Opportunity.Id,retURL="/"&Opportunity.Id],true), 
Opportunity.Parent_Opportunity__c
) 
}

Thanks
karthik
 
sharath kanukuntla 7sharath kanukuntla 7
Hii
karthikeyan perumal

where should i keep my custom field id.
 
karthikeyan perumalkarthikeyan perumal
Next to this "id=Opportunity.Id"  id=Opportunity.Id , CF00N2800000Fhvcq=Opportunity.Name

Like that you havve to pass the custome field value