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
Ryan Young 1Ryan Young 1 

Clear a Lookup Field syntax on custom Clone Button

Hello!

I have this custom button with the formula below. I created a new lookup field and I am strugging with what syntax would clear the value in a field on cloning. Any thoughts appreciated! It is the field in BOLD Underline below:

/{!Opportunity.Id}/e?clone=1&retURL=/{!Opportunity.Id}&cloneli=0& 
RecordType=012700000005kCm& 
opp9={!Opportunity.Next_Verbal_Date__c}& 
opp14=& 
00N700000030OKK='Yes'& 
opp5=Renewal& 
00N70000002z0Hs=& 
00N70000003UGGQ=&
00N70000001ljSV=& 
00N70000002QVGj=& 
00N70000002OjLc=& 
00N70000001ljSk=& 
00N70000002yVwx=& 
00N70000002yfB0=& 
00N70000002z9Kb=& 
00N70000002zHs7=& 
00N70000002zHsC=& 
00N70000002z9Kg=& 
00N70000002zB3c=& 
00N70000002zB3m=& 
00N70000002zSm6=& 
00N70000002QVH8=& 
00N70000002zAUh=& 
00N70000002Oqjf=& 
00N70000002OkAL=& 
00N700000030h0K=& 
00N70000002QVH3=& 
00N70000002yDM3=& 
00N700000030g0n=& 
00N70000002yDLy=& 
CF00N70000003Tr3b={!Opportunity.Name}& 

00N70000002Ok6Y=WebMD%20Health%20Services& 
00N70000001lipU={!Opportunity.Renewal_Date__c }& 
opp6=Current%20Client& 
opp11=Stage%201%20-%20Identify%20Target&
logontokartiklogontokartik
Hi, Firstly I would avoid doing URL Hacks, as they will slowly be retired and Salesforce will not support them. With the new Lightning Experience  none of these would work.  But in your case, if you want to clear the field it should be something like _lkid which you can use
Ryan Young 1Ryan Young 1
You are right, it should be a flow but at the moment I just don't have time to play with that. I ahve other Processes and Flows I am banging my head on.
So I put this in and it didn't work: 00N70000003UGGQ=_lkid& 

Is that what you meant?
logontokartiklogontokartik
No the field you are clearing out should have a name ending with _lkid, if you are using chrome you can right click and inspect element on your lookup field and you should see a name.