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
CharlieLangCharlieLang 

add value to a lookup from a button

HI,

 

I am creating a clone button that when clicked, fills in specified set of fields. i am trying to get it to fill a lookup with the link to the master record that it has been cloned from.

 

this is what i have at the moment, so the parent case field is getting populated with the ID. How can i get it populated with the correct link? I am not sure what code i should add to the before or after the case.id bit 

 

/{!Case.Id}/e?retURL=%2F{!Case.Id}&clone=1&cas6={!Case.Reason}&cas14={!Case.Subject}&cas15=Reopen%20of%20Case%20{!Case.Link}%0D{!Case.Description}&cas16=Reopen%20of%20Case%20{!Case.CaseNumber}
&00NW0000000TDWx={!NOW()}
&00NW0000000TDXC=
&00NW0000000TDSc=
&00NW0000000TDbx=
&cas28={!Case.Id}

 

Best Answer chosen by Admin (Salesforce Developers) 
ShamilShamil

Use:

&cas28_lkid={!case.id}

&cas28={!Case.CaseNumber}

 

cas28_lkid is a hidden input field whose value you need to set to the parent case id

All Answers

ShamilShamil

Use:

&cas28_lkid={!case.id}

&cas28={!Case.CaseNumber}

 

cas28_lkid is a hidden input field whose value you need to set to the parent case id

This was selected as the best answer
CharlieLangCharlieLang

Thats great, THANKS!!!